OPF

Search docs

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

    Inner Shadow

    Inner shadow (a:innerShdw).

    Metadata

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

    Field index

    FieldTypeReq.Description
    colorref:ColorRef—Shadow color. Default black.
    color · Named choices (see schema for other values and constraints)
    "accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
    opacitynumber—Shadow opacity.
    blurnumber—Blur radius in reference pixels at a 720-pixel short edge.
    distancenumber—Offset in reference pixels at a 720-pixel short edge.
    anglenumber—Direction of the offset in degrees (0 = right, 90 = down).

    color

    typeref:ColorRefrequirednodefault—

    Shadow color. Default black.

    Named choices are not exhaustive. See the schema for other values and constraints.
    color, color (anyOf 4).color · Named choices
    "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "dark1", "dark2", "light1", "light2", "hyperlink", "followedHyperlink", "primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"

    opacity

    typenumberrequirednodefault—

    Shadow opacity.

    blur

    typenumberrequirednodefault—

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

    distance

    typenumberrequirednodefault—

    Offset in reference pixels at a 720-pixel short edge.

    angle

    typenumberrequirednodefault—

    Direction of the offset in degrees (0 = right, 90 = down).

    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "additionalProperties": false,
      "description": "Inner shadow (a:innerShdw).",
      "properties": {
        "color": {
          "$ref": "#/$defs/ColorRef",
          "description": "Shadow color. Default black."
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Shadow opacity."
        },
        "blur": {
          "type": "number",
          "minimum": 0,
          "maximum": 200,
          "description": "Blur radius in reference pixels at a 720-pixel short edge."
        },
        "distance": {
          "type": "number",
          "minimum": 0,
          "maximum": 200,
          "description": "Offset in reference pixels at a 720-pixel short edge."
        },
        "angle": {
          "type": "number",
          "minimum": 0,
          "maximum": 360,
          "description": "Direction of the offset in degrees (0 = right, 90 = down)."
        }
      }
    }