You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The type expected for the callback passed to onMouseOverNode is onMouseOverNode: (nodeId: string) => void;
but should be updated to onMouseOverNode: (nodeId: string, node: GraphNode) => void;
**From Documentation: **
const onMouseOverNode = function(nodeId, node) {
window.alert(`Mouse over node ${nodeId} in position (${node.x}, ${node.y})`);
};
The text was updated successfully, but these errors were encountered:
JadeJDoucet
changed the title
Incorrect type for onMouseOverNode callback
Incorrect type for onMouseOverNode & onMosueOutNode callback
Jun 15, 2022
Describe the bug
The type expected for the callback passed to onMouseOverNode is
onMouseOverNode: (nodeId: string) => void;
but should be updated to
onMouseOverNode: (nodeId: string, node: GraphNode) => void;
**From Documentation: **
The text was updated successfully, but these errors were encountered: