Skip to main content

Home > @jsplumbtoolkit/browser-ui > SurfaceDragOptions

SurfaceDragOptions interface

Signature:

export interface SurfaceDragOptions extends Omit<DragOptions, "grid"> 

Extends: Omit<DragOptions, "grid">

Properties

PropertyModifiersTypeDescription
constrainFunction?(desiredLoc: PointXY, dragEl: HTMLElement, constrainRect: Size, size: Size) => PointXY(Optional) Optional function to use to constrain element dragging.
filter?string(Optional) Optional CSS3 selector identifying parts of nodes/groups that should not cause a drag to start.