Internal
Creates a new cursor manager instance.
Initializes the cursor cache and creates default cursor definitions.
Encodes an SVG string into a CSS cursor URL.
This method converts SVG markup into a data URI that can be used as a CSS cursor value, with specified hotspot coordinates.
The SVG markup as a string
X coordinate of the cursor hotspot
Y coordinate of the cursor hotspot
CSS cursor string in url() format
Sets the cursor for the specified HTML element.
Applies the appropriate cursor style based on the cursor type. For built-in cursor types, uses CSS cursor values. For custom cursor types, uses cached SVG-based cursor definitions.
The type of cursor to set
The HTML element to apply the cursor to
Manages cursor appearance and behavior for the CAD editor.
This class creates and applies custom cursors to HTML elements, providing visual feedback for different CAD operations. It supports both built-in browser cursors and custom SVG-based cursors.
The cursor manager maintains a cache of cursor definitions to avoid recreating them repeatedly, improving performance.
This class is for internal use by the editor system
Example