Options
All
  • Public
  • Public/Protected
  • All
Menu

Composable drag point contract.

Hierarchy

  • IDragPoint

Implemented by

Index

Properties

Readonly id

id: string

Stable id of the drag point.

Methods

applyDrag

  • applyDrag(ctx: IDragPointContext, currentValues: Point, previousValues: Point): void
  • Applies drag from previous to current value-space points.

    Parameters

    Returns void

getAdornerSvg

  • Returns SVG for this drag-point adorner.

    Parameters

    Returns string

Optional getCursor

  • Optional cursor while hover/dragging this drag point.

    Parameters

    Returns ECursorStyle | undefined

getScreenPosition

  • Optional screen position, used by generic distance hit-test.

    Parameters

    Returns Point | undefined

hitTest

  • Hit-test in canvas coordinates (DPI scaled).

    Parameters

    Returns boolean

Generated using TypeDoc