Open source CapCut alternative.
TypeScript
feat(site): let a dive zoom about a fixed point and run on its own ease [rebuild]
David Le19772a1e9531
diff --git a/site/packages/effects-kit/src/anim.ts b/site/packages/effects-kit/src/anim.tsindex 9855d67d..b1ed072c 100644--- a/site/packages/effects-kit/src/anim.ts+++ b/site/packages/effects-kit/src/anim.ts@@ -30,7 +30,7 @@ import type { MotionPose, MotionPreset } from "./motion/types";import type { OverlayWords } from "./words";import { splitScale } from "./stretch";import { capStreak, ELEMENT_BLUR_MAX } from "./camera";-import { EASE_BEZIER, type EaseId } from "./ease";+import { EASE_BEZIER, easeAt, type EaseId } from "./ease";import { SLOT_PITCH, type ReelDirection, type ReelShape } from "./dive";export type OverlayAnimStyle =@@ -165,6 +165,11 @@ export interface OverlayEdge {/** Slot only, with an overshoot: the share of each character's move spent* settling back from the far side, 0..0.6. Absent = 0.3. */settle?: number;+ /** Dive only: the point the view zooms about, design px (1080 short side)+ * from the element's center at rest. It holds where it stands, as a zoom+ * about a fixed point does, instead of the deepest ink flying to the+ * frame's center. Absent = the deepest ink of the last letter. */+ anchor?: { x: number; y: number };}export type EdgeOrder = "reading" | "shuffle";@@ -630,6 +635,8 @@ export interface OverlayAnimState {* Renderers turn it into a view with `diveView`, which needs the drawn* geometry this evaluator never sees. */dive?: number;+ /** The diving edge, when it zooms about its own anchor. */+ diveEdge?: "in" | "out";/** Whether the typing bar is lit (typewriter with a caret); absent when the* element has none. */caret?: boolean;@@ -800,6 +807,10 @@ function edgeState(if (pose.reveal !== undefined) state.reveal = pose.reveal;if (pose.erode !== undefined) state.erode = pose.erode;if (pose.dive !== undefined) state.dive = pose.dive;+ // A dive's ease is the flight's own curve on the edge's own clock: an+ // ease-in on an exit holds back early and rushes into the ink at the end.+ if (pose.dive !== undefined && slot.ease) state.dive = exiting ? easeAt(slot.ease, 1 - clamped) : 1 - easeAt(slot.ease, clamped);+ if (pose.dive !== undefined && slot.anchor) state.diveEdge = exiting ? "out" : "in";if (pose.blur) state.blur = pose.blur;return state;}diff --git a/site/packages/effects-kit/src/dive.test.ts b/site/packages/effects-kit/src/dive.test.tsindex fd73bcf9..99a0a89a 100644--- a/site/packages/effects-kit/src/dive.test.ts+++ b/site/packages/effects-kit/src/dive.test.ts@@ -70,6 +70,42 @@ describe("dive", () => {expect(Y).toBeCloseTo(960, 6);});+ test("anchored, the dive zooms about its point where it stands until the ink around it covers the frame", () => {+ const anchored = { ...focus, at: { out: { x: -60, y: -200, r: 18 } } };+ const pose = { ...still, diveEdge: "out" as const };+ // The anchor's place on screen: the element's rest plus its offset.+ const ax = 540 - 60;+ const ay = 960 - 200;+ for (const e of [0.25, 0.5, 1]) {+ const v = diveView(e, anchored, pose, rest, frame);+ expect(v.fx).toBeCloseTo(ax, 6);+ expect(v.fy).toBeCloseTo(ay, 6);+ expect(v.tx).toBeCloseTo(ax, 6);+ expect(v.ty).toBeCloseTo(ay, 6);+ }+ const landed = diveView(1, anchored, pose, rest, frame);+ const far = Math.max(...[[0, 0], [1080, 0], [0, 1920], [1080, 1920]].map(([x, y]) => Math.hypot(x - ax, y - ay)));+ expect(landed.s * 18).toBeGreaterThanOrEqual(far);+ // The other edge, or none named, flies into the deepest ink as before.+ expect(diveView(1, anchored, still, rest, frame).tx).toBeCloseTo(540, 6);+ expect(diveView(1, anchored, { ...still, diveEdge: "in" as const }, rest, frame).tx).toBeCloseTo(540, 6);+ });++ test("an anchored edge names itself on the pose; an unanchored one doesn't", () => {+ const anchor = { x: -60, y: -200 };+ expect(evalOverlayAnim({ out: { style: "dive", seconds: 1, anchor } }, 2.5, 3).diveEdge).toBe("out");+ expect(evalOverlayAnim({ in: { style: "dive", seconds: 1, anchor } }, 0.5, 3).diveEdge).toBe("in");+ expect(evalOverlayAnim({ out: { style: "dive", seconds: 1 } }, 2.5, 3).diveEdge).toBeUndefined();+ });++ test("an ease shapes the flight: an ease-in holds back early and lands on time", () => {+ const own = { out: { style: "dive" as const, seconds: 1 } };+ const eased = { out: { style: "dive" as const, seconds: 1, ease: "power2.in" as const } };+ expect(evalOverlayAnim(eased, 2.3, 3).dive!).toBeLessThan(evalOverlayAnim(own, 2.3, 3).dive! - 0.05);+ expect(evalOverlayAnim(eased, 2.3, 3).dive).toBeCloseTo(0.09, 1);+ expect(evalOverlayAnim(eased, 3, 3).dive).toBeCloseTo(1, 6);+ });+test("an exit dives in across its ramp and an entrance pulls back out", () => {const out = { out: { style: "dive" as const, seconds: 1 } };expect(evalOverlayAnim(out, 2.001, 3).dive).toBeCloseTo(0, 2);diff --git a/site/packages/effects-kit/src/dive.ts b/site/packages/effects-kit/src/dive.tsindex a7948c94..54e9f7af 100644--- a/site/packages/effects-kit/src/dive.ts+++ b/site/packages/effects-kit/src/dive.ts@@ -10,14 +10,21 @@* draws under, and `slotReel` says what a rolling character shows.*/-/** The point a dive flies into, in design px (1080 short side) from the- * element's center, and the radius of ink around it. */-export interface DiveFocus {+/** A point of an element, in design px (1080 short side) from its center,+ * and the radius of ink around it. */+export interface DivePoint {x: number;y: number;r: number;}+/** The point a dive flies into — its deepest ink — and, for an edge that+ * names an `anchor`, that point and the ink around it: an anchored dive+ * zooms about its point where it stands instead. */+export interface DiveFocus extends DivePoint {+ at?: { in?: DivePoint; out?: DivePoint };+}+/** A dive's view in the painter's own coordinates — the element unposed, in* output px: a point p draws at s·(p − f) + t. */export interface DiveView {@@ -43,22 +50,27 @@ const clamp01 = (v: number) => (v < 0 ? 0 : v > 1 ? 1 : v);** The focus travels from where the pose puts it to the frame's center while* the scale grows geometrically, so the flight reads at a constant speed and- * lands with the ink disk around the focus reaching every corner. The view is+ * lands with the ink disk around the focus reaching every corner. On an edge+ * with an anchor (`pose.diveEdge`) the anchor is the focus and holds where+ * the pose puts it, the way a zoom about a fixed point does, and the disk+ * reaches the corner farthest from it. The view is* expressed in painter coordinates so it composes inside the pose: the posed* element draws P(V(p)), and P(V(f)) is the travelling focus.*/export function diveView(progress: number,focus: DiveFocus,- pose: { x: number; y: number; dx: number; dy: number; scale: number; rotation: number },+ pose: { x: number; y: number; dx: number; dy: number; scale: number; rotation: number; diveEdge?: "in" | "out" },rest: { x: number; y: number },frame: { width: number; height: number; scale: number }): DiveView {const { width: W, height: H, scale: k } = frame;const cx = rest.x * W;const cy = rest.y * H;- const fx = cx + focus.x * k;- const fy = cy + focus.y * k;+ const anchor = pose.diveEdge ? focus.at?.[pose.diveEdge] : undefined;+ const f = anchor ?? focus;+ const fx = cx + f.x * k;+ const fy = cy + f.y * k;const e = clamp01(progress);const sigma = pose.scale;if (e <= 0 || sigma <= 1e-6) return { s: 1, fx, fy, tx: fx, ty: fy };@@ -70,12 +82,15 @@ export function diveView(// Where the pose puts the focus, and how wide its ink is on screen.const px = ax + sigma * (cos * (fx - cx) - sin * (fy - cy));const py = ay + sigma * (sin * (fx - cx) + cos * (fy - cy));- const ink = Math.max(0.5, focus.r * k) * sigma;- const reach = (Math.hypot(W, H) / 2) * DIVE_COVER;+ const ink = Math.max(0.5, f.r * k) * sigma;+ const reach = anchor+ ? Math.hypot(Math.max(px, W - px), Math.max(py, H - py)) * DIVE_COVER+ : (Math.hypot(W, H) / 2) * DIVE_COVER;const most = Math.min(DIVE_MAX_SCALE, Math.max(1, reach / ink));const s = Math.pow(most, e);- const Tx = px + (W / 2 - px) * e;- const Ty = py + (H / 2 - py) * e;+ const travel = anchor ? 0 : e;+ const Tx = px + (W / 2 - px) * travel;+ const Ty = py + (H / 2 - py) * travel;// Back through the pose: the painter-space point the pose sends to T.const ux = (Tx - ax) / sigma;const uy = (Ty - ay) / sigma;diff --git a/site/packages/effects-kit/src/keys.ts b/site/packages/effects-kit/src/keys.tsindex b2848b9f..a158bf3c 100644--- a/site/packages/effects-kit/src/keys.ts+++ b/site/packages/effects-kit/src/keys.ts@@ -335,6 +335,8 @@ export interface OverlayFrameState extends OverlayPose {glyphLoop?: GlyphLoopPhase;/** How far the view has flown into the element's deepest ink (dive). */dive?: number;+ /** The diving edge, when it zooms about its own anchor. */+ diveEdge?: "in" | "out";/** The motion blur streak: how far the element's center travels on screen* while the shutter is open, design px, centered on this moment. Absent* when motion blur is off or the element is still. */@@ -422,6 +424,7 @@ function ownFrame(o: Posable, tLocal: number): OverlayFrameState {...(ev.glyphs ? { glyphs: ev.glyphs } : {}),...(ev.glyphLoop ? { glyphLoop: ev.glyphLoop } : {}),...(ev.dive !== undefined ? { dive: ev.dive } : {}),+ ...(ev.diveEdge ? { diveEdge: ev.diveEdge } : {}),...(pose.blur || ev.blur ? { blur: (pose.blur ?? 0) + (ev.blur ?? 0) } : {}),...(ev.caret !== undefined ? { caret: ev.caret } : {}),...(ev.brightness !== undefined ? { brightness: ev.brightness } : {}),diff --git a/site/packages/effects-kit/src/render.ts b/site/packages/effects-kit/src/render.tsindex daa8a78e..b36c35ed 100644--- a/site/packages/effects-kit/src/render.ts+++ b/site/packages/effects-kit/src/render.ts@@ -1277,12 +1277,12 @@ const DIVE_FOCI_MAX = 64;* within a couple of design px, small enough to measure in a frame. */const DIVE_RASTER = 480;-/** What decides where a dive lands: the look and the layout, never the- * timing or the motion. */+/** What decides where a dive lands: the look, the layout and the edges'+ * anchors, never the timing or the rest of the motion. */function diveKey(o: Overlay, aspect: number): string {const look: Record<string, unknown> = { ...o };for (const k of ["id", "start", "end", "anim", "kf", "lane", "opacity", "rotation", "mask"]) delete look[k];- return JSON.stringify([look, Math.round(aspect * 1000)]);+ return JSON.stringify([look, Math.round(aspect * 1000), o.anim?.in?.anchor ?? null, o.anim?.out?.anchor ?? null]);}/**@@ -1375,12 +1375,24 @@ async function findDiveFocus(o: Overlay, aspect: number, env: RenderEnv): Promis// A last letter with no ink of its own (a mark too thin to measure) falls// back to the deepest ink anywhere.if (best <= 0) scan(0, rw, 0, rh);+ // Distances run center to center; the antialiased edge sits up to a pixel+ // short of the last ink center, so that pixel is not counted.+ const radius = (d: number) => Math.max(0.5, d - 1) / q;+ // An anchor keeps its own point; the ink around it sets how far in it goes.+ const pointAt = (a: { x: number; y: number }) => {+ const x = Math.min(rw - 1, Math.max(0, Math.floor((a.x + b.cx - left) * q + pad)));+ const y = Math.min(rh - 1, Math.max(0, Math.floor((a.y + b.cy - top) * q + pad)));+ return { x: a.x, y: a.y, r: radius(depth[y * rw + x]) };+ };+ const anchorIn = o.anim?.in?.anchor;+ const anchorOut = o.anim?.out?.anchor;return {x: (bx + 0.5 - pad) / q + left - b.cx,y: (by + 0.5 - pad) / q + top - b.cy,- // Distances run center to center; the antialiased edge sits up to a- // pixel short of the last ink center, so that pixel is not counted.- r: Math.max(0.5, best - 1) / q,+ r: radius(best),+ ...(anchorIn || anchorOut+ ? { at: { ...(anchorIn ? { in: pointAt(anchorIn) } : {}), ...(anchorOut ? { out: pointAt(anchorOut) } : {}) } }+ : {}),};}diff --git a/site/src/cut/components/AiPanel.tools.ts b/site/src/cut/components/AiPanel.tools.tsindex 2a1ea061..e7881fe2 100644--- a/site/src/cut/components/AiPanel.tools.ts+++ b/site/src/cut/components/AiPanel.tools.ts@@ -326,7 +326,7 @@ export const AI_PANEL_TOOLS = [{name: "track_camera",description:- `Measure how the camera moves over a stretch of a video, inside its picture: each frame's zoom, shift and turn against the frame on \`from\`, so a punch-in, a push, a beat zoom pulse or a shake is keyed with set_clip_keyframes to the reference's own numbers. Give one shot's stretch (SOURCE seconds; a cut inside it breaks the read). \`path\` lists every frame: t, scale (1.08 is 8% closer), dx/dy (how far the picture's centre moved, fractions of the frame, + is right and down), rotation (degrees clockwise) and residual (what the move leaves unexplained, 0..255 a pixel; null on a frame too blurred to read). A frame whose picture moves in two layers — a cutout held still over a background that shakes, or pulsing over a still one — also has \`second\`, the other layer's pose and the \`share\` of the picture it holds: build it as two tracks, the footage keyed with one pose and its cutout (set_removal) above it keyed with the other. The keys copy it straight across: a clip key at the same moment with scale, rotation, and x = 0.5 + dx, y = 0.5 + dy — relative to the first frame, so start the clip's own pose there. \`moves\` lists each move of each number with from/to, start/end, the ease that fits it (${EASE_IDS.join(", ")}) and \`error\`; a pulse is a move out and a move back. \`still\` true means one picture holds under the whole move — residual under 6 throughout: the reference froze that frame and moved it, so freeze_frame the shot's clip at \`from\` and key the moves on the freeze. A live shot with a moving camera leaves a higher residual: its numbers are still the move. Up to ${CAMERA_FRAMES_MAX} frames a call; when \`truncated\`, continue from \`coveredTo\`.`,+ `Measure how the camera moves over a stretch of a video, inside its picture: each frame's zoom, shift and turn against the frame on \`from\`, so a punch-in, a push, a beat zoom pulse or a shake is keyed with set_clip_keyframes to the reference's own numbers. Give one shot's stretch (SOURCE seconds; a cut inside it breaks the read). \`path\` lists every frame: t, scale (1.08 is 8% closer), dx/dy (how far the picture's centre moved, fractions of the frame, + is right and down), rotation (degrees clockwise) and residual (what the move leaves unexplained, 0..255 a pixel; null on a frame too blurred to read). A frame whose picture moves in two layers — a cutout held still over a background that shakes, or pulsing over a still one — also has \`second\`, the other layer's pose and the \`share\` of the picture it holds: build it as two tracks, the footage keyed with one pose and its cutout (set_removal) above it keyed with the other. The keys copy it straight across: a clip key at the same moment with scale, rotation, and x = 0.5 + dx, y = 0.5 + dy — relative to the first frame, so start the clip's own pose there. \`moves\` lists each move of each number with from/to, start/end, the ease that fits it (${EASE_IDS.join(", ")}) and \`error\`; a pulse is a move out and a move back. A zoom about a point off the centre — the picture growing away from one spot — adds \`anchor\`, that frame point (frame fractions): a zoom through a title's letter is a dive exit with out_anchor there. \`still\` true means one picture holds under the whole move — residual under 6 throughout: the reference froze that frame and moved it, so freeze_frame the shot's clip at \`from\` and key the moves on the freeze. A live shot with a moving camera leaves a higher residual: its numbers are still the move. Up to ${CAMERA_FRAMES_MAX} frames a call; when \`truncated\`, continue from \`coveredTo\`.`,inputSchema: obj({asset_id: str("Project asset id (video)"),diff --git a/site/src/cut/components/AnimationTiles.tools.ts b/site/src/cut/components/AnimationTiles.tools.tsindex 86c182aa..a28bd21e 100644--- a/site/src/cut/components/AnimationTiles.tools.ts+++ b/site/src/cut/components/AnimationTiles.tools.ts@@ -80,7 +80,7 @@ export const OVERLAY_ANIMATION_TOOLS = [{name: "set_overlay_animation",description:- `Animate an overlay element (title, shape, or sticker): preset In/Out ramps, a Loop that runs its whole duration, and a Move that says what the element does WHILE it holds. Omitted slots keep their setting; pass "none" to clear one. In/Out styles: ${OVERLAY_ANIM_STYLE_IDS.join(", ")} — slide names are the motion direction; ${TEXT_ONLY_ANIM_STYLE_IDS.join(", ")} animate titles only; ${GLYPH_ANIM_STYLE_IDS.join(", ")} move a title's letters one at a time, and move any other kind as one piece; in_stagger/out_stagger set how much of their ramp the hand-off from the first letter to the last takes, so a 1.6s drop at stagger 0.8 lands a letter every ~0.27s, each moving for ~0.3s. in_order/out_order "shuffle" deals the letters their turns in a scattered order instead of left to right — letters landing at random; in_sequence names the exact order when it is read off a reference. in_ease sets the curve the move travels on, in_fade false keeps letters solid while they fall, and in_blur starts each letter out of focus (design px) to sharpen as it lands. in_distance/out_distance set how far the motion travels from rest, design px. A slot entrance's reel takes its shape off the reference too: in_reel (the way it turns), in_reel_pitch (how far apart its characters sit), in_reel_band (how far it shows above and below the line), in_overshoot and in_settle (a landing that runs past its slot and settles back), and in_fade false keeps every character on it solid. A reference's letters coming in are read in one call, never by eye: track_element match letters with the line's words over the stretch they come in returns \`entrance\`, every one of these settings as it goes in (in_style, in_seconds, in_stagger, in_sequence, in_sequence_at — each letter's own turn — in_distance, in_ease, in_fade — false, a share of the move, or true — and in_blur; for a slot reel its in_reel settings, for letters typed in place a typewriter's in_seconds) and the source second the ramp starts — one letter's move is in_seconds × (1 − in_stagger). A per-letter ramp on an element with update_overlay motion_blur streaks each letter along its own move, the smear a fast fall wears — a different look from a soft start. ${edgeNotes()} ${DIVE_ANIM_STYLE_IDS.join(", ")} as the exit is the zoom-through-a-letter transition: the shot after the element shows once the ink has filled the frame, so it needs no freeze frames, image stills or per-letter keyframes. Loop styles: ${OVERLAY_LOOP_STYLE_IDS.join(", ")} — ${GLYPH_LOOP_STYLE_IDS.join(", ")} carry a title's letters on their own delays, and carry any other kind as one piece. A move is a slot like the others and never touches the element's keyframe track; set_overlay_keyframes is the precise way to move an element and the default reach, so name a move when it is exactly what you mean — the two compose together. Word effects — words_style, titles only — play the line word by word, timed against the cut's transcript when there is one and spread across the element's own span when there is not: an emphasis travels along a line that is fully up, and a build assembles the line as it is spoken. It is the slot for "make each word pop as I say it" and for "have the words appear one by one". A typewriter entrance on a title can carry a caret: a thin bar at the end of the typed text, solid while it types, then blinking every ${CARET_BLINK_SECONDS}s — the typed comment or search box of a call-to-action card. A hit plays one motion once at a moment inside the element (hit_at seconds from its start), between its entrance and exit: ${hitNotes()}. Use press for a button being pressed, a tap on a UI element, a like or post button; pair it with a click from stock_search kind "sound" placed at the same moment when the tap should be heard. A font cycle flickers a title through typefaces — a new face font_cycle_rate times a second, from font_cycle_at for font_cycle_seconds — and then the title settles back into its own face: the typeface-shuffle beat of a teaser title. Give each face a scale (and tracking) so it fills about the room the title's own face does; a wide tracked title cycling through condensed or hand-drawn faces wants tracking 0 and a scale above 1 on them. A face keeps the title's own line breaks: where its scale makes a line wider than the room the title wraps in, that face is set smaller to fit rather than broken onto another line. Time the faces to the music with font_cycle_beats — a new face on each beat of that clip's detect_beats grid, font_cycle_beat_step 2 for every other beat or 0.5 for half beats — or to a reference's own face changes with font_cycle_switches, the timeline seconds you read them at; either sets every hold and repeats the faces in order to fill the run. A face's own hold times one face by hand; faces repeat in the list to revisit a typeface.`,+ `Animate an overlay element (title, shape, or sticker): preset In/Out ramps, a Loop that runs its whole duration, and a Move that says what the element does WHILE it holds. Omitted slots keep their setting; pass "none" to clear one. In/Out styles: ${OVERLAY_ANIM_STYLE_IDS.join(", ")} — slide names are the motion direction; ${TEXT_ONLY_ANIM_STYLE_IDS.join(", ")} animate titles only; ${GLYPH_ANIM_STYLE_IDS.join(", ")} move a title's letters one at a time, and move any other kind as one piece; in_stagger/out_stagger set how much of their ramp the hand-off from the first letter to the last takes, so a 1.6s drop at stagger 0.8 lands a letter every ~0.27s, each moving for ~0.3s. in_order/out_order "shuffle" deals the letters their turns in a scattered order instead of left to right — letters landing at random; in_sequence names the exact order when it is read off a reference. in_ease sets the curve the move travels on, in_fade false keeps letters solid while they fall, and in_blur starts each letter out of focus (design px) to sharpen as it lands. in_distance/out_distance set how far the motion travels from rest, design px. A slot entrance's reel takes its shape off the reference too: in_reel (the way it turns), in_reel_pitch (how far apart its characters sit), in_reel_band (how far it shows above and below the line), in_overshoot and in_settle (a landing that runs past its slot and settles back), and in_fade false keeps every character on it solid. A reference's letters coming in are read in one call, never by eye: track_element match letters with the line's words over the stretch they come in returns \`entrance\`, every one of these settings as it goes in (in_style, in_seconds, in_stagger, in_sequence, in_sequence_at — each letter's own turn — in_distance, in_ease, in_fade — false, a share of the move, or true — and in_blur; for a slot reel its in_reel settings, for letters typed in place a typewriter's in_seconds) and the source second the ramp starts — one letter's move is in_seconds × (1 − in_stagger). A per-letter ramp on an element with update_overlay motion_blur streaks each letter along its own move, the smear a fast fall wears — a different look from a soft start. ${edgeNotes()} ${DIVE_ANIM_STYLE_IDS.join(", ")} as the exit is the zoom-through-a-letter transition: the shot after the element shows once the ink has filled the frame, so it needs no freeze frames, image stills or per-letter keyframes. It flies the last letter's deepest ink to the frame's centre; a reference that zooms about a fixed point instead — the letter grows where it stands, its ink spreading out from one spot — takes out_anchor, the point track_camera reads over the zoom. On a dive out_ease is the flight's pace on its own clock — power2.in holds back and rushes into the ink at the end — and the ink fills the frame as the exit ends, so end it where the reference's frame fills. Loop styles: ${OVERLAY_LOOP_STYLE_IDS.join(", ")} — ${GLYPH_LOOP_STYLE_IDS.join(", ")} carry a title's letters on their own delays, and carry any other kind as one piece. A move is a slot like the others and never touches the element's keyframe track; set_overlay_keyframes is the precise way to move an element and the default reach, so name a move when it is exactly what you mean — the two compose together. Word effects — words_style, titles only — play the line word by word, timed against the cut's transcript when there is one and spread across the element's own span when there is not: an emphasis travels along a line that is fully up, and a build assembles the line as it is spoken. It is the slot for "make each word pop as I say it" and for "have the words appear one by one". A typewriter entrance on a title can carry a caret: a thin bar at the end of the typed text, solid while it types, then blinking every ${CARET_BLINK_SECONDS}s — the typed comment or search box of a call-to-action card. A hit plays one motion once at a moment inside the element (hit_at seconds from its start), between its entrance and exit: ${hitNotes()}. Use press for a button being pressed, a tap on a UI element, a like or post button; pair it with a click from stock_search kind "sound" placed at the same moment when the tap should be heard. A font cycle flickers a title through typefaces — a new face font_cycle_rate times a second, from font_cycle_at for font_cycle_seconds — and then the title settles back into its own face: the typeface-shuffle beat of a teaser title. Give each face a scale (and tracking) so it fills about the room the title's own face does; a wide tracked title cycling through condensed or hand-drawn faces wants tracking 0 and a scale above 1 on them. A face keeps the title's own line breaks: where its scale makes a line wider than the room the title wraps in, that face is set smaller to fit rather than broken onto another line. Time the faces to the music with font_cycle_beats — a new face on each beat of that clip's detect_beats grid, font_cycle_beat_step 2 for every other beat or 0.5 for half beats — or to a reference's own face changes with font_cycle_switches, the timeline seconds you read them at; either sets every hold and repeats the faces in order to fill the run. A face's own hold times one face by hand; faces repeat in the list to revisit a typeface.`,inputSchema: obj({id: str("Overlay element id"),move: {@@ -154,6 +154,20 @@ export const OVERLAY_ANIMATION_TOOLS = [in_reel_band: num(`Slot entrance: how far the band the reel shows through reaches above and below the line's middle, design px; 0 restores the style's own (the line itself)`),in_overshoot: num("Slot entrance: how far, design px, each character's reel runs past its slot before it settles back — a landing bounce; 0 clears it"),in_settle: num(`Slot entrance with an overshoot: the share of each character's move spent settling back, 0.05..${EDGE_SETTLE_MAX} (default 0.3)`),+ in_anchor: {+ anyOf: [+ obj({ x: num("Frame x, 0..1"), y: num("Frame y, 0..1") }, ["x", "y"]),+ { type: "string", enum: ["none"] },+ ],+ description: `Dive entrance: the frame point the zoom holds still as it pulls back out, frame fractions — track_camera's anchor; \"none\" restores the deepest ink flying from the frame's centre`,+ },+ out_anchor: {+ anyOf: [+ obj({ x: num("Frame x, 0..1"), y: num("Frame y, 0..1") }, ["x", "y"]),+ { type: "string", enum: ["none"] },+ ],+ description: `Dive exit: the frame point the zoom holds still as it flies in, frame fractions — track_camera's anchor over the reference's zoom; \"none\" restores the deepest ink of the last letter flying to the frame's centre`,+ },loop_style: {type: "string",enum: [...OVERLAY_LOOP_STYLE_IDS, "none"],diff --git a/site/src/cut/components/Inspector.tsx b/site/src/cut/components/Inspector.tsxindex 9a636019..264d2efb 100644--- a/site/src/cut/components/Inspector.tsx+++ b/site/src/cut/components/Inspector.tsx@@ -3707,6 +3707,10 @@ function AnimationToolbar({ overlay: o, slot, peers }: { overlay: Overlay; slot:const edgeOvershoot = (edge?.overshoot ?? 0) * typeSize;const edgeSettle = edge?.settle ?? 0.3;const reelItems: Record<ReelDirection, string> = { up: t("reelUp"), down: t("reelDown") };+ // A dive: the point it zooms about, held where it stands, design px from+ // the element's center; off flies the deepest ink to the frame's center.+ const dives = !!edgeMotion(edge)?.animate.dive;+ const edgeAnchor = edge?.anchor;return bar(<><Row label={t("duration")}>@@ -3921,6 +3925,44 @@ function AnimationToolbar({ overlay: o, slot, peers }: { overlay: Overlay; slot:/></Row>)}+ {dives && (+ <Row label={t("anchor")}>+ <Switch+ checked={!!edgeAnchor}+ onCheckedChange={(v) => {+ writeEdge({ anchor: v ? { x: 0, y: 0 } : undefined });+ ck.end();+ }}+ />+ </Row>+ )}+ {dives &&+ edgeAnchor &&+ (+ [+ ["anchorX", "x"],+ ["anchorY", "y"],+ ] as const+ ).map(([label, axis]) => (+ <Row key={axis} label={t(label)}>+ <ValueSlider+ label={t(label)}+ sliderClassName="data-horizontal:w-24"+ valueClassName="w-9 text-muted-foreground"+ value={edgeAnchor[axis]}+ min={-EDGE_DISTANCE_MAX}+ max={EDGE_DISTANCE_MAX}+ step={1}+ format={(v) => String(Math.round(v))}+ parse={(t) => Number(t)}+ onDraft={(v) => writeEdge({ anchor: { ...edgeAnchor, [axis]: v } })}+ onCommit={(v) => {+ writeEdge({ anchor: { ...edgeAnchor, [axis]: v } });+ ck.end();+ }}+ />+ </Row>+ ))}{edge && (<Row label={t("blur")}><ValueSliderdiff --git a/site/src/cut/components/inspectorToolFields.test.ts b/site/src/cut/components/inspectorToolFields.test.tsindex 40d2dfac..7119d4c9 100644--- a/site/src/cut/components/inspectorToolFields.test.ts+++ b/site/src/cut/components/inspectorToolFields.test.ts@@ -122,6 +122,8 @@ const PANEL_NAME: Record<string, string> = {in_reel_band: "edgeReelBand",in_overshoot: "edgeOvershoot",in_settle: "edgeSettle",+ in_anchor: "edgeAnchor",+ out_anchor: "edgeAnchor",in_sequence_at: "edgeSequence",out_sequence_at: "edgeSequence",out_blur: "edgeBlur",diff --git a/site/src/cut/lib/aiTools.ts b/site/src/cut/lib/aiTools.tsindex 9eeb7c10..d054f936 100644--- a/site/src/cut/lib/aiTools.ts+++ b/site/src/cut/lib/aiTools.ts@@ -69,6 +69,7 @@ import {EDGE_ORDERS,EDGE_REEL_EM_MAX,EDGE_SETTLE_MAX,+ DIVE_ANIM_STYLE_IDS,REEL_DIRECTIONS,type ReelDirection,EASE_IDS,@@ -259,6 +260,7 @@ import { COMPARE_MODES, MAX_COMPARE, SWEEP_TARGET } from "./frameDiff";import { compareMoments, sweepSource } from "./sourceCompare";import { findPicture, sampleColors, scanCuts, sourcePictureAt, trackCamera, trackElement, trackLetters, type FrameBox } from "./measure/sourceMeasure";import { FULL_FRAME, isFullFrame } from "./measure/picture";+import { zoomAnchor } from "./measure/camera";import { DETECT_CHANGES_MAX, DETECT_CUTS_MAX, DETECT_CUTS_SPAN_MAX, SAMPLE_COLOR_MAX, SAMPLE_COLORS_K_MAX, TRACK_FRAMES_MAX, CAMERA_FRAMES_MAX, TRACK_MATCHES, TRACK_PATH_MAX, TRACK_TOLERANCE_DEFAULT } from "./measure/limits";import { renderStageFrame, storeStageStill } from "./stageFrame";import { createRasterCanvas, decodeRasterImageUrl, rasterCanvasToDataUrl } from "./raster";@@ -1252,6 +1254,31 @@ const toolRuns: Record<BrowserToolName, ToolRun> = {delete rest.settle;anim[slot] = settle <= 0 ? rest : { ...rest, settle: clamp(settle, 0.05, EDGE_SETTLE_MAX) };}+ // A dive's anchor comes as the frame point the zoom holds still, as+ // track_camera reads it, and is kept as an offset from the element's+ // rest so it moves with the element; "none" hands back the deepest ink.+ const anchor = input[`${slot}_anchor`];+ if (anchor !== undefined && anim[slot]) {+ const rest = { ...anim[slot]! };+ delete rest.anchor;+ if (anchor === "none" || anchor === null) {+ anim[slot] = rest;+ } else {+ const a = (anchor ?? {}) as Record<string, unknown>;+ if (!isNum(a.x) || !isNum(a.y))+ throw new ToolError(`${slot}_anchor is {x, y}, the frame point the zoom holds still as frame fractions, or "none".`);+ if (!DIVE_ANIM_STYLE_IDS.includes(rest.style))+ throw new ToolError(`${slot}_anchor sets where a dive zooms; this edge is ${rest.style}.`);+ const fr = frameOf(s.aspect);+ anim[slot] = {+ ...rest,+ anchor: {+ x: Math.round((clamp(a.x, -1, 2) - o.x) * fr.w * 10) / 10,+ y: Math.round((clamp(a.y, -1, 2) - o.y) * fr.h * 10) / 10,+ },+ };+ }+ }};edge("in", "in_style", "in_seconds");edge("out", "out_style", "out_seconds");@@ -2119,6 +2146,7 @@ const toolRuns: Record<BrowserToolName, ToolRun> = {});if (run.path.length < 2) throw new ToolError(`Only ${run.path.length} frame between ${from}s and ${to}s — give a longer stretch.`);const r3 = (v: number) => Math.round(v * 1000) / 1000;+ const anchor = zoomAnchor(run.path);return {...(run.fps > 0 ? { fps: Math.round(run.fps * 100) / 100 } : {}),framesRead: run.path.length,@@ -2153,6 +2181,13 @@ const toolRuns: Record<BrowserToolName, ToolRun> = {})),coveredTo: roundT(run.coveredTo),truncated: run.truncated,+ ...(anchor+ ? {+ anchor: { x: r3(anchor.x), y: r3(anchor.y) },+ anchorNote:+ "The zoom holds this frame point still: everything grows away from it. A zoom into a title's letter until its ink fills the frame is a dive exit with out_anchor this point (set_overlay_animation); a punch-in on footage keys the clip about it.",+ }+ : {}),...pictureReport(area),source: sourceRef(asset),};diff --git a/site/src/cut/lib/measure/camera.test.ts b/site/src/cut/lib/measure/camera.test.tsindex 176ca3b9..f2337806 100644--- a/site/src/cut/lib/measure/camera.test.ts+++ b/site/src/cut/lib/measure/camera.test.ts@@ -1,5 +1,5 @@import { describe, expect, test } from "bun:test";-import { cameraPath, holdsStill, type Gray } from "./camera";+import { cameraPath, holdsStill, zoomAnchor, type CameraPose, type Gray } from "./camera";// A picture that goes on past the frame: a sum of waves, so any zoom, shift or// turn of it can be drawn exactly.@@ -99,3 +99,27 @@ describe("holdsStill", () => {expect(holdsStill(frames, cameraPath(frames))).toBeNull();});});++describe("the point a zoom holds still", () => {+ const pose = (scale: number, dx: number, dy: number): CameraPose => ({ scale, dx, dy, rotation: 0, residual: 1 });+ /** A zoom about (ax, ay): the picture's centre moves to a + s·(½ − a). */+ const about = (ax: number, ay: number, scales: number[]) =>+ scales.map((s) => pose(s, (ax - 0.5) * (1 - s), (ay - 0.5) * (1 - s)));++ test("a punch-in about a point off the centre reads that point", () => {+ const a = zoomAnchor(about(0.7, 0.48, [1, 1.1, 1.3, 1.7, 2.4, 3.8]))!;+ expect(a.x).toBeCloseTo(0.7, 3);+ expect(a.y).toBeCloseTo(0.48, 3);+ // A pull-back holds its point the same way.+ const b = zoomAnchor(about(0.25, 0.6, [1, 0.9, 0.75, 0.6]))!;+ expect(b.x).toBeCloseTo(0.25, 3);+ expect(b.y).toBeCloseTo(0.6, 3);+ });++ test("a zoom too small to tell by, or one that slides as it goes, holds no point", () => {+ expect(zoomAnchor(about(0.7, 0.48, [1, 1.02, 1.05]))).toBeNull();+ // A push that also pans: the centre runs off sideways while the scale barely moves.+ const slide = [1, 1.1, 1.2, 1.3, 1.4].map((s, i) => pose(s, i * 0.2 * (i % 2 ? 1 : -1), 0));+ expect(zoomAnchor(slide)).toBeNull();+ });+});diff --git a/site/src/cut/lib/measure/camera.ts b/site/src/cut/lib/measure/camera.tsindex f8e046fb..c12b54f2 100644--- a/site/src/cut/lib/measure/camera.ts+++ b/site/src/cut/lib/measure/camera.ts@@ -464,3 +464,37 @@ export function holdsStill(frames: Gray[], path: CameraPose[]): boolean | null {diffs.sort((x, y) => x - y);return diffs[Math.floor(diffs.length / 2)] < STILL_RESIDUAL;}++/** The least a zoom must change the scale by before the point it holds still+ * is told: a 5% punch-in moves the picture too little to place it. */+const ANCHOR_ZOOM = 0.2;+/** How far, frame fractions, the moves may stray from a zoom about one point+ * on average: past it the camera slides as well and holds no point. */+const ANCHOR_FIT = 0.02;++/**+ * The frame point a zoom holds still, in frame fractions, or null when the+ * path zooms too little or slides too. A zoom about `a` carries the+ * picture's centre to a + s·(½ − a), so each frame's shift is (a − ½)·(1 − s)+ * and `a` falls out of a least-squares fit over every frame read.+ */+export function zoomAnchor(path: CameraPose[]): { x: number; y: number } | null {+ const read = path.filter((p) => Number.isFinite(p.residual));+ const scales = read.map((p) => p.scale);+ if (read.length < 3 || Math.max(...scales) / Math.min(...scales) < 1 + ANCHOR_ZOOM) return null;+ let kk = 0;+ let kx = 0;+ let ky = 0;+ for (const p of read) {+ const k = 1 - p.scale;+ kk += k * k;+ kx += k * p.dx;+ ky += k * p.dy;+ }+ const ox = kx / kk;+ const oy = ky / kk;+ let miss = 0;+ for (const p of read) miss += Math.hypot(p.dx - ox * (1 - p.scale), p.dy - oy * (1 - p.scale));+ if (miss / read.length > ANCHOR_FIT) return null;+ return { x: 0.5 + ox, y: 0.5 + oy };+}diff --git a/site/src/cut/server/ai/catalog.ts b/site/src/cut/server/ai/catalog.tsindex ac26fe74..974c0c9d 100644--- a/site/src/cut/server/ai/catalog.ts+++ b/site/src/cut/server/ai/catalog.ts@@ -363,7 +363,7 @@ Someone points at a video — a file they imported, a link you brought in, a cli**Rebuild the text as elements.** One title per card, a stretch of cards per add_title call — the words exactly as they read, size in px at 1080 wide, and x/y where suggest_font sets it on that card — a title is set from the middle of its line, so the centre of its ink box (track_element, match ink, the text's colour) sits off it by the face's own offset. A run of lines timed one after another is add_text_sequence in one call. Match the case the reference uses, and its colour from sample_color. The face comes off the frame: suggest_font with the card's moment, a region close around its words and the words themselves ranks every face Donkey has and hands back the font, weight, size, tracking and x/y to set. Call it on each card: cards in one face share its weight, size and tracking, but each sits its own way in its space, so its x/y comes from its own read, never from a neighbour's place. A title that cycles through typefaces is one call per face it shows. A no_match verdict means the reference uses a face Donkey does not bundle: say so, and set the closest one it named. Without a suggestion, size comes off the ink: capitals stand about 0.7 of the size tall, so size is the ink height in px at 1080 wide ÷ 0.7 (h × 1920 ÷ 0.7 on 9:16). A cycle whose faces change on the music's beats times itself with set_overlay_animation font_cycle_beats on the soundtrack clip after detect_beats; one whose changes follow the reference's own rhythm takes font_cycle_switches, the timeline seconds detect_cuts reads each change at.-**Then the motion.** set_overlay_keyframes gives each card its own pose track — where it sits, at what scale, at what second. track_element over a move hands you the keys: each move's from/to, start/end and ease, with scale as w over the resting w. set_overlay_animation composes on top for the entrance, the exit, a loop, and what a line does while it holds; 0.3-0.6s reads as an entrance, and a per-letter style is what makes a card read as typed. A line whose letters land one at a time is a per-letter entrance read off detect_cuts' \`changes\`, and it is read in one call, never by eye from sheets: track_element with match letters, the line's \`text\`, a seed close around the landed line, \`from\` before the first letter shows and \`to\` just after the last one lands. Its \`entrance\` is the set_overlay_animation call — in_style, in_seconds, in_stagger, in_sequence, in_sequence_at, in_distance, in_ease, in_fade, in_blur — and \`starts\`, the source second the title's ramp begins; pass them as they come. Digits spinning into place like a slot machine and letters popping in where they stand are read by the same call: it hands back a slot entrance with the reel's turn, spacing, band and landing bounce (a fast spin seems to turn the wrong way between frames, so take the turn from the call, never from a sheet), or a typewriter. Its \`crosses\` says whether the letters pass in front of or behind other ink on their way in — a smaller line above them — and so which of the two takes the lower row. motion_blur on the element (update_overlay) is for letters that streak along their fall; one that comes in soft is in_blur. add_shape, a stretch per call, is the rest of the graphics: bars, cards, rules, a block of color behind a line.+**Then the motion.** set_overlay_keyframes gives each card its own pose track — where it sits, at what scale, at what second. track_element over a move hands you the keys: each move's from/to, start/end and ease, with scale as w over the resting w. set_overlay_animation composes on top for the entrance, the exit, a loop, and what a line does while it holds; 0.3-0.6s reads as an entrance, and a per-letter style is what makes a card read as typed. A line whose letters land one at a time is a per-letter entrance read off detect_cuts' \`changes\`, and it is read in one call, never by eye from sheets: track_element with match letters, the line's \`text\`, a seed close around the landed line, \`from\` before the first letter shows and \`to\` just after the last one lands. Its \`entrance\` is the set_overlay_animation call — in_style, in_seconds, in_stagger, in_sequence, in_sequence_at, in_distance, in_ease, in_fade, in_blur — and \`starts\`, the source second the title's ramp begins; pass them as they come. Digits spinning into place like a slot machine and letters popping in where they stand are read by the same call: it hands back a slot entrance with the reel's turn, spacing, band and landing bounce (a fast spin seems to turn the wrong way between frames, so take the turn from the call, never from a sheet), or a typewriter. A zoom through a letter until its ink fills the frame is a dive exit: run track_camera over the zoom first, and when it hands back an \`anchor\` — the reference growing the letter where it stands rather than flying it to the centre — set out_anchor to it, end the dive where the reference's frame fills and match its pace with out_ease against compare_to_source. Its \`crosses\` says whether the letters pass in front of or behind other ink on their way in — a smaller line above them — and so which of the two takes the lower row. motion_blur on the element (update_overlay) is for letters that streak along their fall; one that comes in soft is in_blur. add_shape, a stretch per call, is the rest of the graphics: bars, cards, rules, a block of color behind a line.**Look at what you made.** A build that reads right from your own notes is still a guess until you measure it. compare_to_source does: mode sweep scores every frame of the cut against the source — 0 is the same picture, under ${SWEEP_TARGET} reads as one — and names the worst stretches with a grid of where each differs; mode moments shows those peaks beside the source's frames. Sweep as you build, since an error in the first card is in every card after it: look at the worst stretches, fix what differs, sweep again, and stop when the median is under ${SWEEP_TARGET} and no stretch stands out. A \`shift\` means the right thing lands early or late by that much. Read each picture for colour, the words and their face, where a thing sits, its size, and how far along a move is; a title the same colour as the block behind it reads as correct in the document and shows up here, and a sweep's \`titles\` names each title whose letters are another colour than the source's. A block keeps its footage's difference, so judge a shot by the cells over what you built. That is the only difference no edit removes: a glow, a tint on type, a soft edge or a flash is built like everything else (a glow is a bright shadow at shadow_y 0 on the title or shape, keyed in by the opacity of a copy that wears it), so a stretch over what you built stands out until you build it.diff --git a/site/src/i18n/messages/.source-lock.json b/site/src/i18n/messages/.source-lock.jsonindex 18bad015..8d9d4a60 100644--- a/site/src/i18n/messages/.source-lock.json+++ b/site/src/i18n/messages/.source-lock.json@@ -1731,6 +1731,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",@@ -4767,6 +4770,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",@@ -7803,6 +7809,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",@@ -10839,6 +10848,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",@@ -13875,6 +13887,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",@@ -16911,6 +16926,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",@@ -19947,6 +19965,9 @@"anim.reelBand": "41dfc0a6c927","anim.overshoot": "3754f768f9f2","anim.settle": "3ebe66ce7cf6",+ "anim.anchor": "107f7513d163",+ "anim.anchorX": "207372b0edad",+ "anim.anchorY": "977d3d5bc057","fontCycle.removeFace": "5e8edcbf9347","fontCycle.weight": "69c0b81540bd","fontCycle.italic": "1616e2e5405e",diff --git a/site/src/i18n/messages/de/inspector.json b/site/src/i18n/messages/de/inspector.jsonindex 0606db98..b8b00206 100644--- a/site/src/i18n/messages/de/inspector.json+++ b/site/src/i18n/messages/de/inspector.json@@ -533,7 +533,10 @@"reelPitch": "Abstand","reelBand": "Fenster","overshoot": "Überschwingen",- "settle": "Einpendeln"+ "settle": "Einpendeln",+ "anchor": "Punkt fixieren",+ "anchorX": "Punkt X",+ "anchorY": "Punkt Y"},"fontCycle": {"removeFace": "Schriftschnitt entfernen",diff --git a/site/src/i18n/messages/en/inspector.json b/site/src/i18n/messages/en/inspector.jsonindex 5f4df6c5..d8bacb1b 100644--- a/site/src/i18n/messages/en/inspector.json+++ b/site/src/i18n/messages/en/inspector.json@@ -533,7 +533,10 @@"reelPitch": "Spacing","reelBand": "Window","overshoot": "Overshoot",- "settle": "Settle"+ "settle": "Settle",+ "anchor": "Hold a point",+ "anchorX": "Point X",+ "anchorY": "Point Y"},"fontCycle": {"removeFace": "Remove face",diff --git a/site/src/i18n/messages/es/inspector.json b/site/src/i18n/messages/es/inspector.jsonindex c9ca95e7..b1832e29 100644--- a/site/src/i18n/messages/es/inspector.json+++ b/site/src/i18n/messages/es/inspector.json@@ -533,7 +533,10 @@"reelPitch": "Espaciado","reelBand": "Ventana","overshoot": "Exceso",- "settle": "Estabilización"+ "settle": "Estabilización",+ "anchor": "Fijar un punto",+ "anchorX": "Punto X",+ "anchorY": "Punto Y"},"fontCycle": {"removeFace": "Eliminar fuente",diff --git a/site/src/i18n/messages/fr/inspector.json b/site/src/i18n/messages/fr/inspector.jsonindex 195ff5ed..d194fdb5 100644--- a/site/src/i18n/messages/fr/inspector.json+++ b/site/src/i18n/messages/fr/inspector.json@@ -533,7 +533,10 @@"reelPitch": "Espacement","reelBand": "Fenêtre","overshoot": "Dépassement",- "settle": "Stabilisation"+ "settle": "Stabilisation",+ "anchor": "Fixer un point",+ "anchorX": "Point X",+ "anchorY": "Point Y"},"fontCycle": {"removeFace": "Supprimer la fonte",diff --git a/site/src/i18n/messages/ja/inspector.json b/site/src/i18n/messages/ja/inspector.jsonindex afa4bbb6..16851a7d 100644--- a/site/src/i18n/messages/ja/inspector.json+++ b/site/src/i18n/messages/ja/inspector.json@@ -533,7 +533,10 @@"reelPitch": "間隔","reelBand": "ウィンドウ","overshoot": "オーバーシュート",- "settle": "収束"+ "settle": "収束",+ "anchor": "ポイント固定",+ "anchorX": "ポイントX",+ "anchorY": "ポイントY"},"fontCycle": {"removeFace": "書体を削除",diff --git a/site/src/i18n/messages/ko/inspector.json b/site/src/i18n/messages/ko/inspector.jsonindex 5c59e2bd..28692197 100644--- a/site/src/i18n/messages/ko/inspector.json+++ b/site/src/i18n/messages/ko/inspector.json@@ -533,7 +533,10 @@"reelPitch": "간격","reelBand": "윈도우","overshoot": "오버슈트",- "settle": "안정화"+ "settle": "안정화",+ "anchor": "포인트 고정",+ "anchorX": "포인트 X",+ "anchorY": "포인트 Y"},"fontCycle": {"removeFace": "서체 제거",diff --git a/site/src/i18n/messages/pt-BR/inspector.json b/site/src/i18n/messages/pt-BR/inspector.jsonindex c03c5a26..17b10339 100644--- a/site/src/i18n/messages/pt-BR/inspector.json+++ b/site/src/i18n/messages/pt-BR/inspector.json@@ -533,7 +533,10 @@"reelPitch": "Espaçamento","reelBand": "Janela","overshoot": "Ultrapassagem",- "settle": "Estabilização"+ "settle": "Estabilização",+ "anchor": "Fixar um ponto",+ "anchorX": "Ponto X",+ "anchorY": "Ponto Y"},"fontCycle": {"removeFace": "Remover fonte",diff --git a/site/src/i18n/messages/zh-CN/inspector.json b/site/src/i18n/messages/zh-CN/inspector.jsonindex e20c1eb6..3cd752d4 100644--- a/site/src/i18n/messages/zh-CN/inspector.json+++ b/site/src/i18n/messages/zh-CN/inspector.json@@ -533,7 +533,10 @@"reelPitch": "间距","reelBand": "窗口","overshoot": "过冲",- "settle": "回稳"+ "settle": "回稳",+ "anchor": "固定点",+ "anchorX": "点 X",+ "anchorY": "点 Y"},"fontCycle": {"removeFace": "移除字体",