Creates a new cursor manager instance. Initializes the cursor and creates default cursor definitions.
The view associated with the cursor manager
The current cursor type for the associated view.
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 current cursor for the associated view.
The type of cursor to set
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.