Hi walter,
I have a link which consist a picture(Plus sign Image) on it like below:-
Whenever i hover on link, whole link get highlighted except the picture(Plus sign Image) on it.
My linkTemplate is:
mainDiagram.linkTemplate =
$go(go.Link,
{
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpOver,
corner: 5,
toShortLength: 4,
selectable: false,
layoutConditions: go.Part.LayoutAdded | go.Part.LayoutRemoved,
// links cannot be selected, so they cannot be deleted
// If a node from the pallette is dragged over this node, its outline will turn green
mouseDragEnter: function(e, link) { link.isHighlighted = true;
diagramCopy.findLayer(“Tool”).opacity = 0.3; },
mouseDragLeave: function(e, link) { link.isHighlighted = false;
diagramCopy.findLayer(“Tool”).opacity = 1;},
// if a node from the Palette is dropped on a link, the link is replaced by links to and from the new node
mouseDrop: dropOntoLink
},
$go(go.Shape, linkShapeStyle()),
$go(go.Picture,AddImageStaticResource),
$go(go.Shape,
{ toArrow: “standard”, stroke: null, fill: “Grey” })
)];
}
Is there any way to highlight the picture(plus sign image) as well along with link?
Thanks