Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(changeWidth): support number transform.originX/Y #9909

Merged
merged 3 commits into from
Jun 10, 2024

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.

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
20 of 22 checks passed
@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