@kolkrabbi/design-editor 0.34.0 → 0.36.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/{BindDot-Don6fG00.js → BindDot-dBz2NUVr.js} +5 -5
- package/dist/{Timeline-Cz-W72D0.js → Timeline-BDMxiVYe.js} +31 -31
- package/dist/{TreePicker-1_NZG8GB.js → TreePicker-BawzFyzV.js} +4 -4
- package/dist/{core-BeMuE9nC.js → core-d8m3o_mg.js} +4386 -4381
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +1202 -1236
- package/dist/{effectCategories-DV7i_AgK.js → effectCategories-D1t5Vdqf.js} +696 -696
- package/dist/{effects-Dn4_OzYx.js → effects-BFAtGRPu.js} +126 -126
- package/dist/effects.js +1 -1
- package/dist/{generators-XBzHN_kX.js → generators-JkPVwcTT.js} +1173 -1172
- package/dist/generators.js +1 -1
- package/dist/{host-BUVR9I4S.js → host-C3_Oy1ck.js} +1 -1
- package/dist/{host-B4QQewPr.js → host-CsF4CKfw.js} +22 -22
- package/dist/{morphStore-B5081ohW.js → morphStore-CidzL7wV.js} +1 -1
- package/dist/{motion-Cuwxm2ic.js → motion-KvPCj1EZ.js} +534 -533
- package/dist/motion.js +1 -1
- package/dist/{previewScale-CA0ComGv.js → previewScale-BAmIBoWY.js} +1 -1
- package/dist/{rolls-CEQmdcp3.js → rolls-5hhrWX96.js} +1501 -1312
- package/dist/{src-CzKMsyZO.js → src-8EvSuuNG.js} +1 -1
- package/dist/{store-CF9s1Pb2.js → store-QnsWv-26.js} +450 -449
- package/dist/{useLayerEdit-Cmtx3V3O.js → useLayerEdit-BikuFIoi.js} +118 -119
- package/package.json +9 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as e, J as t, L as n, Rt as r,
|
|
2
|
-
import { n as
|
|
3
|
-
import { $ as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { useEffect as
|
|
1
|
+
import { F as e, J as t, L as n, Rt as r, a as i, d as a, dn as o, ft as s, hn as c, ht as l, ln as u, mn as d, n as f, o as p, pn as m, t as h, tr as g, u as _, un as v, vn as y } from "./rolls-5hhrWX96.js";
|
|
2
|
+
import { n as b, r as x, t as S } from "./useLayerEdit-BikuFIoi.js";
|
|
3
|
+
import { $ as C, J as w, K as T, Q as E, X as D, Y as O, Z as k, a as A, et as j, f as M, i as N, l as P, o as F, p as I, q as L, r as R, s as z, u as B } from "./effectCategories-D1t5Vdqf.js";
|
|
4
|
+
import { n as V, t as H } from "./TreePicker-BawzFyzV.js";
|
|
5
|
+
import { t as U } from "./BindDot-dBz2NUVr.js";
|
|
6
|
+
import { Tooltip as W, XYPad as G } from "@kolkrabbi/kol-component";
|
|
7
|
+
import { useEffect as ee, useRef as te, useState as K } from "react";
|
|
8
8
|
import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
9
9
|
//#region src/editor/compose/inspectors/EffectsPanel.jsx
|
|
10
10
|
var ne = [{
|
|
@@ -20,7 +20,7 @@ function X() {
|
|
|
20
20
|
className: "kol-compose-rail kol-compose-rail--inspector",
|
|
21
21
|
children: /* @__PURE__ */ J("div", {
|
|
22
22
|
className: "kol-compose-inspector-body",
|
|
23
|
-
children: i ? /* @__PURE__ */ J(re, { layer: i }, i.id) : /* @__PURE__ */ J(
|
|
23
|
+
children: i ? /* @__PURE__ */ J(re, { layer: i }, i.id) : /* @__PURE__ */ J(x, {
|
|
24
24
|
always: !0,
|
|
25
25
|
children: "Select a layer to edit its effect."
|
|
26
26
|
})
|
|
@@ -28,91 +28,91 @@ function X() {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function re({ layer: r }) {
|
|
31
|
-
let i = n(), { palette: a, addFilter:
|
|
32
|
-
if (
|
|
31
|
+
let i = n(), { palette: a, addFilter: u, removeFilter: d, toggleFilter: f, moveFilter: p, replaceFilter: m } = t(), h = S(r.id, { history: "coalesce" }), g = s(r), _ = g.some((e) => e.def?.kind === "engine"), { effectable: y, engineHost: x, engineLoop: C } = N(r), [w, T] = K(g.length ? 0 : null), E = w == null ? null : g[w] ?? null, [D, O] = K("effect"), k = te(g.map((e) => e.key));
|
|
32
|
+
if (ee(() => {
|
|
33
33
|
let e = k.current, t = g.map((e) => e.key);
|
|
34
34
|
k.current = t;
|
|
35
35
|
let n = t.find((t) => !e.includes(t));
|
|
36
36
|
if (n != null) {
|
|
37
|
-
|
|
37
|
+
T(t.indexOf(n));
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
}, [g.length]), !
|
|
40
|
+
w != null && w >= t.length && T(t.length ? t.length - 1 : null);
|
|
41
|
+
}, [g.length]), !y) return /* @__PURE__ */ J("p", {
|
|
42
42
|
className: "kol-mono-12 text-meta",
|
|
43
|
-
children:
|
|
43
|
+
children: C ? "Engine loops can't host effects yet." : "This layer can't host an effect."
|
|
44
44
|
});
|
|
45
|
-
let
|
|
46
|
-
let t =
|
|
47
|
-
return
|
|
45
|
+
let j = (e) => {
|
|
46
|
+
let t = x && (e == null ? !_ : g[e]?.def?.kind === "engine" || !_ && e === g.length - 1), n = M.filter((e) => e.kind !== "engine" || t), r = /* @__PURE__ */ new Set();
|
|
47
|
+
return A(n).flatMap((e) => {
|
|
48
48
|
let t = e.filters.filter((e) => !r.has(e.id) && r.add(e.id));
|
|
49
49
|
return t.length ? [{ heading: e.label }, ...t.map((e) => ({
|
|
50
50
|
value: e.id,
|
|
51
51
|
label: e.label
|
|
52
52
|
}))] : [];
|
|
53
53
|
});
|
|
54
|
-
},
|
|
54
|
+
}, F = g.map(({ def: e, ...t }) => t), I = E ? {
|
|
55
55
|
...r,
|
|
56
|
-
...
|
|
56
|
+
...E.params,
|
|
57
57
|
id: r.id
|
|
58
|
-
} : null,
|
|
59
|
-
if (
|
|
60
|
-
let t =
|
|
58
|
+
} : null, L = (e) => {
|
|
59
|
+
if (w == null) return;
|
|
60
|
+
let t = F.map((t, n) => n === w ? {
|
|
61
61
|
...t,
|
|
62
62
|
params: {
|
|
63
63
|
...t.params,
|
|
64
64
|
...e
|
|
65
65
|
}
|
|
66
66
|
} : t);
|
|
67
|
-
|
|
68
|
-
},
|
|
67
|
+
h.patch({ filters: t });
|
|
68
|
+
}, R = (e, t) => {
|
|
69
69
|
if (e === "cameraDrag") {
|
|
70
|
-
|
|
70
|
+
h.setProp(e, t);
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
layer:
|
|
73
|
+
L({ [e]: t });
|
|
74
|
+
}, z = (e) => R("sweeps", e), H = (e) => /* @__PURE__ */ J(U, {
|
|
75
|
+
layer: I,
|
|
76
76
|
param: e,
|
|
77
|
-
setProp:
|
|
78
|
-
}),
|
|
77
|
+
setProp: R
|
|
78
|
+
}), W = E?.def ? P(E.def.id) : null, G = W ? E.def.params.find((e) => e.key === W) : null, X = E?.def ? E.def.params.filter((e) => l(e) !== "anim" && e !== G) : [];
|
|
79
79
|
return /* @__PURE__ */ Y("div", {
|
|
80
80
|
className: "flex flex-col gap-4",
|
|
81
81
|
children: [g.map((t, n) => /* @__PURE__ */ Y("div", {
|
|
82
82
|
className: "flex flex-col gap-3",
|
|
83
83
|
children: [/* @__PURE__ */ J(ie, {
|
|
84
84
|
stage: t,
|
|
85
|
-
selected: n ===
|
|
86
|
-
options:
|
|
87
|
-
onSelect: () =>
|
|
85
|
+
selected: n === w,
|
|
86
|
+
options: j(n),
|
|
87
|
+
onSelect: () => T(n),
|
|
88
88
|
onPick: (e) => {
|
|
89
|
-
e && e !== t.id &&
|
|
89
|
+
e && e !== t.id && m(r.id, n, e), T(n);
|
|
90
90
|
},
|
|
91
|
-
onToggle: () =>
|
|
92
|
-
onRemove: () =>
|
|
93
|
-
onUp: () =>
|
|
94
|
-
onDown: () =>
|
|
91
|
+
onToggle: () => f(r.id, n),
|
|
92
|
+
onRemove: () => d(r.id, n),
|
|
93
|
+
onUp: () => p(r.id, n, n - 1),
|
|
94
|
+
onDown: () => p(r.id, n, n + 1),
|
|
95
95
|
canUp: n > 0 && t.def?.kind !== "engine",
|
|
96
96
|
canDown: n < g.length - 1 && t.def?.kind !== "engine" && g[n + 1]?.def?.kind !== "engine"
|
|
97
|
-
}), n ===
|
|
97
|
+
}), n === w && E?.def && /* @__PURE__ */ Y("div", {
|
|
98
98
|
className: "flex flex-col gap-3",
|
|
99
99
|
children: [
|
|
100
|
-
|
|
100
|
+
G && /* @__PURE__ */ J(V, {
|
|
101
101
|
label: "Preset",
|
|
102
|
-
options:
|
|
103
|
-
value:
|
|
104
|
-
onChange: (e) =>
|
|
102
|
+
options: G.options,
|
|
103
|
+
value: E.params[G.key] ?? G.default,
|
|
104
|
+
onChange: (e) => L(B(E.def, e)),
|
|
105
105
|
inline: !0
|
|
106
106
|
}),
|
|
107
107
|
r.imgW != null && /* @__PURE__ */ J("span", {
|
|
108
108
|
className: "kol-helper-12 text-meta",
|
|
109
109
|
children: "Filters don't apply to cropped photos."
|
|
110
110
|
}),
|
|
111
|
-
|
|
111
|
+
E.def.orbit && /* @__PURE__ */ J(c, {
|
|
112
112
|
label: "Camera drag",
|
|
113
113
|
align: "fill",
|
|
114
114
|
labelWidth: e,
|
|
115
|
-
children: /* @__PURE__ */ J(
|
|
115
|
+
children: /* @__PURE__ */ J(v, {
|
|
116
116
|
layout: "joined",
|
|
117
117
|
size: i,
|
|
118
118
|
className: "w-full",
|
|
@@ -124,10 +124,10 @@ function re({ layer: r }) {
|
|
|
124
124
|
label: "On"
|
|
125
125
|
}],
|
|
126
126
|
value: r.cameraDrag ? "on" : "off",
|
|
127
|
-
onChange: (e) =>
|
|
127
|
+
onChange: (e) => R("cameraDrag", e === "on")
|
|
128
128
|
})
|
|
129
129
|
}),
|
|
130
|
-
/* @__PURE__ */ J(
|
|
130
|
+
/* @__PURE__ */ J(v, {
|
|
131
131
|
layout: "joined",
|
|
132
132
|
size: i,
|
|
133
133
|
className: "w-full",
|
|
@@ -135,51 +135,51 @@ function re({ layer: r }) {
|
|
|
135
135
|
onChange: O,
|
|
136
136
|
options: ne
|
|
137
137
|
}),
|
|
138
|
-
D === "effect" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(
|
|
138
|
+
D === "effect" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(b, {
|
|
139
139
|
schema: X,
|
|
140
|
-
layer:
|
|
141
|
-
setProp:
|
|
140
|
+
layer: I,
|
|
141
|
+
setProp: R,
|
|
142
142
|
palette: a,
|
|
143
143
|
renderAnimate: H
|
|
144
144
|
}), /* @__PURE__ */ J(Z, {
|
|
145
|
-
def:
|
|
146
|
-
view:
|
|
145
|
+
def: E.def,
|
|
146
|
+
view: I,
|
|
147
147
|
tab: "effect",
|
|
148
|
-
onPatch:
|
|
148
|
+
onPatch: L
|
|
149
149
|
})] }),
|
|
150
150
|
D === "anim" && /* @__PURE__ */ Y(q, { children: [
|
|
151
|
-
/* @__PURE__ */ J(
|
|
152
|
-
schema:
|
|
153
|
-
layer:
|
|
154
|
-
setProp:
|
|
151
|
+
/* @__PURE__ */ J(b, {
|
|
152
|
+
schema: E.def.params,
|
|
153
|
+
layer: I,
|
|
154
|
+
setProp: R,
|
|
155
155
|
palette: a,
|
|
156
156
|
renderAnimate: H,
|
|
157
157
|
tab: "anim"
|
|
158
158
|
}),
|
|
159
159
|
/* @__PURE__ */ J(Z, {
|
|
160
|
-
def:
|
|
161
|
-
view:
|
|
160
|
+
def: E.def,
|
|
161
|
+
view: I,
|
|
162
162
|
tab: "anim",
|
|
163
|
-
onPatch:
|
|
163
|
+
onPatch: L
|
|
164
164
|
}),
|
|
165
|
-
|
|
166
|
-
sweeps: Array.isArray(
|
|
167
|
-
onChange:
|
|
165
|
+
E.def.sweeps && /* @__PURE__ */ J(Q, {
|
|
166
|
+
sweeps: Array.isArray(E.params.sweeps) ? E.params.sweeps : [],
|
|
167
|
+
onChange: z
|
|
168
168
|
})
|
|
169
169
|
] })
|
|
170
170
|
]
|
|
171
171
|
})]
|
|
172
|
-
}, t.key)), g.length < 8 ? /* @__PURE__ */ J(
|
|
172
|
+
}, t.key)), g.length < 8 ? /* @__PURE__ */ J(o, {
|
|
173
173
|
variant: "subtle",
|
|
174
174
|
size: i,
|
|
175
175
|
className: "w-full",
|
|
176
176
|
options: [{
|
|
177
177
|
value: "",
|
|
178
178
|
label: "Add effect…"
|
|
179
|
-
}, ...
|
|
179
|
+
}, ...j(null)],
|
|
180
180
|
value: "",
|
|
181
181
|
onChange: (e) => {
|
|
182
|
-
e &&
|
|
182
|
+
e && u(r.id, e);
|
|
183
183
|
}
|
|
184
184
|
}) : /* @__PURE__ */ J("span", {
|
|
185
185
|
className: "kol-helper-12 text-meta",
|
|
@@ -187,62 +187,62 @@ function re({ layer: r }) {
|
|
|
187
187
|
})]
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
function Z({ def: e, view: t, tab: r, onPatch:
|
|
191
|
-
let
|
|
192
|
-
e.length && i(
|
|
193
|
-
},
|
|
190
|
+
function Z({ def: e, view: t, tab: r, onPatch: o, inline: s = !1, levels: c = null }) {
|
|
191
|
+
let d = n(), m = a(t), g = r === "anim", v = e.params.filter((e) => l(e) === "anim" === g), y = g ? v.filter((e) => !e.noRandom) : f(v, t), b = _(p(v, t), y), x = (e, n) => {
|
|
192
|
+
e.length && o(i(t, e, m.take(), { stripNoRandom: !!n?.motion }));
|
|
193
|
+
}, S = (e) => {
|
|
194
194
|
let t = {};
|
|
195
195
|
for (let n of e) n.default !== void 0 && (t[n.key] = n.default);
|
|
196
|
-
Object.keys(t).length &&
|
|
196
|
+
Object.keys(t).length && o(t);
|
|
197
197
|
};
|
|
198
|
-
return !
|
|
198
|
+
return !y.length && !b.length ? null : /* @__PURE__ */ Y("div", {
|
|
199
199
|
className: "flex flex-col gap-2",
|
|
200
200
|
children: [
|
|
201
|
-
|
|
202
|
-
seed:
|
|
201
|
+
y.length >= 5 && /* @__PURE__ */ J(h, {
|
|
202
|
+
seed: m,
|
|
203
203
|
inline: s
|
|
204
204
|
}),
|
|
205
|
-
|
|
205
|
+
y.length > 0 && /* @__PURE__ */ Y("div", {
|
|
206
206
|
className: "flex gap-2",
|
|
207
|
-
children: [
|
|
207
|
+
children: [c ?? /* @__PURE__ */ J(u, {
|
|
208
208
|
tone: "primary",
|
|
209
|
-
size:
|
|
209
|
+
size: d,
|
|
210
210
|
className: "flex-1 min-w-0",
|
|
211
|
-
onClick: (e) => e.altKey ?
|
|
211
|
+
onClick: (e) => e.altKey ? S(y) : x(y),
|
|
212
212
|
children: g ? "Randomize motion" : "Randomize all"
|
|
213
|
-
}), /* @__PURE__ */ J(
|
|
213
|
+
}), /* @__PURE__ */ J(W, {
|
|
214
214
|
label: "Reset to defaults",
|
|
215
215
|
shortcut: "R",
|
|
216
|
-
children: /* @__PURE__ */ J(
|
|
216
|
+
children: /* @__PURE__ */ J(u, {
|
|
217
217
|
tone: "primary",
|
|
218
|
-
size:
|
|
218
|
+
size: d,
|
|
219
219
|
iconOnly: "refresh",
|
|
220
220
|
"aria-label": "Reset to defaults",
|
|
221
|
-
onClick: () =>
|
|
221
|
+
onClick: () => S(y),
|
|
222
222
|
className: "shrink-0"
|
|
223
223
|
})
|
|
224
224
|
})]
|
|
225
225
|
}),
|
|
226
|
-
|
|
226
|
+
b.length > 0 && /* @__PURE__ */ J("div", {
|
|
227
227
|
className: `grid ${s ? "grid-cols-3" : "grid-cols-2"} gap-2`,
|
|
228
|
-
children:
|
|
228
|
+
children: b.map((e) => /* @__PURE__ */ J(u, {
|
|
229
229
|
tone: "primary",
|
|
230
|
-
size:
|
|
231
|
-
onClick: (t) => t.altKey ?
|
|
230
|
+
size: d,
|
|
231
|
+
onClick: (t) => t.altKey ? S(e.params) : x(e.params, e),
|
|
232
232
|
children: e.label
|
|
233
233
|
}, e.id))
|
|
234
234
|
})
|
|
235
235
|
]
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggle:
|
|
239
|
-
let
|
|
240
|
-
let a = /* @__PURE__ */ J(
|
|
238
|
+
function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggle: s, onRemove: c, onUp: l, onDown: d, canUp: f, canDown: p }) {
|
|
239
|
+
let m = n(), h = e.enabled !== !1, g = (e, t, n, r, i = "") => {
|
|
240
|
+
let a = /* @__PURE__ */ J(W, {
|
|
241
241
|
label: e,
|
|
242
|
-
children: /* @__PURE__ */ J(
|
|
242
|
+
children: /* @__PURE__ */ J(u, {
|
|
243
243
|
tone: "ghost",
|
|
244
244
|
quiet: !0,
|
|
245
|
-
size:
|
|
245
|
+
size: m,
|
|
246
246
|
iconOnly: r,
|
|
247
247
|
"aria-label": e,
|
|
248
248
|
tabIndex: n ? -1 : void 0,
|
|
@@ -262,21 +262,21 @@ function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggl
|
|
|
262
262
|
onClick: i,
|
|
263
263
|
className: `flex items-center gap-1 rounded ${t ? "bg-oq-08" : ""}`,
|
|
264
264
|
children: [
|
|
265
|
-
|
|
265
|
+
g(h ? "Disable effect" : "Enable effect", s, !1, h ? "eye-on" : "eye-off"),
|
|
266
266
|
/* @__PURE__ */ J("div", {
|
|
267
|
-
className: `flex-1 min-w-0 ${
|
|
268
|
-
children: /* @__PURE__ */ J(
|
|
267
|
+
className: `flex-1 min-w-0 ${h ? "" : "opacity-60"}`,
|
|
268
|
+
children: /* @__PURE__ */ J(o, {
|
|
269
269
|
variant: "subtle",
|
|
270
|
-
size:
|
|
270
|
+
size: m,
|
|
271
271
|
className: "w-full",
|
|
272
272
|
options: r,
|
|
273
273
|
value: e.id,
|
|
274
274
|
onChange: a
|
|
275
275
|
})
|
|
276
276
|
}),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
g("Move up", l, !f, "chevron-down", "rotate-180"),
|
|
278
|
+
g("Move down", d, !p, "chevron-down"),
|
|
279
|
+
g("Delete effect", c, !1, "x")
|
|
280
280
|
]
|
|
281
281
|
});
|
|
282
282
|
}
|
|
@@ -285,21 +285,21 @@ var ae = (e) => [
|
|
|
285
285
|
key: "shape",
|
|
286
286
|
label: "Shape",
|
|
287
287
|
type: "select",
|
|
288
|
-
options:
|
|
288
|
+
options: w,
|
|
289
289
|
default: "linear"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
key: "target",
|
|
293
293
|
label: "Target",
|
|
294
294
|
type: "select",
|
|
295
|
-
options:
|
|
295
|
+
options: O,
|
|
296
296
|
default: "brightness"
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
299
|
key: "travel",
|
|
300
300
|
label: "Travel",
|
|
301
301
|
type: "select",
|
|
302
|
-
options:
|
|
302
|
+
options: D,
|
|
303
303
|
default: "forward"
|
|
304
304
|
},
|
|
305
305
|
...e.target === "reveal" ? [] : [{
|
|
@@ -329,7 +329,7 @@ var ae = (e) => [
|
|
|
329
329
|
step: .01,
|
|
330
330
|
default: .35
|
|
331
331
|
},
|
|
332
|
-
...
|
|
332
|
+
...T.has(e.shape ?? "linear") ? [{
|
|
333
333
|
key: "angle",
|
|
334
334
|
label: "Angle",
|
|
335
335
|
type: "range",
|
|
@@ -340,27 +340,27 @@ var ae = (e) => [
|
|
|
340
340
|
}] : []
|
|
341
341
|
];
|
|
342
342
|
function Q({ sweeps: t, onChange: r, inline: i = !1 }) {
|
|
343
|
-
let a = n(), o = (e) =>
|
|
343
|
+
let a = n(), o = (e) => w.find((t) => t.value === e)?.label ?? e, s = (e) => r([...t, e ? k(e.shape, e) : k()]), c = (e) => r(t.filter((t, n) => n !== e)), l = (e, n) => r(t.map((t, r) => r === e ? {
|
|
344
344
|
...t,
|
|
345
345
|
...n
|
|
346
346
|
} : t));
|
|
347
|
-
return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(
|
|
347
|
+
return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(d, {
|
|
348
348
|
label: "Motion",
|
|
349
349
|
divided: !0,
|
|
350
|
-
children: [/* @__PURE__ */ J(
|
|
350
|
+
children: [/* @__PURE__ */ J(H, {
|
|
351
351
|
options: [{
|
|
352
352
|
value: "",
|
|
353
353
|
label: "Add motion…"
|
|
354
|
-
}, ...
|
|
354
|
+
}, ...L.map((e) => ({
|
|
355
355
|
value: e.name,
|
|
356
356
|
label: e.name
|
|
357
357
|
}))],
|
|
358
358
|
value: "",
|
|
359
359
|
onChange: (e) => {
|
|
360
|
-
let t =
|
|
360
|
+
let t = L.find((t) => t.name === e);
|
|
361
361
|
t && s(t);
|
|
362
362
|
}
|
|
363
|
-
}), /* @__PURE__ */ J(
|
|
363
|
+
}), /* @__PURE__ */ J(u, {
|
|
364
364
|
tone: "primary",
|
|
365
365
|
size: a,
|
|
366
366
|
className: "w-full",
|
|
@@ -371,7 +371,7 @@ function Q({ sweeps: t, onChange: r, inline: i = !1 }) {
|
|
|
371
371
|
})]
|
|
372
372
|
}), t.map((t, n) => {
|
|
373
373
|
let r = t.enabled !== !1;
|
|
374
|
-
return /* @__PURE__ */ Y(
|
|
374
|
+
return /* @__PURE__ */ Y(d, {
|
|
375
375
|
divided: !0,
|
|
376
376
|
children: [/* @__PURE__ */ Y("div", {
|
|
377
377
|
className: "flex items-center gap-2",
|
|
@@ -380,14 +380,14 @@ function Q({ sweeps: t, onChange: r, inline: i = !1 }) {
|
|
|
380
380
|
className: `kol-eyebrow flex-1 truncate ${r ? "text-fg-80" : "text-meta"}`,
|
|
381
381
|
children: o(t.shape ?? "linear")
|
|
382
382
|
}),
|
|
383
|
-
/* @__PURE__ */ J(
|
|
383
|
+
/* @__PURE__ */ J(y, {
|
|
384
384
|
size: a,
|
|
385
385
|
checked: r,
|
|
386
386
|
onChange: (e) => l(n, { enabled: e })
|
|
387
387
|
}),
|
|
388
|
-
/* @__PURE__ */ J(
|
|
388
|
+
/* @__PURE__ */ J(W, {
|
|
389
389
|
label: "Delete sweep",
|
|
390
|
-
children: /* @__PURE__ */ J(
|
|
390
|
+
children: /* @__PURE__ */ J(u, {
|
|
391
391
|
tone: "ghost",
|
|
392
392
|
quiet: !0,
|
|
393
393
|
size: a,
|
|
@@ -398,18 +398,18 @@ function Q({ sweeps: t, onChange: r, inline: i = !1 }) {
|
|
|
398
398
|
})
|
|
399
399
|
})
|
|
400
400
|
]
|
|
401
|
-
}), r && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(
|
|
401
|
+
}), r && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(b, {
|
|
402
402
|
schema: ae(t),
|
|
403
403
|
layer: t,
|
|
404
404
|
setProp: (e, t) => l(n, { [e]: t }),
|
|
405
405
|
inline: i
|
|
406
|
-
}), (t.shape ?? "linear") !== "noise" && /* @__PURE__ */ J(
|
|
406
|
+
}), (t.shape ?? "linear") !== "noise" && /* @__PURE__ */ J(m, {
|
|
407
407
|
inline: !0,
|
|
408
408
|
label: "ORIGIN",
|
|
409
409
|
labelWidth: e,
|
|
410
410
|
children: /* @__PURE__ */ J("div", {
|
|
411
411
|
className: "w-full min-w-0",
|
|
412
|
-
children: /* @__PURE__ */ J(
|
|
412
|
+
children: /* @__PURE__ */ J(G, {
|
|
413
413
|
xValue: t.cx ?? .5,
|
|
414
414
|
yValue: t.cy ?? .5,
|
|
415
415
|
xMin: 0,
|
|
@@ -429,19 +429,19 @@ function Q({ sweeps: t, onChange: r, inline: i = !1 }) {
|
|
|
429
429
|
//#endregion
|
|
430
430
|
//#region src/packs/effects.js
|
|
431
431
|
var $ = {
|
|
432
|
-
FILTERS:
|
|
433
|
-
filterById:
|
|
434
|
-
makeSweep:
|
|
435
|
-
runChain:
|
|
436
|
-
invalidateSource:
|
|
437
|
-
stillOf:
|
|
438
|
-
effectCategories:
|
|
439
|
-
liveFilterGroups:
|
|
440
|
-
liveFilterLabel:
|
|
432
|
+
FILTERS: M,
|
|
433
|
+
filterById: I,
|
|
434
|
+
makeSweep: k,
|
|
435
|
+
runChain: C,
|
|
436
|
+
invalidateSource: E,
|
|
437
|
+
stillOf: j,
|
|
438
|
+
effectCategories: R,
|
|
439
|
+
liveFilterGroups: F,
|
|
440
|
+
liveFilterLabel: z,
|
|
441
441
|
EffectsPanel: X,
|
|
442
442
|
loadPixiPipeline: () => import("./pipeline-CMpuPUaX.js"),
|
|
443
|
-
loadGlHost: () => import("./host-
|
|
443
|
+
loadGlHost: () => import("./host-C3_Oy1ck.js")
|
|
444
444
|
};
|
|
445
|
-
|
|
445
|
+
g("effects", $);
|
|
446
446
|
//#endregion
|
|
447
447
|
export { Z as n, Q as r, $ as t };
|
package/dist/effects.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./effects-
|
|
1
|
+
import { t as e } from "./effects-BFAtGRPu.js";
|
|
2
2
|
export { e as effects };
|