Options
All
  • Public
  • Public/Protected
  • All
Menu

Drag point positioned at the midpoint between two host points.

Hierarchy

Implements

Index

Constructors

constructor

  • new PointPairMidpointDragPoint(pointAIndex: number, pointBIndex: number, applyDelta: (deltaX: number, deltaY: number) => void, id: string, getAdornerSvg?: (ctx: IDragPointContext, position: Point) => string, getCursor?: (ctx: IDragPointContext, isDragging: boolean) => ECursorStyle | undefined): PointPairMidpointDragPoint
  • Parameters

    • pointAIndex: number
    • pointBIndex: number
    • applyDelta: (deltaX: number, deltaY: number) => void
        • (deltaX: number, deltaY: number): void
        • Parameters

          • deltaX: number
          • deltaY: number

          Returns void

    • id: string
    • Optional getAdornerSvg: (ctx: IDragPointContext, position: Point) => string
    • Optional getCursor: (ctx: IDragPointContext, isDragging: boolean) => ECursorStyle | undefined

    Returns PointPairMidpointDragPoint

Properties

Readonly id

id: string

Methods

applyDrag

  • applyDrag(ctx: IDragPointContext, currentValues: Point, previousValues: Point): void

getAdornerSvg

getCursor

getScreenPosition

hitTest

Generated using TypeDoc