Konva Node Type (bug?) #1506
Answered
by
MentalGear
MentalGear
asked this question in
Q&A
-
I noticed that when running e.target.getType() on a Konva.Image, the output is 'Shape' instead of 'Image'. Is there any other way to detect if the user clicked on an image versus other nodes ? |
Beta Was this translation helpful? Give feedback.
Answered by
MentalGear
Feb 13, 2023
Replies: 2 comments 2 replies
-
All shapes inherited from Konva.Shape output 'Shape', |
Beta Was this translation helpful? Give feedback.
2 replies
-
Solved this by using node.getClassName() === "Image" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MentalGear
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved this by using