DOM elements inside canvas without React? #1749
-
Apparently, the only way to get real DOM elements into Konva is DOM Portal and that's part of the React-only Utils package, isn't it? I'm looking for a way to have real, interactive components on a draggable, pannable canvas. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can take a look into DOM code, basically it is just a DOM element with absolute position on top of the canvas. You can do the same with pure Konva. |
Beta Was this translation helpful? Give feedback.
-
@lavrton And how do you create complex elements with images, text, links and form elements if not with real DOM elements? |
Beta Was this translation helpful? Give feedback.
For such a task, Konva may be not a good fit. Konva is a canvas framework. It is not designed for links and forms. You can emulate and manually draw shapes that will look and work as links and forms.