Skip to main content

Function: registerCursor()

registerCursor(toolName, iconContent, viewBox): void

Registers a cursor to the list, so that it will be used for the given toolName. Overwrites the given cursor if it is already set.

Parameters​

• toolName: string

The name of the tool to assign a cursor to.

• iconContent: string

The SVG icon content of the cursor.

• viewBox

The viewBox of the cursor object.

• viewBox.x: number

• viewBox.y: number

Returns​

void

Defined in​

tools/src/cursors/SVGCursorDescriptor.ts:479