The VS Code of video editing, built for agents.
TypeScript
Update default objectFit value in image and elements documentation for consistency
konstantin-paulus79daf8a0370d
diff --git a/apps/cli/reference/jsx/elements.md b/apps/cli/reference/jsx/elements.mdindex 8c77a60c..ca0154ca 100644--- a/apps/cli/reference/jsx/elements.md+++ b/apps/cli/reference/jsx/elements.md@@ -23,7 +23,7 @@ User-defined components are ordinary Solid components; they compose intrinsics a- Coordinates are **pixels relative to the parent's box**, origin top-left. No percentages, no layout keywords; explicit numbers until the layout engine lands.- **Every element's box defaults to its parent's box**: `x` and `y` default to `0`, `width` and `height` default to the parent's size (the JSX analog of `position: absolute; inset: 0`). The scene's box is its required `width`×`height`.-- How media pixels map into the box is controlled by `objectFit`, never by the box itself. A generated asset's placeholder therefore always has a definite size, even before the asset exists.+- How media pixels map into the box is controlled by `objectFit` (default `"cover"`), never by the box itself. A generated asset's placeholder therefore always has a definite size, even before the asset exists.## Common propsdiff --git a/apps/cli/reference/jsx/image.md b/apps/cli/reference/jsx/image.mdindex bd142668..8d36b50c 100644--- a/apps/cli/reference/jsx/image.md+++ b/apps/cli/reference/jsx/image.md@@ -13,6 +13,6 @@ All [common props](./elements.md#common-props), plus:| Prop | Type | Default | Meaning || ---- | ---- | ------- | ------- || `src` | `string \| AssetRef` | **required** | See [media.md](./media.md). |-| `objectFit` | `"cover" \| "contain" \| "fill"` | `"contain"` | How the source maps into the box. |+| `objectFit` | `"cover" \| "contain" \| "fill"` | `"cover"` | How the source maps into the box. |A paint child draws over the media paint created by `src` (see [paints.md](./paints.md)).diff --git a/apps/web/src/context/editor-api/context.ts b/apps/web/src/context/editor-api/context.tsindex aebff6ef..19f8bfeb 100644--- a/apps/web/src/context/editor-api/context.ts+++ b/apps/web/src/context/editor-api/context.ts@@ -24,7 +24,7 @@ export function handleContextGet(engine: Accessor<Engine>) {const entityCount = getAllEntities(world).filter((eid) => !hasComponent(world, eid, c.Deleted)).length;const activeSceneId = world.selection.scene !== null ? world.selection.scene : null;const currentFrame = activeSceneId !== null ? (c.Computed.localTime[activeSceneId] ?? 0) : 0;- const fontFamilies = [...new Set(world.fonts.map((f) => f.family))];+ const fontFamilies = [...new Set(["Inter", ...world.fonts.map((f) => f.family)])];const projectId = world.projectId;const projectName = await getProjectName(projectId);