Skip to main content

Home > @jsplumbtoolkit/browser-ui > ConnectorEditorActivateParams

ConnectorEditorActivateParams interface

Signature:

export interface ConnectorEditorActivateParams 

Properties

PropertyModifiersTypeDescription
anchorPositionFinder?(el: Element, elxy: PointXY, vertex: Vertex) => ArrayAnchorSpec | null(Optional) Optional function allowing you to specify the location of the placeholder when the user is dragging anchor. From 6.2.0 this is probably not of much use, as snapToAnchors defaults to true and positions the placeholder above the anchor on which it would be dropped if the user were to release the mouse button.
anchorPositions?Array<ObjectAnchorSpec>(Optional) Optional array of allowed positions for anchors to be relocated to
deleteButton?boolean(Optional) If true, show a button the user can use to delete the edge. Defaults to false.
onMaybeDelete?(edge: Edge, connection: Connection, doDelete: (data: Record<string, any>) => any) => any(Optional) Optional interceptor to invoke when the user presses the delete button. If the user wishes to go ahead with the edge deletion, doDelete will be invoked.
overlays?Array<FullOverlaySpec>(Optional) Optional array of overlays to decorate the edge with while it is being edited.
snapToAnchors?boolean(Optional) Defaults to true. While dragging an anchor, this flag ensures the editor positions the placeholder above the anchor on which it would be dropped if the user were to release the mouse button. This behaviour is new in 6.2.0 and the previous behaviour can be reinstated by setting this to false.