OPF

Search docs

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

    Image Or Shape Block Option

    An option of image blocks and shape blocks (aspectRatio, adjust, stroke, opacity): the block must hold an 'image', a 'shape' or a 'path'.

    Metadata

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

    Field index

    This definition uses the forms or value constraints below.

    anyOf 1 · object

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

    anyOf 2 · object

    Exact constraints for anyOf 2
    anyOf 2 schema
    {
      "required": [
        "shape"
      ]
    }

    anyOf 3 · object

    Exact constraints for anyOf 3
    anyOf 3 schema
    {
      "required": [
        "path"
      ]
    }
    Complete definition constraints
    Schema constraints
    {
      "description": "An option of image blocks and shape blocks (aspectRatio, adjust, stroke, opacity): the block must hold an 'image', a 'shape' or a 'path'.",
      "anyOf": [
        {
          "required": [
            "image"
          ]
        },
        {
          "required": [
            "shape"
          ]
        },
        {
          "required": [
            "path"
          ]
        }
      ]
    }