Skip to content

Conversation

@jiayihu
Copy link
Contributor

@jiayihu jiayihu commented Jun 5, 2024

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.

@codesandbox
Copy link

codesandbox bot commented Jun 5, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@asturur
Copy link
Member

asturur commented Jun 6, 2024

Seems good to me

@asturur
Copy link
Member

asturur commented Jun 10, 2024

added changelog

@asturur asturur merged commit 39100ab into fabricjs:master Jun 10, 2024
@jiayihu jiayihu deleted the fix/changeWidth branch June 10, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants