OPF

Search docs

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

    Reflection

    Reflection below the shape (a:reflection).

    Metadata

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

    Field index

    FieldTypeReq.Description
    opacitynumber—Opacity where the reflection starts.
    sizenumber—Share of the shape's height reflected.
    distancenumber—Gap between the shape and its reflection in reference pixels at a 720-pixel short edge.
    blurnumber—Blur radius in reference pixels at a 720-pixel short edge.

    opacity

    typenumberrequirednodefault—

    Opacity where the reflection starts.

    size

    typenumberrequirednodefault—

    Share of the shape's height reflected.

    distance

    typenumberrequirednodefault—

    Gap between the shape and its reflection in reference pixels at a 720-pixel short edge.

    blur

    typenumberrequirednodefault—

    Blur radius in reference pixels at a 720-pixel short edge.

    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "additionalProperties": false,
      "description": "Reflection below the shape (a:reflection).",
      "properties": {
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Opacity where the reflection starts."
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Share of the shape's height reflected."
        },
        "distance": {
          "type": "number",
          "minimum": 0,
          "maximum": 200,
          "description": "Gap between the shape and its reflection in reference pixels at a 720-pixel short edge."
        },
        "blur": {
          "type": "number",
          "minimum": 0,
          "maximum": 200,
          "description": "Blur radius in reference pixels at a 720-pixel short edge."
        }
      }
    }