Please, share you ideas about three following question:
I have 6 point coordinates (in document coordinates) and I want that connector shape goes throught these points. How can I manage it? I did not find any information about it in documentation.
I know absolute coordinates of text (
absoluteX, absoluteY) and try to convert them to local coordinates of connector shape using code:
edgeShape.getTextXForm().getTxtPinX().setValue(absoluteX - edgeShape.getXForm().getPinX().getValue());
edgeShape.getTextXForm().getTxtPinY().setValue(absoluteY - edgeShape.getXForm().getPinY().getValue());
But it does not work how it should be. For example if I set
absoluteX = 5; absoluteY=5;I expect all textes be at the same point in diagram, but it is not the case, as you can see in the folowing example project:
ExampleProject.zip (31.3 KB)
If we will look at the stencil in ExampleProject.zip, we can see that the text is placed in the middle of connector shape. Why is the text in the result (“whatIget.vsdx”) so far away from connector shape?