Hi, We are using a small rectangular shape for our link adornments.
Our requirement is to position a html menu above this box, whenever mouse hover happens.
Like I showed in above diagram, for positiong this menu we need adornment shape’s position values.
I tried to access these from mouse hover callback.
mouseHover : function (e, linkPart) {
}
from this linkPart, Im trying in following way to get the position values.
var adornmentTemplate = linkPart.selectionAdornmentTemplate();
var adornmentShape = adornmentTemplate.findObject(“linkAdornment”); // adornmentTemplate is the name of our link’s adornment
Here adornmentShape.position is giving x and y values as NaN.
Same king of values are coming, If i try to fetch a shape’s position values from a node, which contains multiple shapes.