interface
HitRegionSpecification
Specifies which properties a hit region responds too.
- Properties
- click, contextMenu, cursor, doubleClick, grab, grabEnd, id, keyDown, keyUp, mouseDown, mouseEnter, mouseLeave, mouseMove, mouseUp, parentId, wheel
Properties
- clickoptional
- Type:
-
(event: MouseHitEvent) => void
- contextMenuoptional
- Type:
-
(event: MouseHitEvent) => void
- cursoroptional
Cursor on hover.
- Type:
-
string
- doubleClickoptional
- Type:
-
(event: MouseHitEvent) => void
- graboptional
- Type:
-
(event: GrabHitEvent) => void
- grabEndoptional
- Type:
-
() => void
- id
Unique identifier for this region.
While it is preferred to make hit regions outside of the draw loop, it is allowed and the ID is what establishes conceptually a unique region.
- Type:
-
string
- keyDownoptional
- Type:
-
(event: KeyboardHitEvent) => void
- keyUpoptional
- Type:
-
(event: KeyboardHitEvent) => void
- mouseDownoptional
- Type:
-
(event: MouseHitEvent) => void
- mouseEnteroptional
- Type:
-
(event: MouseHitEvent) => void
- mouseLeaveoptional
- Type:
-
(event: MouseHitEvent) => void
- mouseMoveoptional
- Type:
-
(event: MouseHitEvent) => void
- mouseUpoptional
- Type:
-
(event: MouseHitEvent) => void
- parentIdoptional
Optional identifier of a parent region. Some region properties ‘bubble up’ to parent regions.
For example if a cursor is set on a parent, but not on the child region, the parent’s cursor will be displayed even if the child is hovered.
- Type:
-
string
- wheeloptional
- Type:
-
(event: WheelHitEvent) => void