Open JasonXDDD opened 4 years ago
I want to set stroke width manually on Slider, but nextStrokeWidth() function cannot meet my needs. Do like
//origin source code nextStrokeWidth() { if ((this.state.strokeWidth >= this.props.maxStrokeWidth && this._strokeWidthStep > 0) || (this.state.strokeWidth <= this.props.minStrokeWidth && this._strokeWidthStep < 0)) this._strokeWidthStep = -this._strokeWidthStep this.setState({ strokeWidth: this.state.strokeWidth + this._strokeWidthStep }) } // hope add new function setStrokeWidth(newWidth){ // to set props.strokeWidth with newWidth }
tks.
I want to set stroke width manually on Slider, but nextStrokeWidth() function cannot meet my needs. Do like
tks.