Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(editor): grab handles and a ratio row in Edit clip

EtienneLescot5aed33207de2
diff --git a/src/components/ai-edition/Modals.tsx b/src/components/ai-edition/Modals.tsx
index 7bdac0532..32de7312b 100644
--- a/src/components/ai-edition/Modals.tsx
+++ b/src/components/ai-edition/Modals.tsx
@@ -10,14 +10,9 @@ import type { CropRegion } from "@/components/video-editor/types";
import { useScopedT } from "@/contexts/I18nContext";
import type { AxcutClip } from "@/lib/ai-edition/schema";
import { formatSeconds } from "@/lib/ai-edition/timeline/format";
-import {
- cropDraftFromRegion,
- cropDraftToPct,
- displayPct,
- previewBoxStyle,
- stepPct,
-} from "./cropDraft";
+import { cropDraftFromRegion, cropDraftToPct, previewBoxStyle } from "./cropDraft";
import styles from "./NewEditorShell.module.css";
+import { ChoiceRow } from "./RightPanes";
import type { VideoSource } from "./VirtualPreview";
interface BaseModalProps {
@@ -568,46 +563,8 @@ const MIN_PCT = 4;
const clampPct = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v));
type ResizeEdges = { left?: boolean; right?: boolean; top?: boolean; bottom?: boolean };
-
-function CropField({
- label,
- value,
- onChange,
- step,
-}: {
- label: string;
- value: number;
- onChange: (n: number) => void;
- step: number;
-}) {
- // While the field is focused the user's raw text is the value: rendering
- // `displayPct(value)` on a controlled input would rewrite "25." to "25" on
- // every keystroke, making decimals untypable. The buffer seeds from the
- // UNROUNDED stored value so native stepper arrows step from the exact
- // state, not the rounded display; two-decimal formatting happens on blur.
- const [draft, setDraft] = useState<string | null>(null);
- return (
- <div style={{ display: "flex", flexDirection: "column", gap: 4, minWidth: 0 }}>
- <label style={{ font: "600 12px/1.3 var(--font-body)", color: "var(--fg-2)" }}>{label}</label>
- <input
- type="number"
- value={draft ?? displayPct(value)}
- min={0}
- max={100}
- step={step}
- onFocus={() => setDraft(String(value))}
- onBlur={() => setDraft(null)}
- onChange={(e) => {
- setDraft(e.target.value);
- const parsed = Number(e.target.value);
- if (e.target.value !== "" && Number.isFinite(parsed)) onChange(parsed);
- }}
- className={styles.control}
- style={{ width: "100%", fontVariantNumeric: "tabular-nums" }}
- />
- </div>
- );
-}
+const CROP_CORNERS = ["nw", "ne", "sw", "se"] as const;
+const CROP_EDGES = ["n", "s", "w", "e"] as const;
export interface AssetMeta {
label: string;
@@ -662,7 +619,6 @@ export function EditClipModal({
// fraction-of-frame width/height. 16/9 is just a placeholder until the
// crop <video>'s real metadata loads (see the effect below).
const [videoAspectRatio, setVideoAspectRatio] = useState(16 / 9);
- const [frameSizePx, setFrameSizePx] = useState({ width: 0, height: 0 });
const cropFrameRef = useRef<HTMLDivElement | null>(null);
const cropVideoRef = useRef<HTMLVideoElement | null>(null);
@@ -706,7 +662,6 @@ export function EditClipModal({
// below refills them (immediately, when this clip's metadata is already
// loaded).
setVideoAspectRatio(16 / 9);
- setFrameSizePx({ width: 0, height: 0 });
const v = cropVideoRef.current;
if (!v) return;
const seek = () => {
@@ -714,7 +669,6 @@ export function EditClipModal({
if (Number.isFinite(clip.sourceStartSec)) v.currentTime = clip.sourceStartSec;
if (v.videoWidth > 0 && v.videoHeight > 0) {
setVideoAspectRatio(v.videoWidth / v.videoHeight);
- setFrameSizePx({ width: v.videoWidth, height: v.videoHeight });
}
};
if (v.readyState >= 1) seek();
@@ -793,53 +747,11 @@ export function EditClipModal({
};
// Fraction-space width/height ratio the crop is locked to while a preset is
- // active (null for "Free"). Numeric fields and resize handles both honor it so
- // the user can move/scale the crop but never change its aspect ratio.
+ // active (null for "Free"). The resize handles honor it, so the user can
+ // move/scale the crop but never change its aspect ratio.
const activePresetRatio = CROP_RATIOS.find((c) => c.value === cropRatio)?.ratio ?? null;
const lockedFractionRatio = activePresetRatio ? activePresetRatio / videoAspectRatio : null;
- // Ratio-aware numeric field setters. With a preset active, changing one side
- // derives the other (and clamps both to the frame); "Free" edits each axis
- // independently. All keep the rectangle inside the frame.
- const applyCropX = (v: number) => {
- setCropTouched(true);
- setCropXPct(clampPct(v, 0, 100 - cropWPct));
- };
- const applyCropY = (v: number) => {
- setCropTouched(true);
- setCropYPct(clampPct(v, 0, 100 - cropHPct));
- };
- const applyCropW = (v: number) => {
- setCropTouched(true);
- if (lockedFractionRatio) {
- let w = clampPct(v, MIN_PCT, 100 - cropXPct);
- let h = w / lockedFractionRatio;
- if (h > 100 - cropYPct) {
- h = 100 - cropYPct;
- w = h * lockedFractionRatio;
- }
- setCropWPct(w);
- setCropHPct(h);
- } else {
- setCropWPct(clampPct(v, MIN_PCT, 100 - cropXPct));
- }
- };
- const applyCropH = (v: number) => {
- setCropTouched(true);
- if (lockedFractionRatio) {
- let h = clampPct(v, MIN_PCT, 100 - cropYPct);
- let w = h * lockedFractionRatio;
- if (w > 100 - cropXPct) {
- w = 100 - cropXPct;
- h = w / lockedFractionRatio;
- }
- setCropWPct(w);
- setCropHPct(h);
- } else {
- setCropHPct(clampPct(v, MIN_PCT, 100 - cropYPct));
- }
- };
-
// Drag the whole crop region (keeps size, moves x/y).
const startCropMove = (e: ReactPointerEvent) => {
e.preventDefault();
@@ -938,16 +850,6 @@ export function EditClipModal({
window.addEventListener("pointerup", up);
};
- const cropHandleStyle = (pos: React.CSSProperties): React.CSSProperties => ({
- position: "absolute",
- width: 10,
- height: 10,
- borderRadius: 3,
- background: "var(--fg)",
- border: "1px solid var(--overlay-dark)",
- ...pos,
- });
-
const handleReset = () => {
setDraftStart(clip.sourceStartSec);
setDraftEnd(clip.sourceEndSec ?? clip.sourceStartSec);
@@ -1005,55 +907,46 @@ export function EditClipModal({
top: `${cropYPct}%`,
width: `${cropWPct}%`,
height: `${cropHPct}%`,
- border: "1.5px solid var(--fg)",
+ // White on any footage, like the brackets: `--fg` went dark in the light theme.
+ border: "1.5px solid rgb(255 255 255 / 0.9)",
borderRadius: 4,
boxShadow: "0 0 0 9999px var(--overlay-dark)",
cursor: "move",
+ touchAction: "none",
+ // Bigger brackets for a bigger picture than the webcam thumbnail's.
+ ...({ "--bracket": "22px", "--bracket-w": "4px" } as React.CSSProperties),
}}
onPointerDown={startCropMove}
>
- <div
- onPointerDown={startCropResize({ left: true, top: true })}
- style={cropHandleStyle({ left: -5, top: -5, cursor: "nwse-resize" })}
- />
- <div
- onPointerDown={startCropResize({ right: true, top: true })}
- style={cropHandleStyle({ right: -5, top: -5, cursor: "nesw-resize" })}
- />
- <div
- onPointerDown={startCropResize({ left: true, bottom: true })}
- style={cropHandleStyle({ left: -5, bottom: -5, cursor: "nesw-resize" })}
- />
- <div
- onPointerDown={startCropResize({ right: true, bottom: true })}
- style={cropHandleStyle({ right: -5, bottom: -5, cursor: "nwse-resize" })}
- />
- <div
- onPointerDown={startCropResize({ top: true })}
- style={cropHandleStyle({ left: "50%", top: -5, marginLeft: -5, cursor: "ns-resize" })}
- />
- <div
- onPointerDown={startCropResize({ bottom: true })}
- style={cropHandleStyle({
- left: "50%",
- bottom: -5,
- marginLeft: -5,
- cursor: "ns-resize",
- })}
- />
- <div
- onPointerDown={startCropResize({ left: true })}
- style={cropHandleStyle({ top: "50%", left: -5, marginTop: -5, cursor: "ew-resize" })}
- />
- <div
- onPointerDown={startCropResize({ right: true })}
- style={cropHandleStyle({
- top: "50%",
- right: -5,
- marginTop: -5,
- cursor: "ew-resize",
- })}
- />
+ {/* The webcam frame's brackets on the corners, and a bar on each side for the
+ one-axis resize a free crop needs. Both in grab areas a pointer finds without
+ aiming. */}
+ {CROP_CORNERS.map((corner) => (
+ <span
+ key={corner}
+ className={styles.framingHandle}
+ data-corner={corner}
+ onPointerDown={startCropResize({
+ top: corner.startsWith("n"),
+ bottom: corner.startsWith("s"),
+ left: corner.endsWith("w"),
+ right: corner.endsWith("e"),
+ })}
+ />
+ ))}
+ {CROP_EDGES.map((edge) => (
+ <span
+ key={edge}
+ className={styles.cropEdge}
+ data-edge={edge}
+ onPointerDown={startCropResize({
+ top: edge === "n",
+ bottom: edge === "s",
+ left: edge === "w",
+ right: edge === "e",
+ })}
+ />
+ ))}
</div>
</div>
@@ -1193,66 +1086,19 @@ export function EditClipModal({
borderTop: "1px solid var(--border-soft)",
}}
>
- <div
- style={{
- display: "grid",
- gridTemplateColumns: "repeat(4, 1fr) 1.2fr auto",
- gap: 10,
- alignItems: "end",
- }}
- >
- <CropField
- label={t("cropDialog.fieldX")}
- value={cropXPct}
- step={stepPct(frameSizePx.width)}
- onChange={applyCropX}
- />
- <CropField
- label={t("cropDialog.fieldY")}
- value={cropYPct}
- step={stepPct(frameSizePx.height)}
- onChange={applyCropY}
- />
- <CropField
- label={t("cropDialog.fieldW")}
- value={cropWPct}
- step={stepPct(frameSizePx.width)}
- onChange={applyCropW}
- />
- <CropField
- label={t("cropDialog.fieldH")}
- value={cropHPct}
- step={stepPct(frameSizePx.height)}
- onChange={applyCropH}
- />
- <div style={{ display: "flex", flexDirection: "column", gap: 4, minWidth: 110 }}>
- <label style={{ font: "600 12px/1.3 var(--font-body)", color: "var(--fg-2)" }}>
- {ts("crop.ratio")}
- </label>
- <select
+ <div style={{ display: "flex", alignItems: "center", gap: 12 }}>
+ <span className={styles.fieldLabel}>{ts("crop.ratio")}</span>
+ <div style={{ flex: 1, minWidth: 0 }}>
+ <ChoiceRow<string>
+ label={ts("crop.ratio")}
+ options={CROP_RATIOS.map((r) => ({
+ value: r.value,
+ label: r.value === "free" ? ts("crop.free") : r.label,
+ }))}
value={cropRatio}
- onChange={(e) => handleCropRatioChange(e.target.value)}
- className={styles.control}
- style={{ width: "100%" }}
- >
- {CROP_RATIOS.map((r) => (
- <option key={r.value} value={r.value}>
- {r.value === "free" ? ts("crop.free") : r.label}
- </option>
- ))}
- </select>
+ onChange={handleCropRatioChange}
+ />
</div>
- <span
- style={{
- font: "500 12px/1 var(--font-body)",
- fontVariantNumeric: "tabular-nums",
- color: "var(--muted)",
- alignSelf: "center",
- whiteSpace: "nowrap",
- }}
- >
- {displayPct(cropWPct)}% × {displayPct(cropHPct)}%
- </span>
</div>
</div>
diff --git a/src/components/ai-edition/NewEditorShell.module.css b/src/components/ai-edition/NewEditorShell.module.css
index b79f87c02..80f0d43de 100644
--- a/src/components/ai-edition/NewEditorShell.module.css
+++ b/src/components/ai-edition/NewEditorShell.module.css
@@ -1206,24 +1206,52 @@ textarea.control {
height: 28px;
touch-action: none;
}
+/* `--bracket` and `--bracket-w` size the bracket to its picture: a large preview sets them bigger. */
.framingHandle::before {
content: "";
position: absolute;
- width: 14px;
- height: 14px;
+ width: var(--bracket, 14px);
+ height: var(--bracket, 14px);
border: 0 solid #fff;
filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 0.7));
transition: width var(--motion-fast) var(--ease), height var(--motion-fast) var(--ease);
}
-.framingHandle:hover::before { width: 17px; height: 17px; }
+.framingHandle:hover::before {
+ width: calc(var(--bracket, 14px) + 3px);
+ height: calc(var(--bracket, 14px) + 3px);
+}
.framingHandle[data-corner="nw"] { top: -8px; left: -8px; cursor: nwse-resize; }
.framingHandle[data-corner="ne"] { top: -8px; right: -8px; cursor: nesw-resize; }
.framingHandle[data-corner="sw"] { bottom: -8px; left: -8px; cursor: nesw-resize; }
.framingHandle[data-corner="se"] { bottom: -8px; right: -8px; cursor: nwse-resize; }
-.framingHandle[data-corner="nw"]::before { top: 8px; left: 8px; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 5px; }
-.framingHandle[data-corner="ne"]::before { top: 8px; right: 8px; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 5px; }
-.framingHandle[data-corner="sw"]::before { bottom: 8px; left: 8px; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 5px; }
-.framingHandle[data-corner="se"]::before { bottom: 8px; right: 8px; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 5px; }
+.framingHandle[data-corner="nw"]::before { top: 8px; left: 8px; border-width: var(--bracket-w, 3.5px) 0 0 var(--bracket-w, 3.5px); border-top-left-radius: 5px; }
+.framingHandle[data-corner="ne"]::before { top: 8px; right: 8px; border-width: var(--bracket-w, 3.5px) var(--bracket-w, 3.5px) 0 0; border-top-right-radius: 5px; }
+.framingHandle[data-corner="sw"]::before { bottom: 8px; left: 8px; border-width: 0 0 var(--bracket-w, 3.5px) var(--bracket-w, 3.5px); border-bottom-left-radius: 5px; }
+.framingHandle[data-corner="se"]::before { bottom: 8px; right: 8px; border-width: 0 var(--bracket-w, 3.5px) var(--bracket-w, 3.5px) 0; border-bottom-right-radius: 5px; }
+/* A crop's sides: a short thick bar on the edge, in the brackets' white, and a grab area around it. */
+.cropEdge {
+ position: absolute;
+ touch-action: none;
+}
+.cropEdge::before {
+ content: "";
+ position: absolute;
+ border-radius: 2px;
+ background: #fff;
+ filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 0.7));
+}
+.cropEdge[data-edge="n"],
+.cropEdge[data-edge="s"] { left: 50%; width: 56px; height: 28px; margin-left: -28px; cursor: ns-resize; }
+.cropEdge[data-edge="n"] { top: -12px; }
+.cropEdge[data-edge="s"] { bottom: -12px; }
+.cropEdge[data-edge="w"],
+.cropEdge[data-edge="e"] { top: 50%; width: 28px; height: 56px; margin-top: -28px; cursor: ew-resize; }
+.cropEdge[data-edge="w"] { left: -12px; }
+.cropEdge[data-edge="e"] { right: -12px; }
+.cropEdge[data-edge="n"]::before { top: 12px; left: 12px; right: 12px; height: var(--bracket-w, 3.5px); }
+.cropEdge[data-edge="s"]::before { bottom: 12px; left: 12px; right: 12px; height: var(--bracket-w, 3.5px); }
+.cropEdge[data-edge="w"]::before { left: 12px; top: 12px; bottom: 12px; width: var(--bracket-w, 3.5px); }
+.cropEdge[data-edge="e"]::before { right: 12px; top: 12px; bottom: 12px; width: var(--bracket-w, 3.5px); }
/* The zoom, on the picture it zooms. Its own dark ground, like any label over a photo. */
.framingZoom {
position: absolute;
diff --git a/src/components/ai-edition/cropDraft.test.ts b/src/components/ai-edition/cropDraft.test.ts
index 90542f346..740b879ce 100644
--- a/src/components/ai-edition/cropDraft.test.ts
+++ b/src/components/ai-edition/cropDraft.test.ts
@@ -1,22 +1,7 @@
import { describe, expect, it } from "vitest";
-import {
- cropDraftFromRegion,
- displayPct,
- PREVIEW_MAX_HEIGHT_PX,
- previewBoxStyle,
- stepPct,
-} from "./cropDraft";
+import { cropDraftFromRegion, PREVIEW_MAX_HEIGHT_PX, previewBoxStyle } from "./cropDraft";
describe("crop draft helpers", () => {
- it("steps one source pixel, not 1%, when the frame width is known", () => {
- expect(stepPct(1920)).toBe(100 / 1920);
- expect(stepPct(1920)).not.toBe(1);
- });
-
- it("falls back to a fine percent step when the frame size is unknown", () => {
- expect(stepPct(0)).toBe(0.1);
- });
-
it("gives the preview box the video's own aspect ratio", () => {
// The overlay and every drag are measured against the box while the
// video letterboxes inside it — any box/video aspect mismatch shifts
@@ -42,13 +27,4 @@ describe("crop draft helpers", () => {
expect(draft.x).toBe(1 / 3);
expect(draft.x).not.toBe(33);
});
-
- it("formats field display to two decimals without touching the stored value", () => {
- expect(displayPct((1 / 3) * 100)).toBe(33.33);
- expect(displayPct(100)).toBe(100);
- expect(displayPct(0)).toBe(0);
- // One source pixel on a 1920-wide frame is ~0.052% — two display
- // decimals stay within a fifth of a pixel of the stored fraction.
- expect(Math.abs(displayPct(33.333333) - 33.333333)).toBeLessThan(stepPct(1920) / 5);
- });
});
diff --git a/src/components/ai-edition/cropDraft.ts b/src/components/ai-edition/cropDraft.ts
index ff09b314f..337e0243e 100644
--- a/src/components/ai-edition/cropDraft.ts
+++ b/src/components/ai-edition/cropDraft.ts
@@ -1,6 +1,5 @@
// Pure crop-draft helpers for Edit Clip. The modal stores the rectangle as
-// frame fractions (0–1), not rounded integer percents, so a 1px nudge is
-// representable once the source size is known.
+// frame fractions (0–1), not rounded integer percents.
export interface CropDraft {
x: number;
@@ -22,23 +21,6 @@ export function cropDraftToPct(draft: CropDraft): { x: number; y: number; w: num
};
}
-/** Percent step for a numeric field: one source pixel when the frame size is known. */
-export function stepPct(frameSizePx: number): number {
- return frameSizePx > 0 ? 100 / frameSizePx : 0.1;
-}
-
-/**
- * What the numeric fields DISPLAY. The draft itself stays unrounded (that is
- * the point of pixel-precision crops), but a drag leaves values like
- * 33.33333333333333 behind, and eight digits of float noise in a percent
- * field reads as a bug. Two decimals is 0.01% — under a fifth of a pixel on
- * a 1920-wide source — so the display can never be visibly off from the
- * stored value. Typing writes the exact typed number; this only formats.
- */
-export function displayPct(value: number): number {
- return Math.round(value * 100) / 100;
-}
-
export const PREVIEW_MAX_HEIGHT_PX = 360;
/**
diff --git a/src/i18n/locales/ar/editor.json b/src/i18n/locales/ar/editor.json
index 34a360212..516d37047 100644
--- a/src/i18n/locales/ar/editor.json
+++ b/src/i18n/locales/ar/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "تقسيم المقطع المستهدف عند نقطة الإفلات وإدراج المصدر بينهما."
},
"cropDialog": {
- "subtitle": "اسحب المنطقة أو مقابضها لضبط منطقة القص",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "W",
- "fieldH": "H"
+ "subtitle": "اسحب المنطقة أو مقابضها لضبط منطقة القص"
},
"transport": {
"playbackControls": "عناصر التحكم في التشغيل",
diff --git a/src/i18n/locales/cs/editor.json b/src/i18n/locales/cs/editor.json
index aafba61a7..3ea2fd4f8 100644
--- a/src/i18n/locales/cs/editor.json
+++ b/src/i18n/locales/cs/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Rozdělit cílový klip v místě přetažení a vložit zdroj mezi ně."
},
"cropDialog": {
- "subtitle": "Přetáhněte oblast nebo její úchyty pro úpravu plochy oříznutí",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "Š",
- "fieldH": "V"
+ "subtitle": "Přetáhněte oblast nebo její úchyty pro úpravu plochy oříznutí"
},
"transport": {
"playbackControls": "Ovládání přehrávání",
diff --git a/src/i18n/locales/de/editor.json b/src/i18n/locales/de/editor.json
index bb46a01ae..a738f5c44 100644
--- a/src/i18n/locales/de/editor.json
+++ b/src/i18n/locales/de/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Den Ziel-Clip am Ablagepunkt teilen und die Quelle dazwischen einfügen."
},
"cropDialog": {
- "subtitle": "Zieh den Bereich oder seine Griffe, um den Ausschnitt anzupassen",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "B",
- "fieldH": "H"
+ "subtitle": "Zieh den Bereich oder seine Griffe, um den Ausschnitt anzupassen"
},
"transport": {
"playbackControls": "Wiedergabesteuerung",
diff --git a/src/i18n/locales/en/editor.json b/src/i18n/locales/en/editor.json
index ce3ac5656..fb53f2315 100644
--- a/src/i18n/locales/en/editor.json
+++ b/src/i18n/locales/en/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Split the target clip at the drop point and insert the source in between."
},
"cropDialog": {
- "subtitle": "Drag the region or its handles to adjust the crop area",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "W",
- "fieldH": "H"
+ "subtitle": "Drag the region or its handles to adjust the crop area"
},
"transport": {
"playbackControls": "Playback controls",
diff --git a/src/i18n/locales/es/editor.json b/src/i18n/locales/es/editor.json
index 5e879bbad..d5fdb14ac 100644
--- a/src/i18n/locales/es/editor.json
+++ b/src/i18n/locales/es/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Divide el clip de destino en el punto de soltar e inserta la fuente entre medias."
},
"cropDialog": {
- "subtitle": "Arrastra la región o sus controles para ajustar el área de recorte",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "A",
- "fieldH": "Al"
+ "subtitle": "Arrastra la región o sus controles para ajustar el área de recorte"
},
"transport": {
"playbackControls": "Controles de reproducción",
diff --git a/src/i18n/locales/fr/editor.json b/src/i18n/locales/fr/editor.json
index 1f2712aa5..fd4710530 100644
--- a/src/i18n/locales/fr/editor.json
+++ b/src/i18n/locales/fr/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Divise le clip cible au point de dépose et insère la source entre les deux."
},
"cropDialog": {
- "subtitle": "Faites glisser la zone ou ses poignées pour ajuster la zone de recadrage",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "L",
- "fieldH": "H"
+ "subtitle": "Faites glisser la zone ou ses poignées pour ajuster la zone de recadrage"
},
"transport": {
"playbackControls": "Contrôles de lecture",
diff --git a/src/i18n/locales/it/editor.json b/src/i18n/locales/it/editor.json
index 015109455..9effc0507 100644
--- a/src/i18n/locales/it/editor.json
+++ b/src/i18n/locales/it/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Divide la clip di destinazione nel punto di rilascio e inserisce la sorgente in mezzo."
},
"cropDialog": {
- "subtitle": "Trascina l'area o le sue maniglie per regolare l'area di ritaglio",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "L",
- "fieldH": "A"
+ "subtitle": "Trascina l'area o le sue maniglie per regolare l'area di ritaglio"
},
"transport": {
"playbackControls": "Controlli di riproduzione",
diff --git a/src/i18n/locales/ja-JP/editor.json b/src/i18n/locales/ja-JP/editor.json
index c3634b60b..d2e5d79ea 100644
--- a/src/i18n/locales/ja-JP/editor.json
+++ b/src/i18n/locales/ja-JP/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "ドロップ位置で対象クリップを分割し、その間にソースを挿入します。"
},
"cropDialog": {
- "subtitle": "領域またはハンドルをドラッグして切り抜き範囲を調整します",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "幅",
- "fieldH": "高さ"
+ "subtitle": "領域またはハンドルをドラッグして切り抜き範囲を調整します"
},
"transport": {
"playbackControls": "再生コントロール",
diff --git a/src/i18n/locales/ko-KR/editor.json b/src/i18n/locales/ko-KR/editor.json
index 16b735d90..2f4cbcf9a 100644
--- a/src/i18n/locales/ko-KR/editor.json
+++ b/src/i18n/locales/ko-KR/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "드롭 지점에서 대상 클립을 분할하고 그 사이에 소스를 삽입합니다."
},
"cropDialog": {
- "subtitle": "영역이나 핸들을 드래그하여 자르기 영역을 조정하세요",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "너비",
- "fieldH": "높이"
+ "subtitle": "영역이나 핸들을 드래그하여 자르기 영역을 조정하세요"
},
"transport": {
"playbackControls": "재생 컨트롤",
diff --git a/src/i18n/locales/pt-BR/editor.json b/src/i18n/locales/pt-BR/editor.json
index 1a321f28f..059b4e351 100644
--- a/src/i18n/locales/pt-BR/editor.json
+++ b/src/i18n/locales/pt-BR/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Divide o clipe de destino no ponto de soltura e insere a fonte no meio."
},
"cropDialog": {
- "subtitle": "Arraste a região ou suas alças para ajustar a área de corte",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "L",
- "fieldH": "A"
+ "subtitle": "Arraste a região ou suas alças para ajustar a área de corte"
},
"transport": {
"playbackControls": "Controles de reprodução",
diff --git a/src/i18n/locales/ru/editor.json b/src/i18n/locales/ru/editor.json
index 2f0af8eb8..577b1dfd1 100644
--- a/src/i18n/locales/ru/editor.json
+++ b/src/i18n/locales/ru/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Разделяет целевой клип в точке сброса и вставляет источник между частями."
},
"cropDialog": {
- "subtitle": "Перетащите область или её маркеры, чтобы настроить область обрезки",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "Ш",
- "fieldH": "В"
+ "subtitle": "Перетащите область или её маркеры, чтобы настроить область обрезки"
},
"transport": {
"playbackControls": "Элементы управления воспроизведением",
diff --git a/src/i18n/locales/tr/editor.json b/src/i18n/locales/tr/editor.json
index eb0ebaa3a..6bff20516 100644
--- a/src/i18n/locales/tr/editor.json
+++ b/src/i18n/locales/tr/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Hedef klibi bırakma noktasında böler ve kaynağı arasına ekler."
},
"cropDialog": {
- "subtitle": "Kırpma alanını ayarlamak için bölgeyi veya tutamaçlarını sürükleyin",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "G",
- "fieldH": "Y"
+ "subtitle": "Kırpma alanını ayarlamak için bölgeyi veya tutamaçlarını sürükleyin"
},
"transport": {
"playbackControls": "Oynatma denetimleri",
diff --git a/src/i18n/locales/vi/editor.json b/src/i18n/locales/vi/editor.json
index 749c59e6d..dd37d0dff 100644
--- a/src/i18n/locales/vi/editor.json
+++ b/src/i18n/locales/vi/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "Cắt clip mục tiêu tại điểm thả và chèn nguồn vào giữa."
},
"cropDialog": {
- "subtitle": "Kéo vùng hoặc các điểm điều khiển để điều chỉnh vùng cắt",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "R",
- "fieldH": "C"
+ "subtitle": "Kéo vùng hoặc các điểm điều khiển để điều chỉnh vùng cắt"
},
"transport": {
"playbackControls": "Điều khiển phát lại",
diff --git a/src/i18n/locales/zh-CN/editor.json b/src/i18n/locales/zh-CN/editor.json
index a92314738..c845e97c2 100644
--- a/src/i18n/locales/zh-CN/editor.json
+++ b/src/i18n/locales/zh-CN/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "在放置点拆分目标片段,并将源插入其中。"
},
"cropDialog": {
- "subtitle": "拖动区域或其控点以调整裁剪区域",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "宽",
- "fieldH": "高"
+ "subtitle": "拖动区域或其控点以调整裁剪区域"
},
"transport": {
"playbackControls": "播放控件",
diff --git a/src/i18n/locales/zh-TW/editor.json b/src/i18n/locales/zh-TW/editor.json
index f6f1b78ff..3d7d7eb25 100644
--- a/src/i18n/locales/zh-TW/editor.json
+++ b/src/i18n/locales/zh-TW/editor.json
@@ -338,11 +338,7 @@
"splitDesc": "在放置點分割目標片段,並將來源插入其中。"
},
"cropDialog": {
- "subtitle": "拖曳區域或其控點以調整裁切區域",
- "fieldX": "X",
- "fieldY": "Y",
- "fieldW": "寬",
- "fieldH": "高"
+ "subtitle": "拖曳區域或其控點以調整裁切區域"
},
"transport": {
"playbackControls": "播放控制項",