Hi,
In my project, I have a palette and within this palette there are few types of nodes. These nodes are added to the palette with labels. (refer to the attached screenshot)
Problem 1:
When I drag a node from palette and drop to the canvas, for "Start" and "End" node it works fine; the label is moving with the node and will always stay within the node.
But for the other types of node, same operation performed, the label will only stay at the location where it first hit the canvas (not yet drop the node) and as I move the node, I am only moving the shape not with the label.
And, let's say if I'm not dropping the node, I move the node in and out from the palette to canvas, its label will be duplicated and stay at the point I move out the node.
As attached is the screenshot of the scenario, the code i wrote to create the palette, the palette item and also code for the event of OnDropPaletteItem.
Also I am using the DiagramBuilder scripts. I suspect it somehow cause this problem.
Problem 2:
I notice there is a private member call "_absolutePath" in a node. What exactly it is?
Thanks.
Query | Response |
Problem 1: When I drag a node from palette and drop to the canvas, for "Start" and "End" node it works fine; the label is moving with the node and will always stay within the node. But for the other types of node, same operation performed, the label will only stay at the location where it first hit the canvas (not yet drop the node) and as I move the node, I am only moving the shape not with the label. And, let's say if I'm not dropping the node, I move the node in and out from the palette to canvas, its label will be duplicated and stay at the point I move out the node. As attached is the screenshot of the scenario, the code i wrote to create the palette, the palette item and also code for the event of OnDropPaletteItem. Also I am using the DiagramBuilder scripts. I suspect it somehow cause this problem. | We have applied your code snippet in our sample and we are unable to reproduce the reported issue at our end. could you please provide us more details such as Essential studio version that you are using in your application and code snippet of createNodes, createNodeLabel method that you have used in your application or video or modify the below sample to reproduce the reported issue at our end? This will help us to verify further and provide a better solution to you. Sample:http://www.syncfusion.com/downloads/support/forum/119222/F119222689499486.zip Video:http://www.syncfusion.com/downloads/support/forum/119222/labelissuealvinvideo1154742690.zip |
Problem 2: I notice there is a private member call "_absolutePath" in a node. What exactly it is? | Please note that the _absolutePath is an private member, that contains the path data relative to node's dimensions. We use this internally in the source and it should not be used in the sample. |