Since changeWidth is exported and reusable, it should support number transform.originX/Y instead of checking against string origins. While fabric's built-in _setupCurrentTransform use canvas._getOriginFromCorner for the origin values and it assigns string values, originX/Y can be a number as well.
Since
changeWidth
is exported and reusable, it should support numbertransform.originX/Y
instead of checking against string origins. While fabric's built-in_setupCurrentTransform
usecanvas._getOriginFromCorner
for the origin values and it assigns string values,originX/Y
can be a number as well.