cursors
Index
Namespaces
Classes
Variables
Functions
Namespaces
elementCursor
hideElementCursor
Parameters
element: HTMLDivElement
Returns void
initElementCursor
Parameters
element: HTMLDivElement
cursor: default
Returns void
resetElementCursor
Parameters
element: HTMLDivElement
Returns void
setElementCursor
Parameters
element: HTMLDivElement
cursor: default
Returns void
Classes
ImageMouseCursor
constructor
addFallbackStyleProperty
Parameters
style: string
Returns string
getName
Returns string
getStyleProperty
Returns string
staticgetDefinedCursor
Parameters
name: string
Returns default
staticgetUniqueInstanceName
Parameters
prefix: string
Returns string
staticsetDefinedCursor
Parameters
name: string
cursor: default
Returns boolean
MouseCursor
constructor
addFallbackStyleProperty
Parameters
style: string
Returns string
getName
Returns string
getStyleProperty
Returns string
staticgetDefinedCursor
Parameters
name: string
Returns default
staticsetDefinedCursor
Parameters
name: string
cursor: default
Returns boolean
SVGMouseCursor
constructor
addFallbackStyleProperty
Parameters
style: string
Returns string
getName
Returns string
getStyleProperty
Returns string
staticgetDefinedCursor
Parameters
name: string
The name of the cursor (defined in SVGCursorDescriptor.ts);
pointer: boolean = false
Should be true to use the version of the cursor containing a mouse pointer. Defaults to false (which does not add a pointer to the cursor);
optionalcolor: string
The color of the cursor. Defaults to tool.style.colorHighlightedActive;
Returns default
a SVGMouseCursor instance or undefined if no SVG cursor descriptor was found with the given name;
staticgetUniqueInstanceName
Parameters
prefix: string
Returns string
staticsetDefinedCursor
Parameters
name: string
cursor: default
Returns boolean
Variables
constCursorNames
constCursorSVG
Type declaration
Angle: SVGCursorDescriptor
ArrowAnnotate: SVGCursorDescriptor
Bidirectional: SVGCursorDescriptor
CircleROI: SVGCursorDescriptor
CircleScissor: SVGCursorDescriptor
CircleScissor.ERASE_OUTSIDE: SVGCursorDescriptor
CircleScissor.FILL_INSIDE: SVGCursorDescriptor
CircleScissor.FILL_OUTSIDE: SVGCursorDescriptor
CobbAngle: SVGCursorDescriptor
Crosshairs: SVGCursorDescriptor
EllipticalROI: SVGCursorDescriptor
Eraser: SVGCursorDescriptor
FreehandROI: SVGCursorDescriptor
FreehandROISculptor: SVGCursorDescriptor
Length: SVGCursorDescriptor
Magnify: SVGCursorDescriptor
Pan: SVGCursorDescriptor
Probe: SVGCursorDescriptor
RectangleROI: SVGCursorDescriptor
RectangleScissor: SVGCursorDescriptor
RectangleScissor.ERASE_INSIDE: SVGCursorDescriptor
RectangleScissor.ERASE_OUTSIDE: SVGCursorDescriptor
RectangleScissor.FILL_INSIDE: SVGCursorDescriptor
RectangleScissor.FILL_OUTSIDE: SVGCursorDescriptor
Rotate: SVGCursorDescriptor
SegmentationFreeHandEraseInside: SVGCursorDescriptor
SegmentationFreeHandEraseOutside: SVGCursorDescriptor
SegmentationFreeHandFillInside: SVGCursorDescriptor
SegmentationFreeHandFillOutside: SVGCursorDescriptor
SegmentationRectangleEraseInside: SVGCursorDescriptor
StackScroll: SVGCursorDescriptor
TextMarker: SVGCursorDescriptor
WindowLevel: SVGCursorDescriptor
WindowLevelRegion: SVGCursorDescriptor
Zoom: SVGCursorDescriptor
Functions
registerCursor
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: { x: number; y: number }
The viewBox of the cursor object.
Returns void
setCursorForElement
Set the cursor for an HTML element. cursorNames can be either cornerstone3DTools cursors or standard cursors.
Parameters
element: HTMLDivElement
The element to set the cursor on.
cursorName: string
The name of the cursor to set. This can be any cursor name either Cornerstone-specific cursor names or the standard CSS cursor names.
Returns void
Get a shared instance of the SVGMouseCursor class satisfying the given parameters.