@pixerate/editor-react 0.156.0 → 0.158.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/ShotInspector.d.cts +1 -1
- package/dist/animation-editor/ShotInspector.d.ts +1 -1
- package/dist/animation-editor/ShotLayers.d.cts +26 -0
- package/dist/animation-editor/ShotLayers.d.ts +26 -0
- package/dist/animation-editor/index.cjs +377 -142
- package/dist/animation-editor/index.d.cts +1 -0
- package/dist/animation-editor/index.d.ts +1 -0
- package/dist/animation-editor/index.js +367 -134
- package/dist/canvas/index.cjs +12 -6
- package/dist/canvas/index.js +13 -6
- package/dist/canvas/useCanvasEditorDocument.d.cts +5 -3
- package/dist/canvas/useCanvasEditorDocument.d.ts +5 -3
- package/package.json +3 -3
|
@@ -42,7 +42,9 @@ __export(animation_editor_exports, {
|
|
|
42
42
|
SceneSettings: () => SceneSettings,
|
|
43
43
|
ShotCameraMoves: () => ShotCameraMoves,
|
|
44
44
|
ShotInspector: () => ShotInspector,
|
|
45
|
+
ShotLayers: () => ShotLayers,
|
|
45
46
|
ShotTimeline: () => ShotTimeline,
|
|
47
|
+
ShotTransition: () => ShotTransition,
|
|
46
48
|
useAnimationEditor: () => useAnimationEditor,
|
|
47
49
|
useAnimationEditorController: () => useAnimationEditorController,
|
|
48
50
|
useAnimationEditorState: () => useAnimationEditorState,
|
|
@@ -227,7 +229,7 @@ function ShotTimeline({ controller, className = "" }) {
|
|
|
227
229
|
}
|
|
228
230
|
|
|
229
231
|
// src/animation-editor/AnimationEditor.tsx
|
|
230
|
-
var
|
|
232
|
+
var import_react24 = require("react");
|
|
231
233
|
|
|
232
234
|
// src/playback/AgentPlaybackContext.tsx
|
|
233
235
|
var import_react3 = require("react");
|
|
@@ -1036,12 +1038,12 @@ function SceneSettings({ controller, className = "" }) {
|
|
|
1036
1038
|
}
|
|
1037
1039
|
|
|
1038
1040
|
// src/animation-editor/ShotInspector.tsx
|
|
1039
|
-
var
|
|
1041
|
+
var import_react22 = require("react");
|
|
1040
1042
|
var import_animation_editor10 = require("@pixerate/editor/animation-editor");
|
|
1041
1043
|
|
|
1042
|
-
// src/animation-editor/
|
|
1044
|
+
// src/animation-editor/ShotLayers.tsx
|
|
1043
1045
|
var import_react20 = __toESM(require("react"), 1);
|
|
1044
|
-
var
|
|
1046
|
+
var import_effects4 = require("@pixerate/editor/effects");
|
|
1045
1047
|
|
|
1046
1048
|
// src/effects/useEffects.ts
|
|
1047
1049
|
var import_react11 = require("react");
|
|
@@ -2309,10 +2311,10 @@ function ParameterNumberInput(props) {
|
|
|
2309
2311
|
const resolved = resolveParameterComponents(components, ctx);
|
|
2310
2312
|
const CustomInput = resolved.input;
|
|
2311
2313
|
const plain = plainNumber(field, value);
|
|
2312
|
-
const handleCommit = (text,
|
|
2314
|
+
const handleCommit = (text, input6) => {
|
|
2313
2315
|
const n = (0, import_parameters.parseParameterNumberInput)(field, text);
|
|
2314
2316
|
if (n === null || n === value) {
|
|
2315
|
-
if (
|
|
2317
|
+
if (input6) input6.value = plain;
|
|
2316
2318
|
} else {
|
|
2317
2319
|
onChange(n);
|
|
2318
2320
|
}
|
|
@@ -2810,16 +2812,245 @@ function EffectParameters({
|
|
|
2810
2812
|
] });
|
|
2811
2813
|
}
|
|
2812
2814
|
|
|
2813
|
-
// src/animation-editor/
|
|
2815
|
+
// src/animation-editor/ShotLayers.tsx
|
|
2814
2816
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2815
2817
|
var input3 = "w-full min-w-0 rounded border border-border bg-transparent px-1 py-0.5 text-xs";
|
|
2818
|
+
var button = "rounded border border-border px-1 text-[11px] disabled:opacity-40";
|
|
2819
|
+
function useEffectList(provider, keep) {
|
|
2820
|
+
const [list, setList] = (0, import_react20.useState)([]);
|
|
2821
|
+
(0, import_react20.useEffect)(() => {
|
|
2822
|
+
let live = true;
|
|
2823
|
+
if (!provider) return setList([]);
|
|
2824
|
+
void Promise.resolve(provider.list()).then(
|
|
2825
|
+
(all) => live && setList(all.filter(keep)),
|
|
2826
|
+
() => live && setList([])
|
|
2827
|
+
);
|
|
2828
|
+
return () => {
|
|
2829
|
+
live = false;
|
|
2830
|
+
};
|
|
2831
|
+
}, [provider]);
|
|
2832
|
+
return list;
|
|
2833
|
+
}
|
|
2834
|
+
var isTransition = (e) => e.uses.includes("transition") && e.kind !== "camera";
|
|
2835
|
+
function subjectLabel(subject) {
|
|
2836
|
+
if (!subject) return "";
|
|
2837
|
+
if ("slot" in subject) return `slot ${subject.slot}`;
|
|
2838
|
+
if ("text" in subject) return `\u201C${subject.text}\u201D`;
|
|
2839
|
+
return "image" in subject ? "picture" : "SVG";
|
|
2840
|
+
}
|
|
2841
|
+
function SubjectField({ layer, disabled, onSet }) {
|
|
2842
|
+
const s = layer.subject;
|
|
2843
|
+
const kind = !s ? "" : "slot" in s ? "slot" : "text" in s ? "text" : "image" in s ? "image" : "svg";
|
|
2844
|
+
const value = !s ? "" : "slot" in s ? s.slot : "text" in s ? s.text : "image" in s ? s.image : s.svg;
|
|
2845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
2846
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: "Subject" }),
|
|
2847
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex gap-1", children: [
|
|
2848
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2849
|
+
"select",
|
|
2850
|
+
{
|
|
2851
|
+
className: `${input3} w-20 flex-none`,
|
|
2852
|
+
"aria-label": "Subject kind",
|
|
2853
|
+
disabled,
|
|
2854
|
+
value: kind,
|
|
2855
|
+
onChange: (e) => {
|
|
2856
|
+
const k = e.target.value;
|
|
2857
|
+
onSet(k === "" ? null : k === "slot" ? { slot: value || "picture" } : k === "text" ? { text: value || "Title" } : k === "image" ? { image: value || "https://" } : { svg: value || '<svg xmlns="http://www.w3.org/2000/svg"/>' });
|
|
2858
|
+
},
|
|
2859
|
+
children: [
|
|
2860
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "", children: "none" }),
|
|
2861
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "image", children: "picture" }),
|
|
2862
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "svg", children: "SVG" }),
|
|
2863
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "text", children: "words" }),
|
|
2864
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "slot", children: "slot" })
|
|
2865
|
+
]
|
|
2866
|
+
}
|
|
2867
|
+
),
|
|
2868
|
+
kind && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2869
|
+
CommitInput,
|
|
2870
|
+
{
|
|
2871
|
+
className: input3,
|
|
2872
|
+
"aria-label": kind === "image" ? "Picture URL" : kind === "svg" ? "SVG markup" : kind === "text" ? "Words" : "Slot name",
|
|
2873
|
+
disabled,
|
|
2874
|
+
value,
|
|
2875
|
+
onCommit: (raw) => raw.trim() && onSet({ [kind]: raw })
|
|
2876
|
+
}
|
|
2877
|
+
)
|
|
2878
|
+
] })
|
|
2879
|
+
] });
|
|
2880
|
+
}
|
|
2881
|
+
function LayerControls({ controller, layer, report }) {
|
|
2882
|
+
const state = useAnimationEditorState(controller);
|
|
2883
|
+
const { description, error } = useEffectDescription(state.effectsProvider, layer.effect);
|
|
2884
|
+
const set = (changes, merge) => report(controller.updateShotLayer(layer.id, changes, { merge: merge ?? void 0 }));
|
|
2885
|
+
const number = (raw, field, max) => {
|
|
2886
|
+
if (raw.trim() === "") return set({ [field]: null });
|
|
2887
|
+
const n = Number(raw);
|
|
2888
|
+
if (Number.isFinite(n) && n >= 0 && n <= max) set({ [field]: n });
|
|
2889
|
+
};
|
|
2890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "col-span-2 grid grid-cols-[4.5rem_1fr] items-center gap-x-2 gap-y-1 border-l border-border pl-2", "data-shot-layer-controls": layer.id, children: [
|
|
2891
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: "Role" }),
|
|
2892
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("select", { className: input3, "aria-label": "Layer role", disabled: state.readOnly, value: layer.role ?? "", onChange: (e) => set({ role: e.target.value || null }), children: [
|
|
2893
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("option", { value: "", children: [
|
|
2894
|
+
layer.rect ? "subject" : "background",
|
|
2895
|
+
" (default)"
|
|
2896
|
+
] }),
|
|
2897
|
+
import_effects4.EFFECT_LAYER_ROLES.map((r) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: r, children: r }, r))
|
|
2898
|
+
] }),
|
|
2899
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SubjectField, { layer, disabled: state.readOnly, onSet: (subject) => set({ subject }) }),
|
|
2900
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: "Opacity" }),
|
|
2901
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CommitInput, { className: input3, type: "number", min: 0, max: 1, step: 0.05, "aria-label": "Layer opacity", placeholder: "1", disabled: state.readOnly, value: layer.opacity !== void 0 ? String(layer.opacity) : "", onCommit: (raw) => number(raw, "opacity", 1) }),
|
|
2902
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: "Fade" }),
|
|
2903
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CommitInput, { className: input3, type: "number", min: 0, step: 50, "aria-label": "Layer fade (ms)", placeholder: "0", disabled: state.readOnly, value: layer.fade !== void 0 ? String(layer.fade) : "", onCommit: (raw) => number(raw, "fade", 6e4) }),
|
|
2904
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: "Until" }),
|
|
2905
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2906
|
+
"select",
|
|
2907
|
+
{
|
|
2908
|
+
className: input3,
|
|
2909
|
+
"aria-label": "Layer lasts until",
|
|
2910
|
+
disabled: state.readOnly,
|
|
2911
|
+
value: typeof layer.until === "object" ? String(layer.until.shots) : layer.until === void 0 ? "1" : "ms",
|
|
2912
|
+
onChange: (e) => set({ until: e.target.value === "1" ? null : { shots: Number(e.target.value) } }),
|
|
2913
|
+
children: [
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "1", children: "the next shot" }),
|
|
2915
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "2", children: "the shot after next" }),
|
|
2916
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "3", children: "three shots on" }),
|
|
2917
|
+
typeof layer.until === "number" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("option", { value: "ms", children: [
|
|
2918
|
+
layer.until,
|
|
2919
|
+
" ms"
|
|
2920
|
+
] })
|
|
2921
|
+
]
|
|
2922
|
+
}
|
|
2923
|
+
),
|
|
2924
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "col-span-2 text-[11px] text-amber-500", children: error }),
|
|
2925
|
+
description && !state.readOnly && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2926
|
+
EffectParameters,
|
|
2927
|
+
{
|
|
2928
|
+
description,
|
|
2929
|
+
values: layer.values ?? {},
|
|
2930
|
+
onChange: (k, v, gesture) => set({ values: { ...layer.values ?? {}, [k]: v }, preset: null }, gesture),
|
|
2931
|
+
onReset: (k) => {
|
|
2932
|
+
const { [k]: _gone, ...rest } = layer.values ?? {};
|
|
2933
|
+
set({ values: Object.keys(rest).length ? rest : null, preset: null });
|
|
2934
|
+
},
|
|
2935
|
+
onPresetName: (name) => set({ preset: name, values: null })
|
|
2936
|
+
}
|
|
2937
|
+
) })
|
|
2938
|
+
] });
|
|
2939
|
+
}
|
|
2940
|
+
function ShotLayers({ controller, shot, className = "" }) {
|
|
2941
|
+
const state = useAnimationEditorState(controller);
|
|
2942
|
+
const effects = useEffectList(state.effectsProvider, import_effects4.effectLayerOffered);
|
|
2943
|
+
const [open, setOpen] = (0, import_react20.useState)(null);
|
|
2944
|
+
const [message, setMessage] = (0, import_react20.useState)(null);
|
|
2945
|
+
const current = state.scene.shots.find((s) => s.id === shot);
|
|
2946
|
+
if (!current) return null;
|
|
2947
|
+
const layers = current.layers ?? [];
|
|
2948
|
+
const report = (r) => void r.then((x) => {
|
|
2949
|
+
setMessage(x.ok ? null : x.error);
|
|
2950
|
+
if (x.ok && x.layer) setOpen(x.layer.id);
|
|
2951
|
+
});
|
|
2952
|
+
const add = (value) => {
|
|
2953
|
+
if (!value) return;
|
|
2954
|
+
if (value === ":picture") return report(controller.addShotLayer(shot, { subject: { slot: "picture" } }));
|
|
2955
|
+
if (value === ":words") return report(controller.addShotLayer(shot, { subject: { text: "Title" }, role: "overlay" }));
|
|
2956
|
+
const e = effects.find((x) => x.id === value);
|
|
2957
|
+
const needsSubject = e?.uses.includes("filter");
|
|
2958
|
+
report(controller.addShotLayer(shot, { effect: value, ...needsSubject ? { subject: { slot: "picture" } } : {} }));
|
|
2959
|
+
};
|
|
2960
|
+
if (!layers.length && !effects.length && state.readOnly) return null;
|
|
2961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: `grid grid-cols-[6.5rem_1fr] items-center gap-x-2 gap-y-1 ${className}`, "data-shot-layers": "", children: [
|
|
2962
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: "Layers" }),
|
|
2963
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("select", { className: input3, "aria-label": "Add a layer", disabled: state.readOnly, value: "", onChange: (e) => add(e.target.value), children: [
|
|
2964
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "", children: "add a layer\u2026" }),
|
|
2965
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: ":picture", children: "Picture" }),
|
|
2966
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: ":words", children: "Words" }),
|
|
2967
|
+
effects.map((e) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("option", { value: e.id, children: [
|
|
2968
|
+
e.name,
|
|
2969
|
+
" (",
|
|
2970
|
+
e.uses.filter((u) => u !== "interactive").join(", "),
|
|
2971
|
+
")"
|
|
2972
|
+
] }, e.id))
|
|
2973
|
+
] }),
|
|
2974
|
+
layers.map((layer, i) => ({ layer, i })).reverse().map(({ layer, i }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react20.default.Fragment, { children: [
|
|
2975
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("button", { type: "button", className: "truncate text-left text-xs", "aria-expanded": open === layer.id, onClick: () => setOpen(open === layer.id ? null : layer.id), "data-shot-layer": layer.id, children: layer.name ?? (layer.effect ? layer.effect : "Picture") }),
|
|
2976
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
2977
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "flex-1 truncate text-[10px] text-muted-foreground", children: [
|
|
2978
|
+
layer.role ?? (layer.rect ? "subject" : "background"),
|
|
2979
|
+
" ",
|
|
2980
|
+
subjectLabel(layer.subject)
|
|
2981
|
+
] }),
|
|
2982
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("button", { type: "button", className: button, "aria-label": `Move ${layer.id} up`, disabled: state.readOnly || i === layers.length - 1, onClick: () => report(controller.moveShotLayer(layer.id, i + 1)), children: "\u2191" }),
|
|
2983
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("button", { type: "button", className: button, "aria-label": `Move ${layer.id} down`, disabled: state.readOnly || i === 0, onClick: () => report(controller.moveShotLayer(layer.id, i - 1)), children: "\u2193" }),
|
|
2984
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("button", { type: "button", className: button, "aria-label": `Remove ${layer.id}`, disabled: state.readOnly, onClick: () => report(controller.removeShotLayer(layer.id)), children: "\xD7" })
|
|
2985
|
+
] }),
|
|
2986
|
+
open === layer.id && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(LayerControls, { controller, layer, report })
|
|
2987
|
+
] }, layer.id)),
|
|
2988
|
+
!state.effectsProvider && layers.some((l) => l.effect) && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "col-span-2 text-[10px] text-muted-foreground", children: "No effects provider is set, so effect layers are not drawn." }),
|
|
2989
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "col-span-2 text-[11px] text-destructive", role: "alert", children: message })
|
|
2990
|
+
] });
|
|
2991
|
+
}
|
|
2992
|
+
function ShotTransition({ controller, shot, className = "" }) {
|
|
2993
|
+
const state = useAnimationEditorState(controller);
|
|
2994
|
+
const transitions = useEffectList(state.effectsProvider, isTransition);
|
|
2995
|
+
const index = state.scene.shots.findIndex((s) => s.id === shot);
|
|
2996
|
+
const current = state.scene.shots[index];
|
|
2997
|
+
const transition = current?.transition;
|
|
2998
|
+
const { description } = useEffectDescription(state.effectsProvider, transition?.effect);
|
|
2999
|
+
const [message, setMessage] = (0, import_react20.useState)(null);
|
|
3000
|
+
if (!current || index === 0 || !transitions.length && !transition) return null;
|
|
3001
|
+
const report = (r) => void Promise.resolve(r).then((x) => setMessage(x.ok ? null : x.error));
|
|
3002
|
+
const set = (changes, merge) => {
|
|
3003
|
+
const next = { ...transition, ...changes };
|
|
3004
|
+
for (const k of Object.keys(next)) if (next[k] === null) delete next[k];
|
|
3005
|
+
report(controller.setShotTransition(shot, next, { merge: merge ?? void 0 }));
|
|
3006
|
+
};
|
|
3007
|
+
const known = transitions.some((t) => t.id === transition?.effect);
|
|
3008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: `grid grid-cols-[6.5rem_1fr] items-center gap-x-2 gap-y-1 ${className}`, "data-shot-transition": "", children: [
|
|
3009
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { className: "text-muted-foreground", children: "Transition in" }),
|
|
3010
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("select", { className: input3, "aria-label": "Transition in", disabled: state.readOnly, value: transition?.effect ?? "", onChange: (e) => e.target.value ? report(controller.setShotTransition(shot, { effect: e.target.value, ...transition?.ms ? { ms: transition.ms } : {} })) : report(controller.clearShotTransition(shot)), children: [
|
|
3011
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: "", children: "cut" }),
|
|
3012
|
+
transition && !known && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("option", { value: transition.effect, children: [
|
|
3013
|
+
transition.name ?? transition.effect,
|
|
3014
|
+
" (not in the provider)"
|
|
3015
|
+
] }),
|
|
3016
|
+
transitions.map((t) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { value: t.id, children: t.name }, t.id))
|
|
3017
|
+
] }),
|
|
3018
|
+
transition && known && !state.readOnly && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "col-span-2 flex flex-col gap-1 border-l border-border pl-2", "data-shot-transition-controls": "", children: [
|
|
3019
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3020
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "w-16 text-muted-foreground", children: "Length" }),
|
|
3021
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CommitInput, { className: input3, type: "number", min: 1, step: 50, "aria-label": "Transition length", value: String(transition.ms ?? ""), onCommit: (raw) => Number(raw) > 0 ? set({ ms: Number(raw) }) : setMessage("Length is a number of ms above 0.") }),
|
|
3022
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-[10px] text-muted-foreground", children: "ms" })
|
|
3023
|
+
] }),
|
|
3024
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3025
|
+
EffectParameters,
|
|
3026
|
+
{
|
|
3027
|
+
description,
|
|
3028
|
+
values: transition.values ?? {},
|
|
3029
|
+
onChange: (k, v, gesture) => set({ values: { ...transition.values ?? {}, [k]: v }, preset: null }, gesture),
|
|
3030
|
+
onReset: (k) => {
|
|
3031
|
+
const { [k]: _gone, ...rest } = transition.values ?? {};
|
|
3032
|
+
set({ values: Object.keys(rest).length ? rest : null, preset: null });
|
|
3033
|
+
},
|
|
3034
|
+
onPresetName: (name) => set({ preset: name, values: null })
|
|
3035
|
+
}
|
|
3036
|
+
)
|
|
3037
|
+
] }),
|
|
3038
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "col-span-2 text-[11px] text-destructive", role: "alert", children: message })
|
|
3039
|
+
] });
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
// src/animation-editor/ShotCameraMoves.tsx
|
|
3043
|
+
var import_react21 = __toESM(require("react"), 1);
|
|
3044
|
+
var import_animation_editor9 = require("@pixerate/editor/animation-editor");
|
|
3045
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3046
|
+
var input4 = "w-full min-w-0 rounded border border-border bg-transparent px-1 py-0.5 text-xs";
|
|
2816
3047
|
var ROLES = [
|
|
2817
3048
|
{ role: "transition", label: "Move in", none: "ease in" },
|
|
2818
3049
|
{ role: "hold", label: "While holding", none: "stay still" }
|
|
2819
3050
|
];
|
|
2820
3051
|
function useCameraMoves(controller, provider) {
|
|
2821
|
-
const [moves, setMoves] = (0,
|
|
2822
|
-
(0,
|
|
3052
|
+
const [moves, setMoves] = (0, import_react21.useState)({ transition: [], hold: [] });
|
|
3053
|
+
(0, import_react21.useEffect)(() => {
|
|
2823
3054
|
let live = true;
|
|
2824
3055
|
void Promise.all([controller.cameraMoves("transition"), controller.cameraMoves("hold")]).then(
|
|
2825
3056
|
([transition, hold]) => live && setMoves({ transition, hold }),
|
|
@@ -2835,7 +3066,7 @@ function MoveControls({ controller, shot, role }) {
|
|
|
2835
3066
|
const state = useAnimationEditorState(controller);
|
|
2836
3067
|
const move = (0, import_animation_editor9.motionShotCameraMove)(state.scene.shots.find((s) => s.id === shot), role);
|
|
2837
3068
|
const { description, error } = useEffectDescription(state.effectsProvider, move?.move);
|
|
2838
|
-
const [message, setMessage] = (0,
|
|
3069
|
+
const [message, setMessage] = (0, import_react21.useState)(null);
|
|
2839
3070
|
if (!move) return null;
|
|
2840
3071
|
const report = (r) => void r.then((x) => setMessage(x.ok ? null : x.error));
|
|
2841
3072
|
const set = (changes, merge) => {
|
|
@@ -2843,15 +3074,15 @@ function MoveControls({ controller, shot, role }) {
|
|
|
2843
3074
|
for (const k of Object.keys(next)) if (next[k] === null || k === "values" && !Object.keys(next[k]).length) delete next[k];
|
|
2844
3075
|
report(controller.setShotCameraMove(shot, role, next, { merge: merge ?? void 0 }));
|
|
2845
3076
|
};
|
|
2846
|
-
if (error) return /* @__PURE__ */ (0,
|
|
3077
|
+
if (error) return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-[11px] text-amber-500", children: error });
|
|
2847
3078
|
if (!description) return null;
|
|
2848
|
-
return /* @__PURE__ */ (0,
|
|
2849
|
-
role === "transition" && /* @__PURE__ */ (0,
|
|
2850
|
-
/* @__PURE__ */ (0,
|
|
2851
|
-
/* @__PURE__ */ (0,
|
|
3079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "col-span-2 flex flex-col gap-1 border-l border-border pl-2", "data-camera-move-controls": role, children: [
|
|
3080
|
+
role === "transition" && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3081
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "w-16 text-muted-foreground", children: "Length" }),
|
|
3082
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2852
3083
|
CommitInput,
|
|
2853
3084
|
{
|
|
2854
|
-
className:
|
|
3085
|
+
className: input4,
|
|
2855
3086
|
type: "number",
|
|
2856
3087
|
min: 0,
|
|
2857
3088
|
step: 50,
|
|
@@ -2861,9 +3092,9 @@ function MoveControls({ controller, shot, role }) {
|
|
|
2861
3092
|
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.")
|
|
2862
3093
|
}
|
|
2863
3094
|
),
|
|
2864
|
-
/* @__PURE__ */ (0,
|
|
3095
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-[10px] text-muted-foreground", children: "ms" })
|
|
2865
3096
|
] }),
|
|
2866
|
-
/* @__PURE__ */ (0,
|
|
3097
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2867
3098
|
EffectParameters,
|
|
2868
3099
|
{
|
|
2869
3100
|
description,
|
|
@@ -2876,66 +3107,66 @@ function MoveControls({ controller, shot, role }) {
|
|
|
2876
3107
|
onPresetName: (name) => set({ preset: name, values: {} })
|
|
2877
3108
|
}
|
|
2878
3109
|
),
|
|
2879
|
-
message && /* @__PURE__ */ (0,
|
|
3110
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { role: "alert", className: "text-[11px] text-destructive", children: message })
|
|
2880
3111
|
] });
|
|
2881
3112
|
}
|
|
2882
3113
|
function ShotCameraMoves({ controller, shot, className = "" }) {
|
|
2883
3114
|
const state = useAnimationEditorState(controller);
|
|
2884
3115
|
const moves = useCameraMoves(controller, state.effectsProvider);
|
|
2885
3116
|
const current = state.scene.shots.find((s) => s.id === shot);
|
|
2886
|
-
const [message, setMessage] = (0,
|
|
3117
|
+
const [message, setMessage] = (0, import_react21.useState)(null);
|
|
2887
3118
|
if (!current) return null;
|
|
2888
3119
|
const has = moves.transition.length + moves.hold.length > 0;
|
|
2889
3120
|
const named = current.camera?.in !== void 0 || current.camera?.during !== void 0;
|
|
2890
3121
|
if (!has)
|
|
2891
|
-
return named ? /* @__PURE__ */ (0,
|
|
3122
|
+
return named ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("p", { className: `text-[10px] text-muted-foreground ${className}`, "data-camera-moves": "unavailable", children: [
|
|
2892
3123
|
"This shot names camera moves, but ",
|
|
2893
3124
|
state.effectsProvider ? `${state.effectsProvider.name} has none` : "no effects provider is set",
|
|
2894
3125
|
", so the camera eases instead."
|
|
2895
3126
|
] }) : null;
|
|
2896
3127
|
const report = (r) => void Promise.resolve(r).then((x) => setMessage(x.ok ? null : x.error));
|
|
2897
|
-
return /* @__PURE__ */ (0,
|
|
3128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: `grid grid-cols-[6.5rem_1fr] items-center gap-x-2 gap-y-1 ${className}`, "data-camera-moves": "", children: [
|
|
2898
3129
|
ROLES.map(({ role, label, none }) => {
|
|
2899
3130
|
const move = (0, import_animation_editor9.motionShotCameraMove)(current, role);
|
|
2900
3131
|
const known = moves[role].some((m) => m.id === move?.move);
|
|
2901
|
-
return /* @__PURE__ */ (0,
|
|
2902
|
-
/* @__PURE__ */ (0,
|
|
2903
|
-
/* @__PURE__ */ (0,
|
|
3132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react21.default.Fragment, { children: [
|
|
3133
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("label", { className: "text-muted-foreground", children: label }),
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2904
3135
|
"select",
|
|
2905
3136
|
{
|
|
2906
|
-
className:
|
|
3137
|
+
className: input4,
|
|
2907
3138
|
"aria-label": label,
|
|
2908
3139
|
disabled: state.readOnly,
|
|
2909
3140
|
value: move?.move ?? "",
|
|
2910
3141
|
onChange: (e) => report(e.target.value ? controller.setShotCameraMove(current.id, role, e.target.value) : controller.clearShotCameraMove(current.id, role)),
|
|
2911
3142
|
children: [
|
|
2912
|
-
/* @__PURE__ */ (0,
|
|
2913
|
-
move && !known && /* @__PURE__ */ (0,
|
|
3143
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "", children: none }),
|
|
3144
|
+
move && !known && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("option", { value: move.move, children: [
|
|
2914
3145
|
move.move,
|
|
2915
3146
|
" (not in the provider)"
|
|
2916
3147
|
] }),
|
|
2917
|
-
moves[role].map((m) => /* @__PURE__ */ (0,
|
|
3148
|
+
moves[role].map((m) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: m.id, children: m.name }, m.id))
|
|
2918
3149
|
]
|
|
2919
3150
|
}
|
|
2920
3151
|
),
|
|
2921
|
-
move && known && !state.readOnly && /* @__PURE__ */ (0,
|
|
3152
|
+
move && known && !state.readOnly && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MoveControls, { controller, shot: current.id, role })
|
|
2922
3153
|
] }, role);
|
|
2923
3154
|
}),
|
|
2924
|
-
message && /* @__PURE__ */ (0,
|
|
3155
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "col-span-2 text-[11px] text-destructive", role: "alert", children: message })
|
|
2925
3156
|
] });
|
|
2926
3157
|
}
|
|
2927
3158
|
|
|
2928
3159
|
// src/animation-editor/ShotInspector.tsx
|
|
2929
|
-
var
|
|
2930
|
-
var
|
|
3160
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3161
|
+
var input5 = "w-full min-w-0 rounded border border-border bg-transparent px-1 py-0.5 text-xs";
|
|
2931
3162
|
var btn4 = "rounded border border-border px-1.5 py-0.5 text-[11px] disabled:opacity-40";
|
|
2932
3163
|
function ShotInspector({ controller, shot, className = "" }) {
|
|
2933
3164
|
const state = useAnimationEditorState(controller);
|
|
2934
3165
|
const { scene, selection, readOnly, error } = state;
|
|
2935
|
-
const [local, setLocalState] = (0,
|
|
3166
|
+
const [local, setLocalState] = (0, import_react22.useState)(null);
|
|
2936
3167
|
const setLocal = (text) => setLocalState(text ? { text, revision: state.revision } : null);
|
|
2937
|
-
const elements = (0,
|
|
2938
|
-
const cues = (0,
|
|
3168
|
+
const elements = (0, import_react22.useMemo)(() => (0, import_animation_editor10.describeMotionElements)(scene), [scene.artwork]);
|
|
3169
|
+
const cues = (0, import_react22.useMemo)(() => (0, import_animation_editor10.motionCueChoices)(scene), [scene]);
|
|
2939
3170
|
const id = shot ?? selection?.shot ?? scene.shots[0]?.id;
|
|
2940
3171
|
const index = scene.shots.findIndex((s) => s.id === id);
|
|
2941
3172
|
const current = scene.shots[index];
|
|
@@ -2960,37 +3191,37 @@ function ShotInspector({ controller, shot, className = "" }) {
|
|
|
2960
3191
|
const message = (local && local.revision === state.revision ? local.text : null) ?? error;
|
|
2961
3192
|
const cueKey = current ? (0, import_animation_editor10.motionCueKey)(current.at) : "";
|
|
2962
3193
|
const frame = current?.camera && "frame" in current.camera ? current.camera.frame : "";
|
|
2963
|
-
return /* @__PURE__ */ (0,
|
|
2964
|
-
/* @__PURE__ */ (0,
|
|
2965
|
-
/* @__PURE__ */ (0,
|
|
2966
|
-
current && /* @__PURE__ */ (0,
|
|
2967
|
-
/* @__PURE__ */ (0,
|
|
2968
|
-
/* @__PURE__ */ (0,
|
|
2969
|
-
current && /* @__PURE__ */ (0,
|
|
2970
|
-
/* @__PURE__ */ (0,
|
|
2971
|
-
/* @__PURE__ */ (0,
|
|
2972
|
-
/* @__PURE__ */ (0,
|
|
3194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: `flex flex-col gap-1.5 text-xs ${className}`, "data-shot-inspector": "", children: [
|
|
3195
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3196
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "font-medium", children: "Shot" }),
|
|
3197
|
+
current && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("code", { className: "text-[10px] text-muted-foreground", children: current.id }),
|
|
3198
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "ml-auto flex gap-0.5", children: [
|
|
3199
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", { type: "button", className: btn4, disabled: readOnly, onClick: addShot, "data-add-shot": "", children: "+ Shot" }),
|
|
3200
|
+
current && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
|
|
3201
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("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" }),
|
|
3202
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("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" }),
|
|
3203
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", { type: "button", className: btn4, "aria-label": "Delete shot", disabled: readOnly, onClick: () => apply({ op: "delete_shots", shots: [current.id] }, "Delete shot"), children: "\u2715" })
|
|
2973
3204
|
] })
|
|
2974
3205
|
] })
|
|
2975
3206
|
] }),
|
|
2976
|
-
current && /* @__PURE__ */ (0,
|
|
2977
|
-
/* @__PURE__ */ (0,
|
|
2978
|
-
/* @__PURE__ */ (0,
|
|
2979
|
-
/* @__PURE__ */ (0,
|
|
2980
|
-
/* @__PURE__ */ (0,
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
2982
|
-
/* @__PURE__ */ (0,
|
|
3207
|
+
current && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "grid grid-cols-[6.5rem_1fr] items-center gap-x-2 gap-y-1", children: [
|
|
3208
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: "text-muted-foreground", children: "Label" }),
|
|
3209
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CommitInput, { className: input5, "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") }),
|
|
3210
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: "text-muted-foreground", children: "Hold" }),
|
|
3211
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3212
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CommitInput, { className: input5, 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") }),
|
|
3213
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-[10px] text-muted-foreground", children: "ms" })
|
|
2983
3214
|
] }),
|
|
2984
|
-
/* @__PURE__ */ (0,
|
|
2985
|
-
/* @__PURE__ */ (0,
|
|
2986
|
-
/* @__PURE__ */ (0,
|
|
2987
|
-
/* @__PURE__ */ (0,
|
|
3215
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: "text-muted-foreground", children: "Speed" }),
|
|
3216
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3217
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CommitInput, { className: input5, 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") }),
|
|
3218
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-[10px] text-muted-foreground", children: "\xD7" })
|
|
2988
3219
|
] }),
|
|
2989
|
-
/* @__PURE__ */ (0,
|
|
2990
|
-
/* @__PURE__ */ (0,
|
|
3220
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: "text-muted-foreground", children: "Camera" }),
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2991
3222
|
"select",
|
|
2992
3223
|
{
|
|
2993
|
-
className:
|
|
3224
|
+
className: input5,
|
|
2994
3225
|
"aria-label": "Camera frames",
|
|
2995
3226
|
disabled: readOnly,
|
|
2996
3227
|
value: current.camera && (0, import_animation_editor10.motionCameraFramed)(current.camera) ? frame ? `frame:${frame}` : "rect" : "",
|
|
@@ -3001,20 +3232,20 @@ function ShotInspector({ controller, shot, className = "" }) {
|
|
|
3001
3232
|
else if (v.startsWith("frame:")) apply({ op: "update_shot", shot: current.id, set: { camera: { ...moves, frame: v.slice(6), padding: 24 } } }, "Frame camera");
|
|
3002
3233
|
},
|
|
3003
3234
|
children: [
|
|
3004
|
-
/* @__PURE__ */ (0,
|
|
3005
|
-
current.camera && (0, import_animation_editor10.motionCameraFramed)(current.camera) && !frame && /* @__PURE__ */ (0,
|
|
3006
|
-
elements.map((e) => /* @__PURE__ */ (0,
|
|
3235
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: "", children: "keep framing" }),
|
|
3236
|
+
current.camera && (0, import_animation_editor10.motionCameraFramed)(current.camera) && !frame && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: "rect", children: "a rectangle" }),
|
|
3237
|
+
elements.map((e) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("option", { value: `frame:${e.id}`, children: [
|
|
3007
3238
|
"frame ",
|
|
3008
3239
|
e.name ?? e.id
|
|
3009
3240
|
] }, e.id))
|
|
3010
3241
|
]
|
|
3011
3242
|
}
|
|
3012
3243
|
),
|
|
3013
|
-
/* @__PURE__ */ (0,
|
|
3014
|
-
/* @__PURE__ */ (0,
|
|
3244
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: "text-muted-foreground", children: "Starts on" }),
|
|
3245
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
3015
3246
|
"select",
|
|
3016
3247
|
{
|
|
3017
|
-
className:
|
|
3248
|
+
className: input5,
|
|
3018
3249
|
"aria-label": "Cue",
|
|
3019
3250
|
disabled: readOnly || index === 0,
|
|
3020
3251
|
value: cueKey,
|
|
@@ -3023,34 +3254,36 @@ function ShotInspector({ controller, shot, className = "" }) {
|
|
|
3023
3254
|
apply(cue ? { op: "update_shot", shot: current.id, set: { at: cue } } : { op: "update_shot", shot: current.id, remove: ["at"] }, "Cue shot");
|
|
3024
3255
|
},
|
|
3025
3256
|
children: [
|
|
3026
|
-
/* @__PURE__ */ (0,
|
|
3027
|
-
cueKey && !cues.some((c) => c.value === cueKey) && /* @__PURE__ */ (0,
|
|
3028
|
-
cues.map((c) => /* @__PURE__ */ (0,
|
|
3257
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: "", children: "after the shot before" }),
|
|
3258
|
+
cueKey && !cues.some((c) => c.value === cueKey) && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: cueKey, children: cueKey }),
|
|
3259
|
+
cues.map((c) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: c.value, children: c.label }, c.value))
|
|
3029
3260
|
]
|
|
3030
3261
|
}
|
|
3031
3262
|
),
|
|
3032
|
-
!cues.length && index > 0 && /* @__PURE__ */ (0,
|
|
3263
|
+
!cues.length && index > 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("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." })
|
|
3033
3264
|
] }),
|
|
3034
|
-
current && /* @__PURE__ */ (0,
|
|
3035
|
-
|
|
3265
|
+
current && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ShotCameraMoves, { controller, shot: current.id }),
|
|
3266
|
+
current && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ShotTransition, { controller, shot: current.id }),
|
|
3267
|
+
current && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ShotLayers, { controller, shot: current.id }),
|
|
3268
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-red-500", role: "alert", "data-edit-error": "", children: message })
|
|
3036
3269
|
] });
|
|
3037
3270
|
}
|
|
3038
3271
|
|
|
3039
3272
|
// src/animation-editor/AnimationEffectsPanel.tsx
|
|
3040
|
-
var
|
|
3273
|
+
var import_react23 = require("react");
|
|
3041
3274
|
var import_animation_editor11 = require("@pixerate/editor/animation-editor");
|
|
3042
|
-
var
|
|
3275
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3043
3276
|
var btn5 = "rounded border border-border px-1.5 py-0.5 text-[11px] disabled:opacity-40";
|
|
3044
3277
|
function Controls({ controller, instance, effect, values }) {
|
|
3045
3278
|
const provider = controller.effectsProvider;
|
|
3046
3279
|
const { description, error } = useEffectDescription(provider, effect);
|
|
3047
|
-
const [message, setMessage] = (0,
|
|
3280
|
+
const [message, setMessage] = (0, import_react23.useState)(null);
|
|
3048
3281
|
const report = (r) => void r.then((x) => setMessage(x.ok ? null : x.error));
|
|
3049
|
-
if (!provider) return /* @__PURE__ */ (0,
|
|
3050
|
-
if (error) return /* @__PURE__ */ (0,
|
|
3051
|
-
if (!description) return /* @__PURE__ */ (0,
|
|
3052
|
-
return /* @__PURE__ */ (0,
|
|
3053
|
-
/* @__PURE__ */ (0,
|
|
3282
|
+
if (!provider) return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider: its commands are kept as they are." });
|
|
3283
|
+
if (error) return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-amber-500", children: error });
|
|
3284
|
+
if (!description) return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "Loading\u2026" });
|
|
3285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
3286
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3054
3287
|
EffectParameters,
|
|
3055
3288
|
{
|
|
3056
3289
|
description,
|
|
@@ -3060,60 +3293,60 @@ function Controls({ controller, instance, effect, values }) {
|
|
|
3060
3293
|
onPreset: (v) => report(controller.updateMotionEffect(instance, v))
|
|
3061
3294
|
}
|
|
3062
3295
|
),
|
|
3063
|
-
message && /* @__PURE__ */ (0,
|
|
3296
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { role: "alert", className: "text-[11px] text-destructive", children: message })
|
|
3064
3297
|
] });
|
|
3065
3298
|
}
|
|
3066
3299
|
function AnimationEffectsPanel({ controller, node, className = "" }) {
|
|
3067
3300
|
const state = useAnimationEditorState(controller);
|
|
3068
3301
|
const provider = state.effectsProvider;
|
|
3069
|
-
const nodes = (0,
|
|
3070
|
-
const [chosen, setChosen] = (0,
|
|
3302
|
+
const nodes = (0, import_react23.useMemo)(() => [...(0, import_animation_editor11.indexMotionNodes)(state.scene.artwork.nodes).keys()], [state.scene.artwork]);
|
|
3303
|
+
const [chosen, setChosen] = (0, import_react23.useState)("");
|
|
3071
3304
|
const target = node && nodes.includes(node) ? node : chosen && nodes.includes(chosen) ? chosen : "";
|
|
3072
|
-
const [browse, setBrowse] = (0,
|
|
3073
|
-
const [open, setOpen] = (0,
|
|
3074
|
-
const [message, setMessage] = (0,
|
|
3305
|
+
const [browse, setBrowse] = (0, import_react23.useState)(null);
|
|
3306
|
+
const [open, setOpen] = (0, import_react23.useState)(null);
|
|
3307
|
+
const [message, setMessage] = (0, import_react23.useState)(null);
|
|
3075
3308
|
const report = (r) => void Promise.resolve(r).then((x) => setMessage(x.ok ? x.notes.length ? x.notes.join(" ") : null : x.error));
|
|
3076
|
-
const applied = (0,
|
|
3309
|
+
const applied = (0, import_react23.useMemo)(() => controller.appliedEffects(), [controller, state.scene]);
|
|
3077
3310
|
const disabled = state.readOnly;
|
|
3078
|
-
return /* @__PURE__ */ (0,
|
|
3079
|
-
/* @__PURE__ */ (0,
|
|
3080
|
-
/* @__PURE__ */ (0,
|
|
3081
|
-
/* @__PURE__ */ (0,
|
|
3082
|
-
/* @__PURE__ */ (0,
|
|
3083
|
-
nodes.map((id) => /* @__PURE__ */ (0,
|
|
3311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("section", { className: `flex flex-col gap-2 text-xs ${className}`, "aria-label": "Effects", "data-animation-effects": "", children: [
|
|
3312
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-wrap items-center gap-1", children: [
|
|
3313
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex-1 font-semibold", children: "Effects" }),
|
|
3314
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("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: [
|
|
3315
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: "Node\u2026" }),
|
|
3316
|
+
nodes.map((id) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: id, children: id }, id))
|
|
3084
3317
|
] }),
|
|
3085
|
-
/* @__PURE__ */ (0,
|
|
3086
|
-
/* @__PURE__ */ (0,
|
|
3318
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: btn5, disabled: disabled || !provider || !target, "aria-pressed": browse === "motion", onClick: () => setBrowse(browse === "motion" ? null : "motion"), children: "Animate\u2026" }),
|
|
3319
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: btn5, disabled: disabled || !provider, "aria-pressed": browse === "vector", onClick: () => setBrowse(browse === "vector" ? null : "vector"), children: "Vector effect\u2026" })
|
|
3087
3320
|
] }),
|
|
3088
|
-
!provider && /* @__PURE__ */ (0,
|
|
3089
|
-
browse === "motion" && /* @__PURE__ */ (0,
|
|
3090
|
-
browse === "vector" && /* @__PURE__ */ (0,
|
|
3091
|
-
/* @__PURE__ */ (0,
|
|
3092
|
-
/* @__PURE__ */ (0,
|
|
3093
|
-
/* @__PURE__ */ (0,
|
|
3321
|
+
!provider && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider is registered. Commands effects made are kept." }),
|
|
3322
|
+
browse === "motion" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(EffectsBrowser, { provider, uses: ["motion"], kinds: ["motion"], title: `Motion for ${target}`, onPick: (e) => (setBrowse(null), report(controller.applyMotionEffect(e.id, [target]))) }),
|
|
3323
|
+
browse === "vector" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(EffectsBrowser, { provider, kinds: ["vector"], title: "Vector effects", onPick: (e) => (setBrowse(null), report(controller.addVectorEffect(e.id))) }),
|
|
3324
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("ol", { className: "space-y-1", children: applied.map((e) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("li", { className: "rounded border border-border p-1", "data-motion-effect": e.instance, children: [
|
|
3325
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3326
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("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: [
|
|
3094
3327
|
e.name ?? e.effect,
|
|
3095
3328
|
" ",
|
|
3096
|
-
/* @__PURE__ */ (0,
|
|
3329
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
3097
3330
|
"\xB7 ",
|
|
3098
3331
|
e.kind === "vector" ? "picture" : e.targets.join(", ")
|
|
3099
3332
|
] })
|
|
3100
3333
|
] }),
|
|
3101
|
-
/* @__PURE__ */ (0,
|
|
3334
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: btn5, disabled, "aria-label": `Remove ${e.name ?? e.effect}`, onClick: () => report(controller.removeMotionEffect(e.instance)), children: "\u2715" })
|
|
3102
3335
|
] }),
|
|
3103
|
-
open === e.instance && /* @__PURE__ */ (0,
|
|
3336
|
+
open === e.instance && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Controls, { controller, instance: e.instance, effect: e.effect, values: e.values }) })
|
|
3104
3337
|
] }, e.instance)) }),
|
|
3105
|
-
!applied.length && /* @__PURE__ */ (0,
|
|
3106
|
-
message && /* @__PURE__ */ (0,
|
|
3338
|
+
!applied.length && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No provider effects in this scene." }),
|
|
3339
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { role: "status", className: "text-[11px] text-muted-foreground", "data-effects-message": "", children: message })
|
|
3107
3340
|
] });
|
|
3108
3341
|
}
|
|
3109
3342
|
|
|
3110
3343
|
// src/animation-editor/AnimationEditor.tsx
|
|
3111
|
-
var
|
|
3344
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3112
3345
|
var ONION = { before: 3, after: 1 };
|
|
3113
3346
|
var btn6 = "rounded border border-border px-2 py-0.5 text-xs disabled:opacity-40";
|
|
3114
3347
|
function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues = true, editable = true, effects, className = "", playback, playbackId = "animation", onPlaybackReveal }) {
|
|
3115
3348
|
const state = useAnimationEditorState(controller);
|
|
3116
|
-
const rootRef = (0,
|
|
3349
|
+
const rootRef = (0, import_react24.useRef)(null);
|
|
3117
3350
|
const ambientPlayback = useAgentPlayback();
|
|
3118
3351
|
const playing = (playback === void 0 ? ambientPlayback : playback) ?? null;
|
|
3119
3352
|
const rectIn = (el) => {
|
|
@@ -3148,16 +3381,16 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
3148
3381
|
},
|
|
3149
3382
|
reveal: () => onPlaybackReveal?.()
|
|
3150
3383
|
});
|
|
3151
|
-
const presenceLayer = playing ? /* @__PURE__ */ (0,
|
|
3384
|
+
const presenceLayer = playing ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PresenceLayer, { presence: agentPresence }) : null;
|
|
3152
3385
|
useEffects(controller, effects);
|
|
3153
3386
|
const { issues, scene, selection, readOnly } = state;
|
|
3154
|
-
const [picked, setPicked] = (0,
|
|
3155
|
-
const [onion, setOnion] = (0,
|
|
3156
|
-
const [paths, setPaths] = (0,
|
|
3157
|
-
const [recordMode, setRecordMode] = (0,
|
|
3387
|
+
const [picked, setPicked] = (0, import_react24.useState)(null);
|
|
3388
|
+
const [onion, setOnion] = (0, import_react24.useState)(false);
|
|
3389
|
+
const [paths, setPaths] = (0, import_react24.useState)(false);
|
|
3390
|
+
const [recordMode, setRecordMode] = (0, import_react24.useState)("move");
|
|
3158
3391
|
const command = selection?.command !== void 0 ? scene.shots.find((s) => s.id === selection.shot)?.run[selection.command] : void 0;
|
|
3159
3392
|
const targets = command && "targets" in command ? command.targets : [];
|
|
3160
|
-
const nodes = (0,
|
|
3393
|
+
const nodes = (0, import_react24.useMemo)(() => (0, import_animation_editor12.indexMotionNodes)(scene.artwork.nodes), [scene.artwork]);
|
|
3161
3394
|
const pickedValid = picked && nodes.has(picked) ? picked : null;
|
|
3162
3395
|
const onPick = (id, event) => {
|
|
3163
3396
|
if (event.shiftKey && id && command && "targets" in command && selection?.command !== void 0 && !readOnly) {
|
|
@@ -3167,7 +3400,7 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
3167
3400
|
}
|
|
3168
3401
|
setPicked(id);
|
|
3169
3402
|
};
|
|
3170
|
-
const stage = /* @__PURE__ */ (0,
|
|
3403
|
+
const stage = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3171
3404
|
AnimationStage,
|
|
3172
3405
|
{
|
|
3173
3406
|
controller,
|
|
@@ -3180,15 +3413,15 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
3180
3413
|
className: "rounded-md border border-border bg-muted/40"
|
|
3181
3414
|
}
|
|
3182
3415
|
);
|
|
3183
|
-
const issueList = showIssues && issues.length > 0 && /* @__PURE__ */ (0,
|
|
3416
|
+
const issueList = showIssues && issues.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("ul", { className: "space-y-0.5 text-xs", "aria-label": "Animation issues", children: issues.map((issue, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", { className: issue.severity === "error" ? "text-red-500" : issue.severity === "warning" ? "text-amber-500" : "text-muted-foreground", children: (0, import_animation_editor12.motionIssueLine)(issue) }, i)) });
|
|
3184
3417
|
if (!editable)
|
|
3185
|
-
return /* @__PURE__ */ (0,
|
|
3418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { ref: rootRef, className: `relative flex flex-col gap-2 ${className}`, "data-animation-editor": "", children: [
|
|
3186
3419
|
presenceLayer,
|
|
3187
3420
|
stage,
|
|
3188
|
-
/* @__PURE__ */ (0,
|
|
3421
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PlayheadScrubber, { controller }),
|
|
3189
3422
|
issueList
|
|
3190
3423
|
] });
|
|
3191
|
-
return /* @__PURE__ */ (0,
|
|
3424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3192
3425
|
"div",
|
|
3193
3426
|
{
|
|
3194
3427
|
ref: rootRef,
|
|
@@ -3203,41 +3436,41 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
3203
3436
|
},
|
|
3204
3437
|
children: [
|
|
3205
3438
|
presenceLayer,
|
|
3206
|
-
/* @__PURE__ */ (0,
|
|
3439
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
3207
3440
|
stage,
|
|
3208
|
-
/* @__PURE__ */ (0,
|
|
3209
|
-
/* @__PURE__ */ (0,
|
|
3210
|
-
/* @__PURE__ */ (0,
|
|
3211
|
-
/* @__PURE__ */ (0,
|
|
3212
|
-
onionSkin === void 0 && /* @__PURE__ */ (0,
|
|
3213
|
-
/* @__PURE__ */ (0,
|
|
3441
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PlayheadScrubber, { controller }),
|
|
3442
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-wrap items-center gap-2 text-xs text-muted-foreground", children: [
|
|
3443
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "button", className: btn6, onClick: () => controller.undo(), disabled: !state.canUndo, title: state.canUndo ? `Undo ${state.undoLabel}` : "Nothing to undo", "data-undo": "", children: "Undo" }),
|
|
3444
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "button", className: btn6, onClick: () => controller.redo(), disabled: !state.canRedo, title: state.canRedo ? `Redo ${state.redoLabel}` : "Nothing to redo", "data-redo": "", children: "Redo" }),
|
|
3445
|
+
onionSkin === void 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "flex items-center gap-1", children: [
|
|
3446
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "checkbox", checked: onion, onChange: (e) => setOnion(e.target.checked) }),
|
|
3214
3447
|
" Onion skin"
|
|
3215
3448
|
] }),
|
|
3216
|
-
motionPaths === void 0 && /* @__PURE__ */ (0,
|
|
3217
|
-
/* @__PURE__ */ (0,
|
|
3449
|
+
motionPaths === void 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "flex items-center gap-1", children: [
|
|
3450
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "checkbox", checked: paths, onChange: (e) => setPaths(e.target.checked) }),
|
|
3218
3451
|
" Motion paths"
|
|
3219
3452
|
] }),
|
|
3220
|
-
/* @__PURE__ */ (0,
|
|
3453
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "ml-auto", "data-picked-element": pickedValid ?? void 0, children: pickedValid ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
|
|
3221
3454
|
"Picked ",
|
|
3222
|
-
/* @__PURE__ */ (0,
|
|
3455
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("code", { className: "text-rose-500", children: pickedValid }),
|
|
3223
3456
|
" ",
|
|
3224
|
-
/* @__PURE__ */ (0,
|
|
3457
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "button", className: "underline", onClick: () => setPicked(null), children: "clear" })
|
|
3225
3458
|
] }) : "Click the stage to pick an element; shift-click to toggle it as a target." })
|
|
3226
3459
|
] }),
|
|
3227
|
-
!readOnly && /* @__PURE__ */ (0,
|
|
3460
|
+
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AnimationRecordPanel, { controller, node: pickedValid, mode: recordMode, onModeChange: setRecordMode, className: "border-t border-border pt-2" }),
|
|
3228
3461
|
issueList
|
|
3229
3462
|
] }),
|
|
3230
|
-
/* @__PURE__ */ (0,
|
|
3231
|
-
/* @__PURE__ */ (0,
|
|
3232
|
-
(state.effectsProvider || controller.appliedEffects().length > 0) && /* @__PURE__ */ (0,
|
|
3233
|
-
/* @__PURE__ */ (0,
|
|
3234
|
-
/* @__PURE__ */ (0,
|
|
3235
|
-
/* @__PURE__ */ (0,
|
|
3236
|
-
/* @__PURE__ */ (0,
|
|
3463
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex min-w-0 flex-col gap-3", children: [
|
|
3464
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CommandList, { controller, targets: pickedValid ? [pickedValid] : void 0 }),
|
|
3465
|
+
(state.effectsProvider || controller.appliedEffects().length > 0) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AnimationEffectsPanel, { controller, node: pickedValid, className: "border-t border-border pt-2" }),
|
|
3466
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CommandInspector, { controller, picked: pickedValid, className: "border-t border-border pt-2" }),
|
|
3467
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("details", { open: true, className: "border-t border-border pt-2", children: [
|
|
3468
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("summary", { className: "cursor-pointer text-xs font-medium", children: "Shot" }),
|
|
3469
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ShotInspector, { controller, className: "mt-1" })
|
|
3237
3470
|
] }),
|
|
3238
|
-
/* @__PURE__ */ (0,
|
|
3239
|
-
/* @__PURE__ */ (0,
|
|
3240
|
-
/* @__PURE__ */ (0,
|
|
3471
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("details", { className: "border-t border-border pt-2", children: [
|
|
3472
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("summary", { className: "cursor-pointer text-xs font-medium", children: "Scene settings" }),
|
|
3473
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SceneSettings, { controller, className: "mt-1" })
|
|
3241
3474
|
] })
|
|
3242
3475
|
] })
|
|
3243
3476
|
]
|
|
@@ -3257,7 +3490,9 @@ function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssue
|
|
|
3257
3490
|
SceneSettings,
|
|
3258
3491
|
ShotCameraMoves,
|
|
3259
3492
|
ShotInspector,
|
|
3493
|
+
ShotLayers,
|
|
3260
3494
|
ShotTimeline,
|
|
3495
|
+
ShotTransition,
|
|
3261
3496
|
useAnimationEditor,
|
|
3262
3497
|
useAnimationEditorController,
|
|
3263
3498
|
useAnimationEditorState,
|