mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
Restores the 208 catalog items reverted after their previews 404'd in production, this time on the payload mechanism rather than the .html files that caused the outage. The generator no longer writes a preview document to docs/public. That writer, and the machinery under it, existed only to produce files the docs host discards, so it is gone rather than bypassed. Items now embed the composition itself via a payload, which is what the previous change already does for the items that were already in the catalog. The variables explorer is parked, not restored: it drove its preview through the same unpublished .html path, so it would have shown an empty frame. Items that declare variables get the live player plus the static variables table, and reconnecting the explorer to payloads is a follow-up.
92 lines
2.3 KiB
JSON
92 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "oscilloscope-trace",
|
|
"type": "hyperframes:block",
|
|
"title": "Oscilloscope Trace",
|
|
"description": "CRT oscilloscope beam sweeping a waveform across a 10x8 graticule, with closed-form phosphor persistence: the tail decays as exp(-age/tau) and brightens where the beam slows",
|
|
"tags": ["instrument", "data", "showcase", "retro"],
|
|
"dimensions": {
|
|
"width": 1920,
|
|
"height": 1080
|
|
},
|
|
"duration": 6,
|
|
"variables": [
|
|
{
|
|
"id": "waveform",
|
|
"type": "enum",
|
|
"label": "Waveform",
|
|
"default": "sine",
|
|
"options": [
|
|
{ "value": "sine", "label": "Sine" },
|
|
{ "value": "square", "label": "Square" },
|
|
{ "value": "triangle", "label": "Triangle" },
|
|
{ "value": "data", "label": "Data series" }
|
|
]
|
|
},
|
|
{
|
|
"id": "frequency",
|
|
"type": "number",
|
|
"label": "Signal frequency",
|
|
"unit": "Hz",
|
|
"default": 12,
|
|
"min": 0.1,
|
|
"max": 200,
|
|
"step": 0.1
|
|
},
|
|
{
|
|
"id": "amplitude",
|
|
"type": "number",
|
|
"label": "Amplitude",
|
|
"unit": "div",
|
|
"default": 3,
|
|
"min": 0.1,
|
|
"max": 4,
|
|
"step": 0.1
|
|
},
|
|
{
|
|
"id": "persistenceMs",
|
|
"type": "number",
|
|
"label": "Phosphor persistence (tau)",
|
|
"unit": "ms",
|
|
"default": 100,
|
|
"min": 1,
|
|
"max": 1000,
|
|
"step": 1
|
|
},
|
|
{
|
|
"id": "phosphorColor",
|
|
"type": "color",
|
|
"label": "Phosphor colour",
|
|
"default": "#5dff8f"
|
|
},
|
|
{
|
|
"id": "sweepRate",
|
|
"type": "number",
|
|
"label": "Sweep rate",
|
|
"unit": "sweeps/s",
|
|
"default": 5,
|
|
"min": 0.25,
|
|
"max": 60,
|
|
"step": 0.25
|
|
},
|
|
{
|
|
"id": "dataSeries",
|
|
"type": "string",
|
|
"label": "Data series (waveform=data)",
|
|
"default": "",
|
|
"placeholder": "0,0.4,0.9,0.3,-0.6,-1,-0.2,0.5"
|
|
}
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "oscilloscope-trace.html",
|
|
"target": "compositions/oscilloscope-trace.html",
|
|
"type": "hyperframes:composition"
|
|
}
|
|
],
|
|
"preview": {
|
|
"video": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/oscilloscope-trace.mp4",
|
|
"poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/oscilloscope-trace.png"
|
|
}
|
|
}
|