Arms a tool: claims exclusive mode and, when cursor is given, paints it on the canvas.
cursor
Without cursor the flag alone is set and the cursor is left exactly as it is — for a tool that manages its own cursor, or shows none.
Idempotent on the saved value — arming twice does not lose the original cursor.
The map the tool operates on (adapter or native).
Optional
CSS cursor keyword, e.g. "crosshair"; omit it to leave the cursor alone.
"crosshair"
Arms a tool: claims exclusive mode and, when
cursoris given, paints it on the canvas.Without
cursorthe flag alone is set and the cursor is left exactly as it is — for a tool that manages its own cursor, or shows none.Idempotent on the saved value — arming twice does not lose the original cursor.