How can I calculate height/ width or lenght of a LINE #54
Answered
by
raminious
robertwilli1
asked this question in
Q&A
-
Sir, I want to calculate the length of a line. |
Beta Was this translation helpful? Give feedback.
Answered by
raminious
Mar 1, 2022
Replies: 1 comment 1 reply
-
@osamatan125 I think you can use more info https://konvajs.org/api/Konva.Line.html#getClientRect |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
raminious
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@osamatan125 I think you can use
getClientRect
so it would be
data.shapes[0].node.getClientRect()
more info https://konvajs.org/api/Konva.Line.html#getClientRect