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

objectScaled callback's width and heigth not change #772

Open
geosmart opened this issue May 8, 2022 · 7 comments
Open

objectScaled callback's width and heigth not change #772

geosmart opened this issue May 8, 2022 · 7 comments
Labels

Comments

@geosmart
Copy link

geosmart commented May 8, 2022

how can I get the scaled image object's current width and height!

imageEditor.on('objectScaled', function(props) {
    console.log(props);
    console.log(props.type);
});
the props.width and height not change in callback currently

related issue #393

@geosmart geosmart added the Bug label May 8, 2022
@lja1018
Copy link
Contributor

lja1018 commented May 11, 2022

@geosmart
Checked for bugs. I'll fix it.
Thank you for the information.

@geosmart
Copy link
Author

any plan to fix this?
need this feature to handle image scale in and out ..

@lja1018
Copy link
Contributor

lja1018 commented May 18, 2022

@geosmart
It is not exactly planned yet.
I think I'll deal with it sometime next month.

@geosmart
Copy link
Author

@lja1018 keep waiting online...

@niko-la-petrovic
Copy link

niko-la-petrovic commented Sep 30, 2022

Any way I could help fix this? Not familiar at all with the library's internals, but willing to help as I could really use it right now.

@dean5277
Copy link

still not fixed

@dean5277
Copy link

@lja1018 I think I just need to return these two properties

graphics.js line 1317
createObjectProperties(obj) { const predefinedKeys = [ "left", "top", "width", "height", "fill", "stroke", "strokeWidth", "opacity", "angle", "scaleX", // add new key "scaleY", // add new key ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants