LayerPlate data
A clipped composition with three ordered insertion points. Each layer shares its coordinate system.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| fill | color | "ground" |
* required. Every node also takes the common props: id, motion, start, place, scale, rotate, opacity, w, h. A colour is a palette name, never a value.
Parts#
Named parts can be restyled from outside without making a new component: "parts": { "root": { … } }.
| Part | Is a |
|---|---|
| root | box |
Content it wraps#
| Slot | What goes in it |
|---|---|
| back | Background media or scenery |
| subject | Main subject, text or product interface |
| overlay | Captions, annotation and marks above the subject |
Fill a slot with a list of nodes: "slots": { "back": [ … ] }.
Example#
{
"el": "LayerPlate",
"slots": {
"subject": [{"el": "StatReveal", "value": 36, "suffix": "%"}],
"overlay": [{"el": "text", "text": "Completion rate", "place": [0.5, 0.32]}]
}
}How it is made#
This component is plain data. Its whole definition is the tree below: copy it into a scene's components list under a new name to make your own version. See Custom components.
{
"el": "box",
"dir": "stack",
"w": "fill",
"h": "fill",
"clip": true,
"fill": "$fill",
"children": [{"$slot": "back"}, {"$slot": "subject"}, {"$slot": "overlay"}]
}