State of all shapes in the layer #1081
-
Hi, we are working of a react implementation fo the library after playing with ti for some time in our app. At the moment we are trying to keep a state of all the shapes in the layer including their coordinates. I was trying to play with the layer.pm.dragend event but that reuiqres us to attach the handler to every singles layer that is currently their INCLUDING ONES that will be created in the future... not usre if that is the way to go. any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can add to the Shapes directly a event forwarding. So you don't need to add the listener for each layer.
|
Beta Was this translation helpful? Give feedback.
You can add to the Shapes directly a event forwarding. So you don't need to add the listener for each layer.