The second argument to each of those GraphObject event handlers such as mouseHover will be the object on which the event handler was declared.
In the Hover Buttons sample the mouseHover event handler is declared on the whole Node, so the second argument will always be a Node. The function doesn’t actually need to get the obj.part.
In your sample the event handler is declared on a TextBlock, so the second argument will be the TextBlock.
The “obj” argument is declared of type GraphObject but because the mouseLeave property is set on an Adornment the argument value will actually be of type Adornment.
I did the same thing as this demo in my application.
in my application (which the template is much more complicated) I can get the adornment showing,
but I do not get the mouseLeave event when I move from one itemArray to an other.
I get the mouseLeave event only when I hover over the action button and leave it .
what should I check to overcome this problem?
how can I debug it?
note I removed all my custom tools from the code, but still could not get the mouseLeave event
and I do not use mouseLeave event in any of the diagram parts
Then don’t make the Placeholder transparent, but add a mouseLeave event handler to the item Panel that only removes the Adornment when the nextObj argument is not null and not within the Adornment. GraphObject | GoJS API