Skip to content

ShapeInfo throws exception: Unable to extract value for size,width,height,w,h #52

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

Open
istvank opened this issue May 14, 2020 · 4 comments

Comments

@istvank
Copy link

istvank commented May 14, 2020

Hi, I have an issue with the ShapeInfo for rounded rectangles, rr being a rectangle with rounded corners:
ShapeInfo.rectangle({x: rr.x, y: rr.y, w: rr.width, h: rr.height, rx: rr.rx, ry: rr.ry});
it throws an exception:

Uncaught TypeError: Unable to extract value for size,width,height,w,h
    at getValues (ShapeInfo.js? [sm]:59)
    at Function.rectangle (ShapeInfo.js? [sm]:272)

Seems like in the for loop of getValues in ShapeInfo.js, parsePoint shifts the args parameter without creating a copy.

Is that a bug or am I missing something?

Used to work in 0.6.0, but the dependency gp-data-transformer disappeared from npm. :(

@istvank
Copy link
Author

istvank commented May 14, 2020

Seems like ShapeInfo no longer accepts objects.

@thelonious
Copy link
Owner

Hi @istvank,

If you have a chance, please try the latest on development? I ran your test case above and it seems to be working fine. Please let me know if you run into any other issues.

Thanks for reporting the issue!

@brettz9
Copy link
Contributor

brettz9 commented Jul 13, 2021

Hi there! I was getting this error too, but #development indeed got rid of the error.

@thelonious
Copy link
Owner

thelonious commented Jul 17, 2021 via email

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

No branches or pull requests

3 participants