interface ArrowOverlayOptions {
    attributes?: Record<string, string>;
    cssClass?: string;
    direction?: number;
    events?: Record<string, ((value, event?) => any)>;
    foldback?: number;
    id?: string;
    length?: number;
    location?: number;
    paintStyle?: PaintStyle;
    width?: number;

Hierarchy (view full)


attributes?: Record<string, string>

Optional custom attributes to write to the overlay's element.

cssClass?: string

Optional CSS class(es) to add to the overlay's element.

direction?: number

1 to point forwards (the default), -1 to point backwards.

events?: Record<string, ((value, event?) => any)>

Optional event handlers to attach to the overlay.

Type declaration

    • (value, event?): any
    • Parameters

      • value: any
      • Optional event: any

      Returns any

foldback?: number

How far, as a decimal, along the line from head to baseline to fold back into. Defaults to 0.623.

id?: string

Optional ID for the overlay. Can be used to retrieve the overlay from a connection.

length?: number

Length from the head to the baseline. Defaults to 20.

location?: number

Defaults to 0.5. See docs.

paintStyle?: PaintStyle

Optional paint style to use for the arrow.

width?: number

Width of the arrow's baseline. Defaults to 20.