{
  "$schema": "https://openpresentation.org/schema/opf/v1",
  "name": "Shape overlays",
  "description": "Technical fixture for overlay shapes and connectors (SH-04): callouts and badges placed by fractions of the slide, shapes attached to blocks with at (a picture included), straight, elbow and curved connectors between blocks and overlay shapes with arrowheads, every route between facing, same-facing and perpendicular sites, an authored connector adjust, and the back layer. shape-overlays-rtl.opf.json is the right-to-left slide.",
  "language": "en-US",
  "slides": [
    {
      "title": "Callouts and badges",
      "blocks": [
        {
          "id": "revenue",
          "metric": {
            "value": "$4.2M",
            "label": "Quarterly revenue"
          }
        },
        {
          "id": "summary",
          "text": "Revenue grew in every region this quarter, led by the new self-serve plan."
        }
      ],
      "shapes": [
        {
          "id": "record",
          "shape": "wedgeRectCallout",
          "text": "Record quarter",
          "x": 0.06,
          "y": 0.26,
          "width": 0.2,
          "height": 0.1,
          "style": "subtle",
          "adjust": {
            "adj1": 0.35,
            "adj2": 0.9
          }
        },
        {
          "id": "new",
          "shape": "star12",
          "text": "New",
          "x": 0.86,
          "y": 0.05,
          "width": 0.1,
          "height": 0.16,
          "fill": "accent2",
          "stroke": "none"
        },
        {
          "shape": "ellipse",
          "text": "1",
          "x": 0.9,
          "y": 0.84,
          "width": 0.05,
          "height": 0.09,
          "style": "intense",
          "alt": "Page badge 1"
        }
      ]
    },
    {
      "title": "Shapes attached to blocks",
      "blocks": [
        {
          "id": "photo",
          "image": {
            "src": "./assets/cover.png",
            "alt": "Abstract cover artwork"
          }
        },
        {
          "id": "notes",
          "text": "The badge and the caption follow the picture wherever composition puts it."
        }
      ],
      "shapes": [
        {
          "id": "badge",
          "shape": "ellipse",
          "text": "4K",
          "at": {
            "block": "photo",
            "edge": "end",
            "offset": -96,
            "widthPx": 72,
            "heightPx": 72
          },
          "fill": "accent2",
          "stroke": {
            "color": "light1",
            "width": 3
          }
        },
        {
          "shape": "roundRect",
          "text": "Shot on location",
          "at": {
            "block": "photo",
            "edge": "bottom",
            "offset": -56,
            "width": 0.4,
            "heightPx": 40
          },
          "style": "subtle"
        },
        {
          "shape": "rightArrow",
          "at": {
            "block": "notes",
            "edge": "start",
            "offset": 8,
            "widthPx": 36,
            "heightPx": 24
          },
          "fill": "accent1"
        },
        {
          "id": "sunrise",
          "shape": "roundRect",
          "text": "Sunrise",
          "x": 0.76,
          "y": 0.22,
          "width": 0.16,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "sunrise",
            "to": "photo",
            "route": "elbow"
          },
          "stroke": {
            "width": 2,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          }
        }
      ]
    },
    {
      "title": "Connectors between blocks",
      "blocks": [
        {
          "id": "plan",
          "shape": "roundRect",
          "text": "Plan",
          "aspectRatio": 1.6
        },
        {
          "id": "build",
          "shape": "roundRect",
          "text": "Build",
          "aspectRatio": 1.6
        },
        {
          "id": "ship",
          "shape": "ellipse",
          "text": "Ship",
          "aspectRatio": 1
        }
      ],
      "shapes": [
        {
          "id": "review",
          "shape": "flowChartDecision",
          "text": "Review",
          "x": 0.4,
          "y": 0.8,
          "width": 0.2,
          "height": 0.14,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "plan",
            "to": "build",
            "route": "straight"
          },
          "stroke": {
            "width": 3,
            "end": {
              "type": "triangle"
            }
          }
        },
        {
          "connector": {
            "from": "build",
            "to": "ship",
            "route": "straight"
          },
          "stroke": {
            "width": 3,
            "color": "accent1",
            "end": {
              "type": "stealth",
              "length": "large"
            }
          }
        },
        {
          "connector": {
            "from": "build",
            "to": "review",
            "route": "elbow"
          },
          "stroke": {
            "width": 2,
            "dash": "dash",
            "end": {
              "type": "triangle"
            }
          }
        },
        {
          "connector": {
            "from": "review",
            "to": "plan",
            "route": "curved",
            "fromSite": 1,
            "toSite": 2
          },
          "stroke": {
            "width": 2,
            "color": "accent2",
            "start": {
              "type": "oval",
              "width": "small",
              "length": "small"
            },
            "end": {
              "type": "arrow"
            }
          },
          "alt": "Review sends the work back to planning"
        }
      ],
      "composition": {
        "gap": 0.1
      }
    },
    {
      "title": "Elbow and curved routes",
      "blocks": [
        {
          "id": "source",
          "shape": "rect",
          "text": "Source"
        },
        {
          "blocks": [
            {
              "id": "upper",
              "shape": "roundRect",
              "text": "Upper"
            },
            {
              "id": "lower",
              "shape": "roundRect",
              "text": "Lower"
            }
          ],
          "composition": {
            "mode": "column"
          }
        }
      ],
      "shapes": [
        {
          "connector": {
            "from": "source",
            "to": "upper",
            "route": "elbow"
          },
          "stroke": {
            "width": 2,
            "end": {
              "type": "triangle"
            }
          }
        },
        {
          "connector": {
            "from": "source",
            "to": "lower",
            "route": "curved"
          },
          "stroke": {
            "width": 2,
            "end": {
              "type": "triangle"
            }
          }
        },
        {
          "connector": {
            "from": "upper",
            "to": "lower",
            "route": "elbow",
            "fromSite": 3,
            "toSite": 3
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "diamond",
              "width": "large",
              "length": "large"
            }
          }
        }
      ]
    },
    {
      "title": "Every route",
      "shapes": [
        {
          "id": "r0a",
          "shape": "rect",
          "x": 0.04,
          "y": 0.3,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r0b",
          "shape": "rect",
          "x": 0.16,
          "y": 0.3,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r0a",
            "to": "r0b",
            "route": "straight",
            "fromSite": 3,
            "toSite": 1
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "straight, facing"
        },
        {
          "id": "r1a",
          "shape": "rect",
          "x": 0.23,
          "y": 0.26,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r1b",
          "shape": "rect",
          "x": 0.33,
          "y": 0.38,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r1a",
            "to": "r1b",
            "route": "straight"
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "straight, diagonal"
        },
        {
          "id": "r2a",
          "shape": "rect",
          "x": 0.42,
          "y": 0.26,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r2b",
          "shape": "rect",
          "x": 0.54,
          "y": 0.38,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r2a",
            "to": "r2b",
            "route": "elbow",
            "fromSite": 3,
            "toSite": 1
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "elbow Z"
        },
        {
          "id": "r3a",
          "shape": "rect",
          "x": 0.62,
          "y": 0.26,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r3b",
          "shape": "rect",
          "x": 0.72,
          "y": 0.38,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r3a",
            "to": "r3b",
            "route": "elbow",
            "fromSite": 3,
            "toSite": 3
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "elbow U"
        },
        {
          "id": "r4a",
          "shape": "rect",
          "x": 0.81,
          "y": 0.26,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r4b",
          "shape": "rect",
          "x": 0.91,
          "y": 0.4,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r4a",
            "to": "r4b",
            "route": "elbow",
            "fromSite": 3,
            "toSite": 0
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "elbow L"
        },
        {
          "id": "r5a",
          "shape": "rect",
          "x": 0.04,
          "y": 0.62,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r5b",
          "shape": "rect",
          "x": 0.16,
          "y": 0.76,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r5a",
            "to": "r5b",
            "route": "curved",
            "fromSite": 3,
            "toSite": 1
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "curved Z"
        },
        {
          "id": "r6a",
          "shape": "rect",
          "x": 0.23,
          "y": 0.62,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r6b",
          "shape": "rect",
          "x": 0.33,
          "y": 0.76,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r6a",
            "to": "r6b",
            "route": "curved",
            "fromSite": 3,
            "toSite": 3
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "curved U"
        },
        {
          "id": "r7a",
          "shape": "rect",
          "x": 0.42,
          "y": 0.62,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r7b",
          "shape": "rect",
          "x": 0.54,
          "y": 0.78,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r7a",
            "to": "r7b",
            "route": "curved",
            "fromSite": 3,
            "toSite": 0
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "curved L"
        },
        {
          "id": "r8a",
          "shape": "rect",
          "x": 0.62,
          "y": 0.6,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r8b",
          "shape": "rect",
          "x": 0.72,
          "y": 0.8,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r8a",
            "to": "r8b",
            "route": "elbow",
            "fromSite": 2,
            "toSite": 0
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "elbow down"
        },
        {
          "id": "r9a",
          "shape": "rect",
          "x": 0.81,
          "y": 0.8,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "id": "r9b",
          "shape": "rect",
          "x": 0.91,
          "y": 0.6,
          "width": 0.06,
          "height": 0.08,
          "style": "subtle"
        },
        {
          "connector": {
            "from": "r9a",
            "to": "r9b",
            "route": "curved",
            "fromSite": 0,
            "toSite": 2
          },
          "stroke": {
            "width": 3,
            "color": "accent2",
            "end": {
              "type": "triangle"
            }
          },
          "alt": "curved up"
        },
        {
          "connector": {
            "from": "r2a",
            "to": "r2b",
            "route": "elbow",
            "fromSite": 2,
            "toSite": 0
          },
          "adjust": {
            "adj1": 0.25
          },
          "stroke": {
            "width": 2,
            "color": "light1",
            "dash": "sysDot"
          },
          "alt": "elbow with an authored adjust"
        }
      ]
    },
    {
      "title": "The back layer",
      "blocks": [
        {
          "id": "claim",
          "text": "The panel behind this text is an overlay shape in the back layer: it is drawn over the background and under the content."
        },
        {
          "id": "growth",
          "metric": {
            "value": "+18%",
            "label": "Year over year"
          }
        }
      ],
      "shapes": [
        {
          "id": "panel",
          "layer": "back",
          "shape": "roundRect",
          "x": 0.03,
          "y": 0.22,
          "width": 0.94,
          "height": 0.7,
          "fill": {
            "color": "accent1",
            "darken": 0.55
          },
          "stroke": "none",
          "adjust": {
            "adj": 0.06
          },
          "decorative": true
        },
        {
          "id": "stripe",
          "layer": "back",
          "shape": "rect",
          "x": 0.03,
          "y": 0.22,
          "width": 0.012,
          "height": 0.7,
          "fill": "light1",
          "stroke": "none",
          "decorative": true
        },
        {
          "shape": "ellipse",
          "text": "New",
          "at": {
            "block": "growth",
            "edge": "top",
            "offset": -20,
            "widthPx": 80,
            "heightPx": 80
          },
          "fill": "light1",
          "stroke": "none"
        }
      ]
    }
  ]
}
