Community
Participate
Working Groups
For illustration, here is the use case * In our graphical notation, a port can either be an input port or an output port (depending on an attribute) * We use a TextDecorator to show the actual direction (custom font, arrow pointing left or right). * When the user tries to create a connection, it is possible when he moves the mouse into the port symbol, but as soon as he moves over the decorator, it seems that Graphiti considers this to be a different Pictogram Element. * It would be great if Graphiti would additionaly support simple/plain/stupid decorators that add just some graphics/text, but otherwise would be considered a simple part of the pictorgram/shape that they are decorating.
This behavior is reproducable in the Sketch editor. It seems it is caused by the fact that the decorators internally belong to the diagram (the sourcePictogramElement passed in the context is the diagram). This needs to be checked. Currently this looks more like a bug to me. Andreas: I wonder if (text) decorators should really be used here. Wouldn't it be better to add a standard Text shape to the anchor?