Query |
Response |
I have a group node with 6 child nodes. I want to enable selection to group node but not for individual nodes themselves.
I have tried applying Node Constraints which works to some extent.However, It stops the selection of the group node along with the child nodes. So if I disable "Select" node constraint to all the child nodes, I can't drag or do anything with the group node itself. Can you please give me a workaround for this.
I have also attached the snip of the console error I get when I drag the group which I cant figure out. |
Please set PointerEvents constraints for the group child nodes to achieve your requirement. Please refer to the code example below.
Code example:
//Disable pointerEvents
hexagon.Constraints = NodeConstraints.Default &~ NodeConstraints.PointerEvents;
Also we have modified your sample and attached below. |
In my original project, I am using Diagram Builder sample in which I have Image nodes in the symbol palette. Occasionally, When I drag a palette item from the symbol palette, clones of the same palette item are displayed with no console errors. |
The reported issue occurs due to an propertyEditor which is not defined in your application. We have removed the propertyEditor line as shown in the below code example from the sample and attached the modified sample below.
Code example:
document.getElementById("propertyEditor").style.display |