OPF

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Arrowhead

    An arrowhead at one end of an open path or a line preset (DrawingML a:headEnd at the start, a:tailEnd at the end). Closed outlines have no ends, so arrowheads draw only on open paths such as arc, line or a custom path that is not closed.

    Metadata

    Definition
    #/$defs/Arrowhead
    Form
    object
    Source
    spec/schemas/opf.schema.json

    Field index

    FieldTypeReq.Description
    typeenum—Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given.
    type · Allowed values
    "none""triangle""stealth""diamond""oval""arrow"
    widthenum—Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
    width · Allowed values
    "small""medium""large"
    lengthenum—Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
    length · Allowed values
    "small""medium""large"

    type

    typeenumrequirednodefault—

    Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given.

    type · Allowed values
    "none""triangle""stealth""diamond""oval""arrow"
    type.json
    {
      "type": "none"
    }

    width

    typeenumrequirednodefault—

    Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium.

    width · Allowed values
    "small""medium""large"
    width.json
    {
      "width": "small"
    }

    length

    typeenumrequirednodefault—

    Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium.

    length · Allowed values
    "small""medium""large"
    length.json
    {
      "length": "small"
    }
    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "additionalProperties": false,
      "description": "An arrowhead at one end of an open path or a line preset (DrawingML a:headEnd at the start, a:tailEnd at the end). Closed outlines have no ends, so arrowheads draw only on open paths such as arc, line or a custom path that is not closed.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "none",
            "triangle",
            "stealth",
            "diamond",
            "oval",
            "arrow"
          ],
          "description": "Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given."
        },
        "width": {
          "type": "string",
          "enum": [
            "small",
            "medium",
            "large"
          ],
          "description": "Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
        },
        "length": {
          "type": "string",
          "enum": [
            "small",
            "medium",
            "large"
          ],
          "description": "Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
        }
      },
      "examples": [
        {
          "type": "triangle"
        },
        {
          "type": "stealth",
          "width": "large",
          "length": "large"
        }
      ]
    }