MouseCursorStyle

Type class

Defines static methods that hold style list for various mouse cursor styles, maintaining browser compatibility.

Sources

MouseCursorStyle can be used (imported) via one of the following packages.

// MouseCursorStyle is available in all of the following modules.
// You only need to import one of them.

/**
 * --------------------------------------------------------
 * Import from: "core.ts"
 * Use like: am4core.MouseCursorStyle
 * --------------------------------------------------------
 */
import * as am4core from "@amcharts/amcharts4/core";

// MouseCursorStyle is available in all of the following modules.
// You only need to import one of them.

/**
 * --------------------------------------------------------
 * Include via: <script src="core.js"></script>
 * Access items like: am4core.MouseCursorStyle
 * --------------------------------------------------------
 */

Inheritance

MouseCursorStyle does not extend any other symbol.

MouseCursorStyle is not extended by any other symbol.

Properties

default
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "default"

}]

Styles for default mouse cursor. (browser determines style)

grab
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "move"

}, {
  
"property": "cursor",
  
"value": "grab"

}, {
  
"property": "cursor",
  
"value": "-webkit-grab"

}]

Styles for "grab" mouse cursor.

grabbing
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "move"

}, {
  
"property": "cursor",
  
"value": "grabbing"

}, {
  
"property": "cursor",
  
"value": "-webkit-grabbing"

}]

Styles for "grabbing" mouse cursor.

horizontalResize
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "ew-resize"

}]

Styles for horizontal bi-directional resize mouse cursor.

notAllowed
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "not-allowed"

}]

Styles for "no-allowed" cursor.

@since 4.7.15

pointer
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "pointer"

}]

Styles for "pointer" mouse cursor. (usually used for links)

text
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "text"

}]

Styles for "text" cursor.

@since 4.9.12

verticalResize
#

Type Array < IStyleProperty >

Default [{
  
"property": "cursor",
  
"value": "ns-resize"

}]

Styles for vertical bi-directional mouse cursor.

Methods

MouseCursorStyle does not have any methods.

Events

MouseCursorStyle does not have any events.

Adapters

MouseCursorStyle does not have any adapters.