The VS Code of video editing, built for agents.
TypeScript
Refactor JSX documentation for `<html>` element and remove outdated examples
konstantin-paulus5f1a60197e66
diff --git a/reference/jsx/README.md b/reference/jsx/README.mdindex 2f56b717..8fb44115 100644--- a/reference/jsx/README.md+++ b/reference/jsx/README.md@@ -42,47 +42,3 @@ The pipeline is driven by two commands: [`dapi mount`](../mount.md) renders the5. **Commit**: the rendered roots are reconciled against the document (see [roots.md](./roots.md)) as a **single undoable operation** that also covers the generated assets below.6. **Generate**: declared assets generate in dependency order, **blocking the command** until every one has landed. Each placeholder renders a generating state until its asset lands, then the node's paint is attached (see [generate.md](./generate.md)).7. **Sync**: nodes declaring `syncTo` are aligned once every generated asset has landed: each node's audio is cross-correlated against its target's and its `start` is written from the measured offset (see [audio-sync.md](./audio-sync.md)). Local and blocking; captions wait for it.--## Full example--```tsx-import { For } from "solid-js";-import { generate, type Time } from "@diffusionstudio/jsx";--const hero = generate.image({- prompt: "A neon city at night, cinematic",- aspectRatio: "16:9",- seed: 42,-});--const heroMotion = generate.video({- prompt: "slow camera push-in",- startFrame: hero,- duration: 5,-});--const TITLES = [- { text: "Hello World", start: 3, end: 6 },- { text: "Chapter One", start: 6, end: 9 },-];--export default function Project() {- return (- <rect scene="my-first-scene" name="MyFirstScene" fill="black" width={1920} height={1080}>- <sequence>- <video src={heroMotion} width={1920} height={1080} start={0} end={5} transition={{ type: "dissolve" }} />- <video src="/Movies/video.mp4" width={1920} height={1080} start={5} end={10} sourceIn={12} />- </sequence>-- <image src={hero} x={40} y={40} width={200} height={112} />-- <audio- src="https://my.videoarchive.com/audio/video-xyz.wav"- sourceIn={6}- sourceOut={16}- volume={-6}- />- </rect>- );-}-```diff --git a/reference/jsx/html.md b/reference/jsx/html.mdindex a5c22d7f..613368bc 100644--- a/reference/jsx/html.md+++ b/reference/jsx/html.md@@ -38,25 +38,6 @@ Prefer this timeline over hand-animating styles: keep the markup static and letThe `<html>` box carries all [common props](./elements.md#common-props). Its paint child form, [`<htmlPaint>`](./paints.md), draws the same reactive HTML onto any existing filled geometry; `<html>` is just a `<rect>` that carries one.-## As a scene (full-frame HTML)--Give `<html>` a [`scene`](./scene.md) identity and it becomes the mount root:--```tsx-<html scene="landing" name="Landing" width={1920} height={1080} end={5}>- <div style={`width:100%;height:100%;display:flex;align-items:center;justify-content:center;- background:#0b0d12;color:#fff;font:800 120px Inter;`}>- Hello- </div>-</html>-```--This also works for other rectangular geometry tags.---Each `<html>` is a separate dom layout and read-back per frame, so prefer fewer, larger hosts. When pieces share a span, it is usually nicer to lay them out with CSS inside one `<html>` than to reach for a separate host per piece.--## ReactivityThe children are part of the project's Solid graph: signals in attributes and text update the live DOM, and the drawn content follows on the next frame. A [`dapi mount`](../mount.md) stays live, so the graph keeps running and `useTicker` or timers can drive the markup: