@maxgraph/core
    Preparing search index...

    Function createArrow

    • Generally used to create the "classic" and "block" marker factory methods.

      Here is an example the registration of a factory edge marker function with createArrow:

      MarkerShape.addMarker('classic', EdgeMarker.createArrow(2));
      MarkerShape.addMarker('blockThin', EdgeMarker.createArrow(3));

      Parameters

      • widthFactor: number

      Returns (
          canvas: AbstractCanvas2D,
          _shape: Shape,
          type: StyleArrowValue,
          pe: Point,
          unitX: number,
          unitY: number,
          size: number,
          _source: boolean,
          sw: number,
          filled: boolean,
      ) => () => void

      0.18.0