Four ‘simple’ questions:
I need to have several layers with different types of ports and links. I need to be able to toggle separate layers with all their links and ports. The problem is when I move a port to another layer using GoLayer.AddCollection() the port appears in the upper left corner of the view, it behaves like a separete object, not part of a node (all nodes are on Default layer). How can I move ports to different layers still being able to treat the node with the ports as single object?
I created a completely custom node (derived from GoNode). I overrode LayoutChildren() and used main shape’s position as reference for placing the children (ports, other shapes). I made this shape SelectionObject, because when the whole node was selected, moving it caused the children from the right and bottom edges to move all around the document - probably the node size changed before all children were moved together with it. Now I have a different problem - when I’m pressing Delete key, only the shape is deleted, not the whole node. What am I doing wrong?
How can I copy link path from one link to the other? I want some links to appear on different layers. Short stupid example: a USB cable is both data cable and power cable (it delivers power to the connected device), so it should appear on data layer and on power layer and both links should have precisely the same path so that when the user hides data layer, the link should be still there, but with different style and color.
How can I align newly inserted node with the grid? The user doubleclicks the grid and a new node appears, but not aligned with the grid. I have to move it manually to align it with the grid.