Hi,
I have a node and on hover on the node, it either shows an adornment or a tooltip based on some condition.
$(
go.Node,
'Spot',
{
locationObjectName: 'SHAPE',
locationSpot: go.Spot.Center,
toolTip: tooltipTemplate,
contextMenu,
itemTemplate: boundaryEventItemTemplate(),
resizable: true,
resizeObjectName: 'PANEL',
resizeAdornmentTemplate: nodeResizeAdornmentTemplate,
selectionAdorned: true,
selectionAdornmentTemplate: resizableSelectionAdornmentTemplate(),
selectionChanged: onSelectionChanged,
mouseHover: (e, obj) => {
if (obj.part.findLinksOutOf().count === 1) {
return;
}
const node = obj.part;
const hoverAdornment = getHoverAdornment(node.data);
hoverAdornment.adornedObject = node;
node.addAdornment('mouseHover', hoverAdornment);
},
},
Showing the adornment is handled in a mouseHover handler. Currently, we’re setting the delay using following rule:
diagramInstance.toolManager.hoverDelay = 500;
But we’d like to have separate delays for showing the tooltip and adornment. Is it possible to achieve this ?