You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put this forward for discussion as an enhancement.
There are credible cases where it would be useful to know that a shape is being added to a transformer.
However, the process for this is just pushing the shape into transformer.nodes([array). There is no way to know that the shape has been added or removed from the transformer nodes list.
The proposal is to enhance the transformer with methods something like transformer.add(node) and transformer.remove(node). Within the code of the add method code would run to fire an event informing the shape that it is being added. Similarly in the remove method for the opposite.
Quite apart from anything else, the simple use of the nodes array manipulation does not allow for intervention, and it is quite primitive / unsophisticated.
What do we think?
The text was updated successfully, but these errors were encountered:
I put this forward for discussion as an enhancement.
There are credible cases where it would be useful to know that a shape is being added to a transformer.
However, the process for this is just pushing the shape into transformer.nodes([array). There is no way to know that the shape has been added or removed from the transformer nodes list.
The proposal is to enhance the transformer with methods something like transformer.add(node) and transformer.remove(node). Within the code of the add method code would run to fire an event informing the shape that it is being added. Similarly in the remove method for the opposite.
Quite apart from anything else, the simple use of the nodes array manipulation does not allow for intervention, and it is quite primitive / unsophisticated.
What do we think?
The text was updated successfully, but these errors were encountered: