setMousePositionWorld method
Updates the mouse position in graph coordinates.
This is typically called internally by the editor widget during mouse hover.
Pass null when the mouse exits the canvas.
Parameters:
position: The mouse position in graph coordinates, ornullif outside canvas
Implementation
void setMousePositionWorld(GraphPosition? position) {
runInAction(() {
_mousePositionWorld.value = position?.offset;
});
}