openpencil/packages/docs/programmable/sdk/api/advanced/tool-cursor.md
2026-03-24 23:24:08 +03:00

450 B

title description
toolCursor Helper that resolves the cursor string for an editor tool.

toolCursor

toolCursor(tool, override?) maps an editor tool to the cursor the SDK should use, while still allowing an explicit override.

Use it when building custom canvas shells or tool UIs that need consistent cursor behavior.