You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary : when the react render ,the getDimensions() will be call , and you will reset the size according to the function this.isVertical(). and the key is the function this.isVertical() that
you judge if it is vertical by this.props.rotate % 180 !== 0 。 if you judge by this , it will not compatible width canvas that width not equal height. just like my project .
if the canvas width not equal height , when rotate will be canvas will be reset 。 just like the picture
when rotate , it will be deform ,it just seem not support rectangle
i saw your code .
when the react render ,the getDimensions() will be call , and you will reset the size according to the this.isVertical(). and the key is the function this.isVertical()
you judge if it is vertical by this.props.rotate % 180 !== 0 。 if you judge by this , it will not compatible width canvas that width not equal height. just like my project .
yangfan0095
changed the title
reset size according to this.isVertical() ,it will not compatible width canvas that width not equal height
reset size according to this.isVertical() ,it does not compatible width canvas that width not equal height
Jan 22, 2018
yangfan0095
changed the title
reset size according to this.isVertical() ,it does not compatible width canvas that width not equal height
reset size by this.isVertical() ,it does not compatible width canvas that width not equal height
Jan 22, 2018
Summary : when the react render ,the getDimensions() will be call , and you will reset the size according to the function this.isVertical(). and the key is the function
this.isVertical()
thatyou judge if it is vertical by
this.props.rotate % 180 !== 0
。 if you judge by this , it will not compatible width canvas that width not equal height. just like my project .if the canvas width not equal height , when rotate will be canvas will be reset 。 just like the picture
when rotate , it will be deform ,it just seem not support rectangle
i saw your code .
when the react render ,the getDimensions() will be call , and you will reset the size according to the this.isVertical(). and the key is the function
this.isVertical()
you judge if it is vertical by
this.props.rotate % 180 !== 0
。 if you judge by this , it will not compatible width canvas that width not equal height. just like my project .and the isVertical
such as my project :
The text was updated successfully, but these errors were encountered: