defineArrowheadGeometry static method

void defineArrowheadGeometry(
  1. String name,
  2. Object pathstr
)

This static function defines a named arrowhead geometry. Once this is called one can use the name as a value for Shape#toArrow or Shape#fromArrow.

The first argument is the new arrowhead name and must be a non-empty string that starts with a capital letter and that is not "None".

If the second argument is a string, it is converted into a Geometry by calling go.Geometry.parse(pathstr, false), which may throw an error if there are problems with the syntax of the string.

Implementation

static void defineArrowheadGeometry(
  _i2.String name,
  _i2.Object pathstr,
) {
  _i4.callMethod(
    _declaredShape,
    'defineArrowheadGeometry',
    [
      name,
      pathstr,
    ],
  );
}