How to find the effective width and height of a piece? #39
Unanswered
anotherstarburst
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm just experimenting with this library. It's pretty cool - thanks for putting in the work!
Is there a way to get the width and height of an individual puzzle piece (with a rounded outline) - including the slot and tab?
I see
shape.attrs
haspoints
. It looks like those are drawn in https://github.com/flbulgarelli/headbreaker/blob/master/src/outline.js but I can't see a good way to extract the effective width / height fromshape.attrs
itself.Beta Was this translation helpful? Give feedback.
All reactions