OPF

Search docs

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

    Shape Block Option

    An option of shape blocks only (fill, style, rotate, flip, the text frame, accessibility, link and the six effects): the block must be a shape block, which is a 'shape' with no 'image', or a 'path'.

    Metadata

    Definition
    #/$defs/ShapeBlockOption
    Form
    2 inclusive forms (anyOf)
    Source
    spec/schemas/opf.schema.json

    Field index

    This definition uses the forms or value constraints below.

    anyOf 1 · restriction

    Exact constraints for anyOf 1
    anyOf 1 schema
    {
      "required": [
        "shape"
      ],
      "not": {
        "required": [
          "image"
        ]
      }
    }

    anyOf 2 · object

    Exact constraints for anyOf 2
    anyOf 2 schema
    {
      "required": [
        "path"
      ]
    }
    Complete definition constraints
    Schema constraints
    {
      "description": "An option of shape blocks only (fill, style, rotate, flip, the text frame, accessibility, link and the six effects): the block must be a shape block, which is a 'shape' with no 'image', or a 'path'.",
      "anyOf": [
        {
          "required": [
            "shape"
          ],
          "not": {
            "required": [
              "image"
            ]
          }
        },
        {
          "required": [
            "path"
          ]
        }
      ]
    }