@pixerate/editor-react 0.154.0 → 0.156.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation-editor/ShotCameraMoves.d.cts +14 -0
- package/dist/animation-editor/ShotCameraMoves.d.ts +14 -0
- package/dist/animation-editor/ShotInspector.d.cts +2 -2
- package/dist/animation-editor/ShotInspector.d.ts +2 -2
- package/dist/animation-editor/index.cjs +516 -387
- package/dist/animation-editor/index.d.cts +1 -0
- package/dist/animation-editor/index.d.ts +1 -0
- package/dist/animation-editor/index.js +238 -112
- package/dist/video-editor/ClipCameraMoves.d.cts +15 -0
- package/dist/video-editor/ClipCameraMoves.d.ts +15 -0
- package/dist/video-editor/ClipInspector.d.cts +2 -2
- package/dist/video-editor/ClipInspector.d.ts +2 -2
- package/dist/video-editor/index.cjs +3131 -2977
- package/dist/video-editor/index.d.cts +1 -0
- package/dist/video-editor/index.d.ts +1 -0
- package/dist/video-editor/index.js +392 -241
- package/package.json +3 -3
|
@@ -7,6 +7,7 @@ export * from './CommandList.cjs';
|
|
|
7
7
|
export * from './CommandInspector.cjs';
|
|
8
8
|
export * from './EasePicker.cjs';
|
|
9
9
|
export * from './ShotInspector.cjs';
|
|
10
|
+
export * from './ShotCameraMoves.cjs';
|
|
10
11
|
export * from './SceneSettings.cjs';
|
|
11
12
|
export * from './AnimationEffectsPanel.cjs';
|
|
12
13
|
export * from './AnimationRecordPanel.cjs';
|
|
@@ -7,6 +7,7 @@ export * from './CommandList.js';
|
|
|
7
7
|
export * from './CommandInspector.js';
|
|
8
8
|
export * from './EasePicker.js';
|
|
9
9
|
export * from './ShotInspector.js';
|
|
10
|
+
export * from './ShotCameraMoves.js';
|
|
10
11
|
export * from './SceneSettings.js';
|
|
11
12
|
export * from './AnimationEffectsPanel.js';
|
|
12
13
|
export * from './AnimationRecordPanel.js';
|
|
@@ -74,7 +74,7 @@ function useAnimationEffectsTools(registry, controller, options = {}) {
|
|
|
74
74
|
|
|
75
75
|
// src/animation-editor/AnimationStage.tsx
|
|
76
76
|
import { useMemo as useMemo2, useRef as useRef2 } from "react";
|
|
77
|
-
import { highlightMotionSvg, motionNodeAtElement } from "@pixerate/editor/animation-editor";
|
|
77
|
+
import { highlightMotionSvg, motionCameraTransform, motionCameraViewAt, motionNodeAtElement } from "@pixerate/editor/animation-editor";
|
|
78
78
|
import { jsx } from "react/jsx-runtime";
|
|
79
79
|
function AnimationStage({ controller, values, onionSkin, motionPaths, onPick, highlight, recordMode = "move", className = "" }) {
|
|
80
80
|
const state = useAnimationEditorState(controller);
|
|
@@ -88,13 +88,17 @@ function AnimationStage({ controller, values, onionSkin, motionPaths, onPick, hi
|
|
|
88
88
|
controller.toSvg(time, { pretty: false, idPrefix: "ae-", values, onionSkin, motionPaths }).replace(/<svg ([^>]*?)width="[^"]*" height="[^"]*"/, '<svg $1width="100%" height="100%"'),
|
|
89
89
|
highlight ?? []
|
|
90
90
|
),
|
|
91
|
-
[controller, scene, time, samples, values, onionSkin, motionPaths, key]
|
|
91
|
+
[controller, scene, time, samples, values, onionSkin, motionPaths, key, state.effectsProvider]
|
|
92
92
|
);
|
|
93
|
+
const stageRef = useRef2(null);
|
|
94
|
+
const view = useMemo2(() => motionCameraViewAt(controller.viewScene(), time, state.effectsProvider), [controller, scene, time, samples, state.effectsProvider]);
|
|
95
|
+
const transform = motionCameraTransform(view, stageRef.current?.clientWidth || scene.artwork.width);
|
|
93
96
|
return /* @__PURE__ */ jsx(
|
|
94
97
|
"div",
|
|
95
98
|
{
|
|
99
|
+
ref: stageRef,
|
|
96
100
|
className: `relative overflow-hidden ${recording ? "cursor-grab touch-none" : onPick ? "cursor-crosshair" : ""} ${className}`,
|
|
97
|
-
style: { aspectRatio: `${scene.artwork.width} / ${scene.artwork.height}
|
|
101
|
+
style: { aspectRatio: `${scene.artwork.width} / ${scene.artwork.height}`, ...transform ? { transform } : {} },
|
|
98
102
|
"data-animation-stage": "",
|
|
99
103
|
"data-recording": recording ? "" : void 0,
|
|
100
104
|
role: "img",
|
|
@@ -190,7 +194,7 @@ function ShotTimeline({ controller, className = "" }) {
|
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
// src/animation-editor/AnimationEditor.tsx
|
|
193
|
-
import { useMemo as useMemo7, useRef as useRef4, useState as
|
|
197
|
+
import { useMemo as useMemo7, useRef as useRef4, useState as useState8 } from "react";
|
|
194
198
|
import { indexMotionNodes as indexMotionNodes2, motionIssueLine } from "@pixerate/editor/animation-editor";
|
|
195
199
|
|
|
196
200
|
// src/animation-editor/AnimationRecordPanel.tsx
|
|
@@ -916,15 +920,134 @@ function SceneSettings({ controller, className = "" }) {
|
|
|
916
920
|
}
|
|
917
921
|
|
|
918
922
|
// src/animation-editor/ShotInspector.tsx
|
|
919
|
-
import { useMemo as useMemo5, useState as
|
|
920
|
-
import { describeMotionElements as describeMotionElements2, freshShotId, motionCueChoices, motionCueFromKey, motionCueKey } from "@pixerate/editor/animation-editor";
|
|
921
|
-
|
|
923
|
+
import { useMemo as useMemo5, useState as useState6 } from "react";
|
|
924
|
+
import { describeMotionElements as describeMotionElements2, freshShotId, motionCameraFramed, motionCueChoices, motionCueFromKey, motionCueKey } from "@pixerate/editor/animation-editor";
|
|
925
|
+
|
|
926
|
+
// src/animation-editor/ShotCameraMoves.tsx
|
|
927
|
+
import React7, { useEffect as useEffect3, useState as useState5 } from "react";
|
|
928
|
+
import { motionShotCameraMove } from "@pixerate/editor/animation-editor";
|
|
929
|
+
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
922
930
|
var input3 = "w-full min-w-0 rounded border border-border bg-transparent px-1 py-0.5 text-xs";
|
|
931
|
+
var ROLES = [
|
|
932
|
+
{ role: "transition", label: "Move in", none: "ease in" },
|
|
933
|
+
{ role: "hold", label: "While holding", none: "stay still" }
|
|
934
|
+
];
|
|
935
|
+
function useCameraMoves(controller, provider) {
|
|
936
|
+
const [moves, setMoves] = useState5({ transition: [], hold: [] });
|
|
937
|
+
useEffect3(() => {
|
|
938
|
+
let live = true;
|
|
939
|
+
void Promise.all([controller.cameraMoves("transition"), controller.cameraMoves("hold")]).then(
|
|
940
|
+
([transition, hold]) => live && setMoves({ transition, hold }),
|
|
941
|
+
() => live && setMoves({ transition: [], hold: [] })
|
|
942
|
+
);
|
|
943
|
+
return () => {
|
|
944
|
+
live = false;
|
|
945
|
+
};
|
|
946
|
+
}, [controller, provider]);
|
|
947
|
+
return moves;
|
|
948
|
+
}
|
|
949
|
+
function MoveControls({ controller, shot, role }) {
|
|
950
|
+
const state = useAnimationEditorState(controller);
|
|
951
|
+
const move = motionShotCameraMove(state.scene.shots.find((s) => s.id === shot), role);
|
|
952
|
+
const { description, error } = useEffectDescription(state.effectsProvider, move?.move);
|
|
953
|
+
const [message, setMessage] = useState5(null);
|
|
954
|
+
if (!move) return null;
|
|
955
|
+
const report = (r) => void r.then((x) => setMessage(x.ok ? null : x.error));
|
|
956
|
+
const set = (changes, merge) => {
|
|
957
|
+
const next = { ...move, ...changes };
|
|
958
|
+
for (const k of Object.keys(next)) if (next[k] === null || k === "values" && !Object.keys(next[k]).length) delete next[k];
|
|
959
|
+
report(controller.setShotCameraMove(shot, role, next, { merge: merge ?? void 0 }));
|
|
960
|
+
};
|
|
961
|
+
if (error) return /* @__PURE__ */ jsx10("p", { className: "text-[11px] text-amber-500", children: error });
|
|
962
|
+
if (!description) return null;
|
|
963
|
+
return /* @__PURE__ */ jsxs8("div", { className: "col-span-2 flex flex-col gap-1 border-l border-border pl-2", "data-camera-move-controls": role, children: [
|
|
964
|
+
role === "transition" && /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1", children: [
|
|
965
|
+
/* @__PURE__ */ jsx10("span", { className: "w-16 text-muted-foreground", children: "Length" }),
|
|
966
|
+
/* @__PURE__ */ jsx10(
|
|
967
|
+
CommitInput,
|
|
968
|
+
{
|
|
969
|
+
className: input3,
|
|
970
|
+
type: "number",
|
|
971
|
+
min: 0,
|
|
972
|
+
step: 50,
|
|
973
|
+
"aria-label": "Move length",
|
|
974
|
+
placeholder: String(description.camera?.durationMs ?? ""),
|
|
975
|
+
value: move.ms !== void 0 ? String(move.ms) : "",
|
|
976
|
+
onCommit: (raw) => raw.trim() === "" ? set({ ms: null }) : Number.isFinite(Number(raw)) && Number(raw) >= 0 ? set({ ms: Number(raw) }) : setMessage("Length is a number of ms, 0 or more.")
|
|
977
|
+
}
|
|
978
|
+
),
|
|
979
|
+
/* @__PURE__ */ jsx10("span", { className: "text-[10px] text-muted-foreground", children: "ms" })
|
|
980
|
+
] }),
|
|
981
|
+
/* @__PURE__ */ jsx10(
|
|
982
|
+
EffectParameters,
|
|
983
|
+
{
|
|
984
|
+
description,
|
|
985
|
+
values: move.values ?? {},
|
|
986
|
+
onChange: (k, v, gesture) => set({ values: { ...move.values ?? {}, [k]: v }, preset: null }, gesture),
|
|
987
|
+
onReset: (k) => {
|
|
988
|
+
const { [k]: _gone, ...rest } = move.values ?? {};
|
|
989
|
+
set({ values: rest, preset: null });
|
|
990
|
+
},
|
|
991
|
+
onPresetName: (name) => set({ preset: name, values: {} })
|
|
992
|
+
}
|
|
993
|
+
),
|
|
994
|
+
message && /* @__PURE__ */ jsx10("p", { role: "alert", className: "text-[11px] text-destructive", children: message })
|
|
995
|
+
] });
|
|
996
|
+
}
|
|
997
|
+
function ShotCameraMoves({ controller, shot, className = "" }) {
|
|
998
|
+
const state = useAnimationEditorState(controller);
|
|
999
|
+
const moves = useCameraMoves(controller, state.effectsProvider);
|
|
1000
|
+
const current = state.scene.shots.find((s) => s.id === shot);
|
|
1001
|
+
const [message, setMessage] = useState5(null);
|
|
1002
|
+
if (!current) return null;
|
|
1003
|
+
const has = moves.transition.length + moves.hold.length > 0;
|
|
1004
|
+
const named = current.camera?.in !== void 0 || current.camera?.during !== void 0;
|
|
1005
|
+
if (!has)
|
|
1006
|
+
return named ? /* @__PURE__ */ jsxs8("p", { className: `text-[10px] text-muted-foreground ${className}`, "data-camera-moves": "unavailable", children: [
|
|
1007
|
+
"This shot names camera moves, but ",
|
|
1008
|
+
state.effectsProvider ? `${state.effectsProvider.name} has none` : "no effects provider is set",
|
|
1009
|
+
", so the camera eases instead."
|
|
1010
|
+
] }) : null;
|
|
1011
|
+
const report = (r) => void Promise.resolve(r).then((x) => setMessage(x.ok ? null : x.error));
|
|
1012
|
+
return /* @__PURE__ */ jsxs8("div", { className: `grid grid-cols-[6.5rem_1fr] items-center gap-x-2 gap-y-1 ${className}`, "data-camera-moves": "", children: [
|
|
1013
|
+
ROLES.map(({ role, label, none }) => {
|
|
1014
|
+
const move = motionShotCameraMove(current, role);
|
|
1015
|
+
const known = moves[role].some((m) => m.id === move?.move);
|
|
1016
|
+
return /* @__PURE__ */ jsxs8(React7.Fragment, { children: [
|
|
1017
|
+
/* @__PURE__ */ jsx10("label", { className: "text-muted-foreground", children: label }),
|
|
1018
|
+
/* @__PURE__ */ jsxs8(
|
|
1019
|
+
"select",
|
|
1020
|
+
{
|
|
1021
|
+
className: input3,
|
|
1022
|
+
"aria-label": label,
|
|
1023
|
+
disabled: state.readOnly,
|
|
1024
|
+
value: move?.move ?? "",
|
|
1025
|
+
onChange: (e) => report(e.target.value ? controller.setShotCameraMove(current.id, role, e.target.value) : controller.clearShotCameraMove(current.id, role)),
|
|
1026
|
+
children: [
|
|
1027
|
+
/* @__PURE__ */ jsx10("option", { value: "", children: none }),
|
|
1028
|
+
move && !known && /* @__PURE__ */ jsxs8("option", { value: move.move, children: [
|
|
1029
|
+
move.move,
|
|
1030
|
+
" (not in the provider)"
|
|
1031
|
+
] }),
|
|
1032
|
+
moves[role].map((m) => /* @__PURE__ */ jsx10("option", { value: m.id, children: m.name }, m.id))
|
|
1033
|
+
]
|
|
1034
|
+
}
|
|
1035
|
+
),
|
|
1036
|
+
move && known && !state.readOnly && /* @__PURE__ */ jsx10(MoveControls, { controller, shot: current.id, role })
|
|
1037
|
+
] }, role);
|
|
1038
|
+
}),
|
|
1039
|
+
message && /* @__PURE__ */ jsx10("p", { className: "col-span-2 text-[11px] text-destructive", role: "alert", children: message })
|
|
1040
|
+
] });
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// src/animation-editor/ShotInspector.tsx
|
|
1044
|
+
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1045
|
+
var input4 = "w-full min-w-0 rounded border border-border bg-transparent px-1 py-0.5 text-xs";
|
|
923
1046
|
var btn4 = "rounded border border-border px-1.5 py-0.5 text-[11px] disabled:opacity-40";
|
|
924
1047
|
function ShotInspector({ controller, shot, className = "" }) {
|
|
925
1048
|
const state = useAnimationEditorState(controller);
|
|
926
1049
|
const { scene, selection, readOnly, error } = state;
|
|
927
|
-
const [local, setLocalState] =
|
|
1050
|
+
const [local, setLocalState] = useState6(null);
|
|
928
1051
|
const setLocal = (text) => setLocalState(text ? { text, revision: state.revision } : null);
|
|
929
1052
|
const elements = useMemo5(() => describeMotionElements2(scene), [scene.artwork]);
|
|
930
1053
|
const cues = useMemo5(() => motionCueChoices(scene), [scene]);
|
|
@@ -952,60 +1075,61 @@ function ShotInspector({ controller, shot, className = "" }) {
|
|
|
952
1075
|
const message = (local && local.revision === state.revision ? local.text : null) ?? error;
|
|
953
1076
|
const cueKey = current ? motionCueKey(current.at) : "";
|
|
954
1077
|
const frame = current?.camera && "frame" in current.camera ? current.camera.frame : "";
|
|
955
|
-
return /* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
957
|
-
/* @__PURE__ */
|
|
958
|
-
current && /* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
960
|
-
/* @__PURE__ */
|
|
961
|
-
current && /* @__PURE__ */
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
964
|
-
/* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ jsxs9("div", { className: `flex flex-col gap-1.5 text-xs ${className}`, "data-shot-inspector": "", children: [
|
|
1079
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-1", children: [
|
|
1080
|
+
/* @__PURE__ */ jsx11("span", { className: "font-medium", children: "Shot" }),
|
|
1081
|
+
current && /* @__PURE__ */ jsx11("code", { className: "text-[10px] text-muted-foreground", children: current.id }),
|
|
1082
|
+
/* @__PURE__ */ jsxs9("span", { className: "ml-auto flex gap-0.5", children: [
|
|
1083
|
+
/* @__PURE__ */ jsx11("button", { type: "button", className: btn4, disabled: readOnly, onClick: addShot, "data-add-shot": "", children: "+ Shot" }),
|
|
1084
|
+
current && /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
1085
|
+
/* @__PURE__ */ jsx11("button", { type: "button", className: btn4, "aria-label": "Move shot earlier", disabled: readOnly || index === 0, onClick: () => apply({ op: "move_shot", shot: current.id, to: index - 1 }, "Move shot"), children: "\u2190" }),
|
|
1086
|
+
/* @__PURE__ */ jsx11("button", { type: "button", className: btn4, "aria-label": "Move shot later", disabled: readOnly || index === scene.shots.length - 1, onClick: () => apply({ op: "move_shot", shot: current.id, to: index + 1 }, "Move shot"), children: "\u2192" }),
|
|
1087
|
+
/* @__PURE__ */ jsx11("button", { type: "button", className: btn4, "aria-label": "Delete shot", disabled: readOnly, onClick: () => apply({ op: "delete_shots", shots: [current.id] }, "Delete shot"), children: "\u2715" })
|
|
965
1088
|
] })
|
|
966
1089
|
] })
|
|
967
1090
|
] }),
|
|
968
|
-
current && /* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */
|
|
970
|
-
/* @__PURE__ */
|
|
971
|
-
/* @__PURE__ */
|
|
972
|
-
/* @__PURE__ */
|
|
973
|
-
/* @__PURE__ */
|
|
974
|
-
/* @__PURE__ */
|
|
1091
|
+
current && /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[6.5rem_1fr] items-center gap-x-2 gap-y-1", children: [
|
|
1092
|
+
/* @__PURE__ */ jsx11("label", { className: "text-muted-foreground", children: "Label" }),
|
|
1093
|
+
/* @__PURE__ */ jsx11(CommitInput, { className: input4, "aria-label": "Shot label", disabled: readOnly, value: current.label ?? "", onCommit: (raw) => apply(raw.trim() ? { op: "update_shot", shot: current.id, set: { label: raw.trim() } } : { op: "update_shot", shot: current.id, remove: ["label"] }, "Rename shot") }),
|
|
1094
|
+
/* @__PURE__ */ jsx11("label", { className: "text-muted-foreground", children: "Hold" }),
|
|
1095
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-1", children: [
|
|
1096
|
+
/* @__PURE__ */ jsx11(CommitInput, { className: input4, type: "number", min: 0, step: 50, "aria-label": "Hold", placeholder: "600", disabled: readOnly, value: current.hold !== void 0 ? String(current.hold) : "", onCommit: (raw) => number("hold", raw, "Change hold") }),
|
|
1097
|
+
/* @__PURE__ */ jsx11("span", { className: "text-[10px] text-muted-foreground", children: "ms" })
|
|
975
1098
|
] }),
|
|
976
|
-
/* @__PURE__ */
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
/* @__PURE__ */
|
|
979
|
-
/* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ jsx11("label", { className: "text-muted-foreground", children: "Speed" }),
|
|
1100
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-1", children: [
|
|
1101
|
+
/* @__PURE__ */ jsx11(CommitInput, { className: input4, type: "number", min: 0.05, step: 0.05, "aria-label": "Speed", placeholder: "1", disabled: readOnly, value: current.speed !== void 0 ? String(current.speed) : "", onCommit: (raw) => number("speed", raw, "Change speed") }),
|
|
1102
|
+
/* @__PURE__ */ jsx11("span", { className: "text-[10px] text-muted-foreground", children: "\xD7" })
|
|
980
1103
|
] }),
|
|
981
|
-
/* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */
|
|
1104
|
+
/* @__PURE__ */ jsx11("label", { className: "text-muted-foreground", children: "Camera" }),
|
|
1105
|
+
/* @__PURE__ */ jsxs9(
|
|
983
1106
|
"select",
|
|
984
1107
|
{
|
|
985
|
-
className:
|
|
1108
|
+
className: input4,
|
|
986
1109
|
"aria-label": "Camera frames",
|
|
987
1110
|
disabled: readOnly,
|
|
988
|
-
value: current.camera ? frame ? `frame:${frame}` : "rect" : "",
|
|
1111
|
+
value: current.camera && motionCameraFramed(current.camera) ? frame ? `frame:${frame}` : "rect" : "",
|
|
989
1112
|
onChange: (e) => {
|
|
990
1113
|
const v = e.target.value;
|
|
991
|
-
|
|
992
|
-
|
|
1114
|
+
const moves = { ...current.camera?.in !== void 0 ? { in: current.camera.in } : {}, ...current.camera?.during !== void 0 ? { during: current.camera.during } : {} };
|
|
1115
|
+
if (!v) apply(Object.keys(moves).length ? { op: "update_shot", shot: current.id, set: { camera: moves } } : { op: "update_shot", shot: current.id, remove: ["camera"] }, "Clear camera");
|
|
1116
|
+
else if (v.startsWith("frame:")) apply({ op: "update_shot", shot: current.id, set: { camera: { ...moves, frame: v.slice(6), padding: 24 } } }, "Frame camera");
|
|
993
1117
|
},
|
|
994
1118
|
children: [
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
current.camera && !frame && /* @__PURE__ */
|
|
997
|
-
elements.map((e) => /* @__PURE__ */
|
|
1119
|
+
/* @__PURE__ */ jsx11("option", { value: "", children: "keep framing" }),
|
|
1120
|
+
current.camera && motionCameraFramed(current.camera) && !frame && /* @__PURE__ */ jsx11("option", { value: "rect", children: "a rectangle" }),
|
|
1121
|
+
elements.map((e) => /* @__PURE__ */ jsxs9("option", { value: `frame:${e.id}`, children: [
|
|
998
1122
|
"frame ",
|
|
999
1123
|
e.name ?? e.id
|
|
1000
1124
|
] }, e.id))
|
|
1001
1125
|
]
|
|
1002
1126
|
}
|
|
1003
1127
|
),
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
/* @__PURE__ */
|
|
1128
|
+
/* @__PURE__ */ jsx11("label", { className: "text-muted-foreground", children: "Starts on" }),
|
|
1129
|
+
/* @__PURE__ */ jsxs9(
|
|
1006
1130
|
"select",
|
|
1007
1131
|
{
|
|
1008
|
-
className:
|
|
1132
|
+
className: input4,
|
|
1009
1133
|
"aria-label": "Cue",
|
|
1010
1134
|
disabled: readOnly || index === 0,
|
|
1011
1135
|
value: cueKey,
|
|
@@ -1014,33 +1138,34 @@ function ShotInspector({ controller, shot, className = "" }) {
|
|
|
1014
1138
|
apply(cue ? { op: "update_shot", shot: current.id, set: { at: cue } } : { op: "update_shot", shot: current.id, remove: ["at"] }, "Cue shot");
|
|
1015
1139
|
},
|
|
1016
1140
|
children: [
|
|
1017
|
-
/* @__PURE__ */
|
|
1018
|
-
cueKey && !cues.some((c) => c.value === cueKey) && /* @__PURE__ */
|
|
1019
|
-
cues.map((c) => /* @__PURE__ */
|
|
1141
|
+
/* @__PURE__ */ jsx11("option", { value: "", children: "after the shot before" }),
|
|
1142
|
+
cueKey && !cues.some((c) => c.value === cueKey) && /* @__PURE__ */ jsx11("option", { value: cueKey, children: cueKey }),
|
|
1143
|
+
cues.map((c) => /* @__PURE__ */ jsx11("option", { value: c.value, children: c.label }, c.value))
|
|
1020
1144
|
]
|
|
1021
1145
|
}
|
|
1022
1146
|
),
|
|
1023
|
-
!cues.length && index > 0 && /* @__PURE__ */
|
|
1147
|
+
!cues.length && index > 0 && /* @__PURE__ */ jsx11("p", { className: "col-span-2 text-[10px] text-muted-foreground", children: "Add a beat grid or narration in the scene settings to cue shots to them." })
|
|
1024
1148
|
] }),
|
|
1025
|
-
|
|
1149
|
+
current && /* @__PURE__ */ jsx11(ShotCameraMoves, { controller, shot: current.id }),
|
|
1150
|
+
message && /* @__PURE__ */ jsx11("p", { className: "text-red-500", role: "alert", "data-edit-error": "", children: message })
|
|
1026
1151
|
] });
|
|
1027
1152
|
}
|
|
1028
1153
|
|
|
1029
1154
|
// src/animation-editor/AnimationEffectsPanel.tsx
|
|
1030
|
-
import { useMemo as useMemo6, useState as
|
|
1155
|
+
import { useMemo as useMemo6, useState as useState7 } from "react";
|
|
1031
1156
|
import { indexMotionNodes } from "@pixerate/editor/animation-editor";
|
|
1032
|
-
import { Fragment as Fragment3, jsx as
|
|
1157
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1033
1158
|
var btn5 = "rounded border border-border px-1.5 py-0.5 text-[11px] disabled:opacity-40";
|
|
1034
1159
|
function Controls({ controller, instance, effect, values }) {
|
|
1035
1160
|
const provider = controller.effectsProvider;
|
|
1036
1161
|
const { description, error } = useEffectDescription(provider, effect);
|
|
1037
|
-
const [message, setMessage] =
|
|
1162
|
+
const [message, setMessage] = useState7(null);
|
|
1038
1163
|
const report = (r) => void r.then((x) => setMessage(x.ok ? null : x.error));
|
|
1039
|
-
if (!provider) return /* @__PURE__ */
|
|
1040
|
-
if (error) return /* @__PURE__ */
|
|
1041
|
-
if (!description) return /* @__PURE__ */
|
|
1042
|
-
return /* @__PURE__ */
|
|
1043
|
-
/* @__PURE__ */
|
|
1164
|
+
if (!provider) return /* @__PURE__ */ jsx12("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider: its commands are kept as they are." });
|
|
1165
|
+
if (error) return /* @__PURE__ */ jsx12("p", { className: "text-[11px] text-amber-500", children: error });
|
|
1166
|
+
if (!description) return /* @__PURE__ */ jsx12("p", { className: "text-[11px] text-muted-foreground", children: "Loading\u2026" });
|
|
1167
|
+
return /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
1168
|
+
/* @__PURE__ */ jsx12(
|
|
1044
1169
|
EffectParameters,
|
|
1045
1170
|
{
|
|
1046
1171
|
description,
|
|
@@ -1050,55 +1175,55 @@ function Controls({ controller, instance, effect, values }) {
|
|
|
1050
1175
|
onPreset: (v) => report(controller.updateMotionEffect(instance, v))
|
|
1051
1176
|
}
|
|
1052
1177
|
),
|
|
1053
|
-
message && /* @__PURE__ */
|
|
1178
|
+
message && /* @__PURE__ */ jsx12("p", { role: "alert", className: "text-[11px] text-destructive", children: message })
|
|
1054
1179
|
] });
|
|
1055
1180
|
}
|
|
1056
1181
|
function AnimationEffectsPanel({ controller, node, className = "" }) {
|
|
1057
1182
|
const state = useAnimationEditorState(controller);
|
|
1058
1183
|
const provider = state.effectsProvider;
|
|
1059
1184
|
const nodes = useMemo6(() => [...indexMotionNodes(state.scene.artwork.nodes).keys()], [state.scene.artwork]);
|
|
1060
|
-
const [chosen, setChosen] =
|
|
1185
|
+
const [chosen, setChosen] = useState7("");
|
|
1061
1186
|
const target = node && nodes.includes(node) ? node : chosen && nodes.includes(chosen) ? chosen : "";
|
|
1062
|
-
const [browse, setBrowse] =
|
|
1063
|
-
const [open, setOpen] =
|
|
1064
|
-
const [message, setMessage] =
|
|
1187
|
+
const [browse, setBrowse] = useState7(null);
|
|
1188
|
+
const [open, setOpen] = useState7(null);
|
|
1189
|
+
const [message, setMessage] = useState7(null);
|
|
1065
1190
|
const report = (r) => void Promise.resolve(r).then((x) => setMessage(x.ok ? x.notes.length ? x.notes.join(" ") : null : x.error));
|
|
1066
1191
|
const applied = useMemo6(() => controller.appliedEffects(), [controller, state.scene]);
|
|
1067
1192
|
const disabled = state.readOnly;
|
|
1068
|
-
return /* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
nodes.map((id) => /* @__PURE__ */
|
|
1193
|
+
return /* @__PURE__ */ jsxs10("section", { className: `flex flex-col gap-2 text-xs ${className}`, "aria-label": "Effects", "data-animation-effects": "", children: [
|
|
1194
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-wrap items-center gap-1", children: [
|
|
1195
|
+
/* @__PURE__ */ jsx12("span", { className: "flex-1 font-semibold", children: "Effects" }),
|
|
1196
|
+
/* @__PURE__ */ jsxs10("select", { className: "rounded border border-border bg-transparent px-1 py-0.5 text-[11px]", "aria-label": "Node to animate", value: target, disabled: !!node, onChange: (e) => setChosen(e.currentTarget.value), children: [
|
|
1197
|
+
/* @__PURE__ */ jsx12("option", { value: "", children: "Node\u2026" }),
|
|
1198
|
+
nodes.map((id) => /* @__PURE__ */ jsx12("option", { value: id, children: id }, id))
|
|
1074
1199
|
] }),
|
|
1075
|
-
/* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ jsx12("button", { type: "button", className: btn5, disabled: disabled || !provider || !target, "aria-pressed": browse === "motion", onClick: () => setBrowse(browse === "motion" ? null : "motion"), children: "Animate\u2026" }),
|
|
1201
|
+
/* @__PURE__ */ jsx12("button", { type: "button", className: btn5, disabled: disabled || !provider, "aria-pressed": browse === "vector", onClick: () => setBrowse(browse === "vector" ? null : "vector"), children: "Vector effect\u2026" })
|
|
1077
1202
|
] }),
|
|
1078
|
-
!provider && /* @__PURE__ */
|
|
1079
|
-
browse === "motion" && /* @__PURE__ */
|
|
1080
|
-
browse === "vector" && /* @__PURE__ */
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */
|
|
1083
|
-
/* @__PURE__ */
|
|
1203
|
+
!provider && /* @__PURE__ */ jsx12("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider is registered. Commands effects made are kept." }),
|
|
1204
|
+
browse === "motion" && /* @__PURE__ */ jsx12(EffectsBrowser, { provider, uses: ["motion"], kinds: ["motion"], title: `Motion for ${target}`, onPick: (e) => (setBrowse(null), report(controller.applyMotionEffect(e.id, [target]))) }),
|
|
1205
|
+
browse === "vector" && /* @__PURE__ */ jsx12(EffectsBrowser, { provider, kinds: ["vector"], title: "Vector effects", onPick: (e) => (setBrowse(null), report(controller.addVectorEffect(e.id))) }),
|
|
1206
|
+
/* @__PURE__ */ jsx12("ol", { className: "space-y-1", children: applied.map((e) => /* @__PURE__ */ jsxs10("li", { className: "rounded border border-border p-1", "data-motion-effect": e.instance, children: [
|
|
1207
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-1", children: [
|
|
1208
|
+
/* @__PURE__ */ jsxs10("button", { type: "button", className: "min-w-0 flex-1 truncate text-left", "aria-expanded": open === e.instance, onClick: () => setOpen(open === e.instance ? null : e.instance), children: [
|
|
1084
1209
|
e.name ?? e.effect,
|
|
1085
1210
|
" ",
|
|
1086
|
-
/* @__PURE__ */
|
|
1211
|
+
/* @__PURE__ */ jsxs10("span", { className: "text-muted-foreground", children: [
|
|
1087
1212
|
"\xB7 ",
|
|
1088
1213
|
e.kind === "vector" ? "picture" : e.targets.join(", ")
|
|
1089
1214
|
] })
|
|
1090
1215
|
] }),
|
|
1091
|
-
/* @__PURE__ */
|
|
1216
|
+
/* @__PURE__ */ jsx12("button", { type: "button", className: btn5, disabled, "aria-label": `Remove ${e.name ?? e.effect}`, onClick: () => report(controller.removeMotionEffect(e.instance)), children: "\u2715" })
|
|
1092
1217
|
] }),
|
|
1093
|
-
open === e.instance && /* @__PURE__ */
|
|
1218
|
+
open === e.instance && /* @__PURE__ */ jsx12("div", { className: "mt-1", children: /* @__PURE__ */ jsx12(Controls, { controller, instance: e.instance, effect: e.effect, values: e.values }) })
|
|
1094
1219
|
] }, e.instance)) }),
|
|
1095
|
-
!applied.length && /* @__PURE__ */
|
|
1096
|
-
message && /* @__PURE__ */
|
|
1220
|
+
!applied.length && /* @__PURE__ */ jsx12("p", { className: "text-[11px] text-muted-foreground", children: "No provider effects in this scene." }),
|
|
1221
|
+
message && /* @__PURE__ */ jsx12("p", { role: "status", className: "text-[11px] text-muted-foreground", "data-effects-message": "", children: message })
|
|
1097
1222
|
] });
|
|
1098
1223
|
}
|
|
1099
1224
|
|
|
1100
1225
|
// src/animation-editor/AnimationEditor.tsx
|
|
1101
|
-
import { Fragment as Fragment4, jsx as
|
|
1226
|
+
import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1102
1227
|
var ONION = { before: 3, after: 1 };
|
|
1103
1228
|
var btn6 = "rounded border border-border px-2 py-0.5 text-xs disabled:opacity-40";
|
|
1104
1229
|
function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues = true, editable = true, effects, className = "", playback, playbackId = "animation", onPlaybackReveal }) {
|
|
@@ -1138,13 +1263,13 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
1138
1263
|
},
|
|
1139
1264
|
reveal: () => onPlaybackReveal?.()
|
|
1140
1265
|
});
|
|
1141
|
-
const presenceLayer = playing ? /* @__PURE__ */
|
|
1266
|
+
const presenceLayer = playing ? /* @__PURE__ */ jsx13(PresenceLayer, { presence: agentPresence }) : null;
|
|
1142
1267
|
useEffects(controller, effects);
|
|
1143
1268
|
const { issues, scene, selection, readOnly } = state;
|
|
1144
|
-
const [picked, setPicked] =
|
|
1145
|
-
const [onion, setOnion] =
|
|
1146
|
-
const [paths, setPaths] =
|
|
1147
|
-
const [recordMode, setRecordMode] =
|
|
1269
|
+
const [picked, setPicked] = useState8(null);
|
|
1270
|
+
const [onion, setOnion] = useState8(false);
|
|
1271
|
+
const [paths, setPaths] = useState8(false);
|
|
1272
|
+
const [recordMode, setRecordMode] = useState8("move");
|
|
1148
1273
|
const command = selection?.command !== void 0 ? scene.shots.find((s) => s.id === selection.shot)?.run[selection.command] : void 0;
|
|
1149
1274
|
const targets = command && "targets" in command ? command.targets : [];
|
|
1150
1275
|
const nodes = useMemo7(() => indexMotionNodes2(scene.artwork.nodes), [scene.artwork]);
|
|
@@ -1157,7 +1282,7 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
1157
1282
|
}
|
|
1158
1283
|
setPicked(id);
|
|
1159
1284
|
};
|
|
1160
|
-
const stage = /* @__PURE__ */
|
|
1285
|
+
const stage = /* @__PURE__ */ jsx13(
|
|
1161
1286
|
AnimationStage,
|
|
1162
1287
|
{
|
|
1163
1288
|
controller,
|
|
@@ -1170,15 +1295,15 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
1170
1295
|
className: "rounded-md border border-border bg-muted/40"
|
|
1171
1296
|
}
|
|
1172
1297
|
);
|
|
1173
|
-
const issueList = showIssues && issues.length > 0 && /* @__PURE__ */
|
|
1298
|
+
const issueList = showIssues && issues.length > 0 && /* @__PURE__ */ jsx13("ul", { className: "space-y-0.5 text-xs", "aria-label": "Animation issues", children: issues.map((issue, i) => /* @__PURE__ */ jsx13("li", { className: issue.severity === "error" ? "text-red-500" : issue.severity === "warning" ? "text-amber-500" : "text-muted-foreground", children: motionIssueLine(issue) }, i)) });
|
|
1174
1299
|
if (!editable)
|
|
1175
|
-
return /* @__PURE__ */
|
|
1300
|
+
return /* @__PURE__ */ jsxs11("div", { ref: rootRef, className: `relative flex flex-col gap-2 ${className}`, "data-animation-editor": "", children: [
|
|
1176
1301
|
presenceLayer,
|
|
1177
1302
|
stage,
|
|
1178
|
-
/* @__PURE__ */
|
|
1303
|
+
/* @__PURE__ */ jsx13(PlayheadScrubber, { controller }),
|
|
1179
1304
|
issueList
|
|
1180
1305
|
] });
|
|
1181
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ jsxs11(
|
|
1182
1307
|
"div",
|
|
1183
1308
|
{
|
|
1184
1309
|
ref: rootRef,
|
|
@@ -1193,41 +1318,41 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
1193
1318
|
},
|
|
1194
1319
|
children: [
|
|
1195
1320
|
presenceLayer,
|
|
1196
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
1197
1322
|
stage,
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
/* @__PURE__ */
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
onionSkin === void 0 && /* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1323
|
+
/* @__PURE__ */ jsx13(PlayheadScrubber, { controller }),
|
|
1324
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-wrap items-center gap-2 text-xs text-muted-foreground", children: [
|
|
1325
|
+
/* @__PURE__ */ jsx13("button", { type: "button", className: btn6, onClick: () => controller.undo(), disabled: !state.canUndo, title: state.canUndo ? `Undo ${state.undoLabel}` : "Nothing to undo", "data-undo": "", children: "Undo" }),
|
|
1326
|
+
/* @__PURE__ */ jsx13("button", { type: "button", className: btn6, onClick: () => controller.redo(), disabled: !state.canRedo, title: state.canRedo ? `Redo ${state.redoLabel}` : "Nothing to redo", "data-redo": "", children: "Redo" }),
|
|
1327
|
+
onionSkin === void 0 && /* @__PURE__ */ jsxs11("label", { className: "flex items-center gap-1", children: [
|
|
1328
|
+
/* @__PURE__ */ jsx13("input", { type: "checkbox", checked: onion, onChange: (e) => setOnion(e.target.checked) }),
|
|
1204
1329
|
" Onion skin"
|
|
1205
1330
|
] }),
|
|
1206
|
-
motionPaths === void 0 && /* @__PURE__ */
|
|
1207
|
-
/* @__PURE__ */
|
|
1331
|
+
motionPaths === void 0 && /* @__PURE__ */ jsxs11("label", { className: "flex items-center gap-1", children: [
|
|
1332
|
+
/* @__PURE__ */ jsx13("input", { type: "checkbox", checked: paths, onChange: (e) => setPaths(e.target.checked) }),
|
|
1208
1333
|
" Motion paths"
|
|
1209
1334
|
] }),
|
|
1210
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ jsx13("span", { className: "ml-auto", "data-picked-element": pickedValid ?? void 0, children: pickedValid ? /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
1211
1336
|
"Picked ",
|
|
1212
|
-
/* @__PURE__ */
|
|
1337
|
+
/* @__PURE__ */ jsx13("code", { className: "text-rose-500", children: pickedValid }),
|
|
1213
1338
|
" ",
|
|
1214
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ jsx13("button", { type: "button", className: "underline", onClick: () => setPicked(null), children: "clear" })
|
|
1215
1340
|
] }) : "Click the stage to pick an element; shift-click to toggle it as a target." })
|
|
1216
1341
|
] }),
|
|
1217
|
-
!readOnly && /* @__PURE__ */
|
|
1342
|
+
!readOnly && /* @__PURE__ */ jsx13(AnimationRecordPanel, { controller, node: pickedValid, mode: recordMode, onModeChange: setRecordMode, className: "border-t border-border pt-2" }),
|
|
1218
1343
|
issueList
|
|
1219
1344
|
] }),
|
|
1220
|
-
/* @__PURE__ */
|
|
1221
|
-
/* @__PURE__ */
|
|
1222
|
-
(state.effectsProvider || controller.appliedEffects().length > 0) && /* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1226
|
-
/* @__PURE__ */
|
|
1345
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex min-w-0 flex-col gap-3", children: [
|
|
1346
|
+
/* @__PURE__ */ jsx13(CommandList, { controller, targets: pickedValid ? [pickedValid] : void 0 }),
|
|
1347
|
+
(state.effectsProvider || controller.appliedEffects().length > 0) && /* @__PURE__ */ jsx13(AnimationEffectsPanel, { controller, node: pickedValid, className: "border-t border-border pt-2" }),
|
|
1348
|
+
/* @__PURE__ */ jsx13(CommandInspector, { controller, picked: pickedValid, className: "border-t border-border pt-2" }),
|
|
1349
|
+
/* @__PURE__ */ jsxs11("details", { open: true, className: "border-t border-border pt-2", children: [
|
|
1350
|
+
/* @__PURE__ */ jsx13("summary", { className: "cursor-pointer text-xs font-medium", children: "Shot" }),
|
|
1351
|
+
/* @__PURE__ */ jsx13(ShotInspector, { controller, className: "mt-1" })
|
|
1227
1352
|
] }),
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ jsxs11("details", { className: "border-t border-border pt-2", children: [
|
|
1354
|
+
/* @__PURE__ */ jsx13("summary", { className: "cursor-pointer text-xs font-medium", children: "Scene settings" }),
|
|
1355
|
+
/* @__PURE__ */ jsx13(SceneSettings, { controller, className: "mt-1" })
|
|
1231
1356
|
] })
|
|
1232
1357
|
] })
|
|
1233
1358
|
]
|
|
@@ -1244,6 +1369,7 @@ export {
|
|
|
1244
1369
|
EasePicker,
|
|
1245
1370
|
PlayheadScrubber,
|
|
1246
1371
|
SceneSettings,
|
|
1372
|
+
ShotCameraMoves,
|
|
1247
1373
|
ShotInspector,
|
|
1248
1374
|
ShotTimeline,
|
|
1249
1375
|
useAnimationEditor,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface ClipCameraMovesProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** The clip whose moves to edit. */
|
|
6
|
+
clip: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A clip's camera moves from the effects provider: the move into the clip and the move across
|
|
11
|
+
* the rest of it, with the zoom they frame, a move in's length, presets and controls. The moves
|
|
12
|
+
* are baked into the clip's transform keys. Hidden with the reason when the provider has no
|
|
13
|
+
* camera moves. Every change is one undo step (a slider drag is one).
|
|
14
|
+
*/
|
|
15
|
+
export declare function ClipCameraMoves({ controller, clip, className }: ClipCameraMovesProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VideoEditorController } from '@pixerate/editor/video-editor';
|
|
3
|
+
export interface ClipCameraMovesProps {
|
|
4
|
+
controller: VideoEditorController;
|
|
5
|
+
/** The clip whose moves to edit. */
|
|
6
|
+
clip: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A clip's camera moves from the effects provider: the move into the clip and the move across
|
|
11
|
+
* the rest of it, with the zoom they frame, a move in's length, presets and controls. The moves
|
|
12
|
+
* are baked into the clip's transform keys. Hidden with the reason when the provider has no
|
|
13
|
+
* camera moves. Every change is one undo step (a slider drag is one).
|
|
14
|
+
*/
|
|
15
|
+
export declare function ClipCameraMoves({ controller, clip, className }: ClipCameraMovesProps): React.JSX.Element | null;
|
|
@@ -8,7 +8,7 @@ export interface ClipInspectorProps {
|
|
|
8
8
|
* Edits the one selected clip: its name, fades, opacity, volume and transform (each with a keyframe
|
|
9
9
|
* toggle at the playhead: ◆ adds a key holding the value there or removes the one there; typing a
|
|
10
10
|
* value on a keyed property sets the key at the playhead); volume, speed and mute for media;
|
|
11
|
-
* text, colour, size and background for titles; colour for colour clips;
|
|
12
|
-
* it. Each change is one undo step (`update_clip` / `set_transition`), committed on blur or change.
|
|
11
|
+
* text, colour, size and background for titles; colour for colour clips; the transition into
|
|
12
|
+
* it; and its camera moves (`ClipCameraMoves`). Each change is one undo step (`update_clip` / `set_transition`), committed on blur or change.
|
|
13
13
|
*/
|
|
14
14
|
export declare function ClipInspector({ controller, className }: ClipInspectorProps): React.JSX.Element | null;
|