@kolkrabbi/design-editor 0.27.0 → 0.27.1
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-CMUtpJPX.js → BindDot-CaZu6Uuz.js} +5 -5
- package/dist/{ColorModesWindow-CWhL6nfm.js → ColorModesWindow-D65R5YR5.js} +289 -359
- package/dist/Timeline-OZsY9CvR.js +910 -0
- package/dist/TreePicker-BQYPaQv3.js +166 -0
- package/dist/{core-EWu8GfXL.js → core-DP3uwW4A.js} +3263 -3861
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +1219 -795
- package/dist/{useLayerEdit-BFcZhiNX.js → effectCategories-DJrQJ7vg.js} +3683 -3931
- package/dist/{effects-DZEmfY7a.js → effects-dbxBWOCp.js} +115 -114
- package/dist/effects.js +1 -1
- package/dist/{generators-D1tFSZgG.js → generators-CQQxNX9W.js} +721 -482
- package/dist/generators.js +1 -1
- package/dist/{host-ZLJKCZ54.js → host-DBTmkJuu.js} +1 -1
- package/dist/{host-CRsCCafL.js → host-DXizGh-A.js} +36 -36
- package/dist/morphStore-DaOLa9oj.js +145 -0
- package/dist/motion-yfgCBe5u.js +4261 -0
- package/dist/motion.js +1 -1
- package/dist/{previewScale-BMkeLc6w.js → previewScale-DsG-A1ZC.js} +1 -1
- package/dist/{rolls-BGtqxVYq.js → rolls-CGma4Bua.js} +1809 -2107
- package/dist/{src-BpTckTDZ.js → src-CMdJeS6j.js} +1 -1
- package/dist/useLayerEdit-CnPxtfWc.js +453 -0
- package/package.json +7 -7
- package/dist/Timeline-BObvcdXF.js +0 -3014
- package/dist/TreePicker-nMf17QGH.js +0 -68
- package/dist/motion-C_u7tsis.js +0 -2295
|
@@ -1,117 +1,118 @@
|
|
|
1
|
-
import { Et as e, F as t, J as n, L as r,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Et as e, F as t, J as n, L as r, a as i, d as a, et as o, kn as s, n as c, o as l, rt as u, t as d, u as f } from "./rolls-CGma4Bua.js";
|
|
2
|
+
import { n as p, r as m, t as h } from "./useLayerEdit-CnPxtfWc.js";
|
|
3
|
+
import { $ as g, J as _, K as v, Q as y, X as b, Y as x, Z as S, a as C, et as w, f as T, i as ee, l as E, o as D, p as O, q as k, r as A, s as j, u as M } from "./effectCategories-DJrQJ7vg.js";
|
|
4
|
+
import { n as N, t as P } from "./TreePicker-BQYPaQv3.js";
|
|
5
|
+
import { t as F } from "./BindDot-CaZu6Uuz.js";
|
|
6
|
+
import { Button as I, Dropdown as L, LabeledControl as R, LabeledControlSection as z, SegmentedToggle as B, SettingsRow as V, ToggleSwitch as H, Tooltip as U, XYPad as W } from "@kolkrabbi/kol-component";
|
|
7
|
+
import { useEffect as te, useRef as ne, useState as G } from "react";
|
|
8
|
+
import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
8
9
|
//#region src/editor/compose/inspectors/EffectsPanel.jsx
|
|
9
|
-
var
|
|
10
|
+
var Y = [{
|
|
10
11
|
value: "effect",
|
|
11
12
|
label: "Effect"
|
|
12
13
|
}, {
|
|
13
14
|
value: "anim",
|
|
14
15
|
label: "Animation"
|
|
15
16
|
}];
|
|
16
|
-
function
|
|
17
|
+
function X() {
|
|
17
18
|
let { selectedId: t, layers: r } = n(), i = t && t !== "canvas" ? e(r, t) : null;
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ q("div", {
|
|
19
20
|
className: "kol-compose-rail kol-compose-rail--inspector",
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
+
children: /* @__PURE__ */ q("div", {
|
|
21
22
|
className: "kol-compose-inspector-body",
|
|
22
|
-
children: i ? /* @__PURE__ */
|
|
23
|
+
children: i ? /* @__PURE__ */ q(re, { layer: i }, i.id) : /* @__PURE__ */ q(m, {
|
|
23
24
|
always: !0,
|
|
24
25
|
children: "Select a layer to edit its effect."
|
|
25
26
|
})
|
|
26
27
|
})
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
let i = r(), { palette: a, addFilter:
|
|
31
|
-
if (
|
|
32
|
-
let e = k.current, t =
|
|
30
|
+
function re({ layer: e }) {
|
|
31
|
+
let i = r(), { palette: a, addFilter: s, removeFilter: c, toggleFilter: l, moveFilter: d, replaceFilter: f } = n(), m = h(e.id, { history: "coalesce" }), g = o(e), _ = g.some((e) => e.def?.kind === "engine"), { effectable: v, engineHost: y, engineLoop: b } = ee(e), [x, S] = G(g.length ? 0 : null), w = x == null ? null : g[x] ?? null, [D, O] = G("effect"), k = ne(g.map((e) => e.key));
|
|
32
|
+
if (te(() => {
|
|
33
|
+
let e = k.current, t = g.map((e) => e.key);
|
|
33
34
|
k.current = t;
|
|
34
35
|
let n = t.find((t) => !e.includes(t));
|
|
35
36
|
if (n != null) {
|
|
36
|
-
|
|
37
|
+
S(t.indexOf(n));
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
|
-
x != null && x >= t.length &&
|
|
40
|
-
}, [
|
|
40
|
+
x != null && x >= t.length && S(t.length ? t.length - 1 : null);
|
|
41
|
+
}, [g.length]), !v) return /* @__PURE__ */ q("p", {
|
|
41
42
|
className: "kol-mono-12 text-meta",
|
|
42
|
-
children:
|
|
43
|
+
children: b ? "Engine loops can't host effects yet." : "This layer can't host an effect."
|
|
43
44
|
});
|
|
44
|
-
let
|
|
45
|
-
let t =
|
|
46
|
-
return
|
|
45
|
+
let A = (e) => {
|
|
46
|
+
let t = y && (e == null ? !_ : g[e]?.def?.kind === "engine" || !_ && e === g.length - 1), n = T.filter((e) => e.kind !== "engine" || t), r = /* @__PURE__ */ new Set();
|
|
47
|
+
return C(n).flatMap((e) => {
|
|
47
48
|
let t = e.filters.filter((e) => !r.has(e.id) && r.add(e.id));
|
|
48
49
|
return t.length ? [{ heading: e.label }, ...t.map((e) => ({
|
|
49
50
|
value: e.id,
|
|
50
51
|
label: e.label
|
|
51
52
|
}))] : [];
|
|
52
53
|
});
|
|
53
|
-
},
|
|
54
|
+
}, j = g.map(({ def: e, ...t }) => t), P = w ? {
|
|
54
55
|
...e,
|
|
55
|
-
...
|
|
56
|
+
...w.params,
|
|
56
57
|
id: e.id
|
|
57
58
|
} : null, I = (e) => {
|
|
58
59
|
if (x == null) return;
|
|
59
|
-
let t =
|
|
60
|
+
let t = j.map((t, n) => n === x ? {
|
|
60
61
|
...t,
|
|
61
62
|
params: {
|
|
62
63
|
...t.params,
|
|
63
64
|
...e
|
|
64
65
|
}
|
|
65
66
|
} : t);
|
|
66
|
-
|
|
67
|
+
m.patch({ filters: t });
|
|
67
68
|
}, R = (e, t) => {
|
|
68
69
|
if (e === "cameraDrag") {
|
|
69
|
-
|
|
70
|
+
m.setProp(e, t);
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
73
|
I({ [e]: t });
|
|
73
|
-
}, z = (e) => R("sweeps", e),
|
|
74
|
+
}, z = (e) => R("sweeps", e), H = (e) => /* @__PURE__ */ q(F, {
|
|
74
75
|
layer: P,
|
|
75
76
|
param: e,
|
|
76
77
|
setProp: R
|
|
77
|
-
}),
|
|
78
|
-
return /* @__PURE__ */
|
|
78
|
+
}), U = w?.def ? E(w.def.id) : null, W = U ? w.def.params.find((e) => e.key === U) : null, X = w?.def ? w.def.params.filter((e) => u(e) !== "anim" && e !== W) : [];
|
|
79
|
+
return /* @__PURE__ */ J("div", {
|
|
79
80
|
className: "flex flex-col gap-4",
|
|
80
|
-
children: [
|
|
81
|
+
children: [g.map((n, r) => /* @__PURE__ */ J("div", {
|
|
81
82
|
className: "flex flex-col gap-3",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ q(ie, {
|
|
83
84
|
stage: n,
|
|
84
85
|
selected: r === x,
|
|
85
|
-
options:
|
|
86
|
-
onSelect: () =>
|
|
86
|
+
options: A(r),
|
|
87
|
+
onSelect: () => S(r),
|
|
87
88
|
onPick: (t) => {
|
|
88
|
-
t && t !== n.id && f(e.id, r, t),
|
|
89
|
+
t && t !== n.id && f(e.id, r, t), S(r);
|
|
89
90
|
},
|
|
90
91
|
onToggle: () => l(e.id, r),
|
|
91
92
|
onRemove: () => c(e.id, r),
|
|
92
93
|
onUp: () => d(e.id, r, r - 1),
|
|
93
94
|
onDown: () => d(e.id, r, r + 1),
|
|
94
95
|
canUp: r > 0 && n.def?.kind !== "engine",
|
|
95
|
-
canDown: r <
|
|
96
|
-
}), r === x &&
|
|
96
|
+
canDown: r < g.length - 1 && n.def?.kind !== "engine" && g[r + 1]?.def?.kind !== "engine"
|
|
97
|
+
}), r === x && w?.def && /* @__PURE__ */ J("div", {
|
|
97
98
|
className: "flex flex-col gap-3",
|
|
98
99
|
children: [
|
|
99
|
-
|
|
100
|
+
W && /* @__PURE__ */ q(N, {
|
|
100
101
|
label: "Preset",
|
|
101
|
-
options:
|
|
102
|
-
value:
|
|
103
|
-
onChange: (e) => I(
|
|
102
|
+
options: W.options,
|
|
103
|
+
value: w.params[W.key] ?? W.default,
|
|
104
|
+
onChange: (e) => I(M(w.def, e)),
|
|
104
105
|
inline: !0
|
|
105
106
|
}),
|
|
106
|
-
e.imgW != null && /* @__PURE__ */
|
|
107
|
+
e.imgW != null && /* @__PURE__ */ q("span", {
|
|
107
108
|
className: "kol-helper-12 text-meta",
|
|
108
109
|
children: "Filters don't apply to cropped photos."
|
|
109
110
|
}),
|
|
110
|
-
|
|
111
|
+
w.def.orbit && /* @__PURE__ */ q(V, {
|
|
111
112
|
label: "Camera drag",
|
|
112
113
|
align: "fill",
|
|
113
114
|
labelWidth: t,
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ q(B, {
|
|
115
116
|
size: i,
|
|
116
117
|
className: "w-full",
|
|
117
118
|
options: [{
|
|
@@ -125,92 +126,92 @@ function X({ layer: e }) {
|
|
|
125
126
|
onChange: (e) => R("cameraDrag", e === "on")
|
|
126
127
|
})
|
|
127
128
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ q(B, {
|
|
129
130
|
size: i,
|
|
130
131
|
className: "w-full",
|
|
131
|
-
value:
|
|
132
|
+
value: D,
|
|
132
133
|
onChange: O,
|
|
133
|
-
options:
|
|
134
|
+
options: Y
|
|
134
135
|
}),
|
|
135
|
-
|
|
136
|
-
schema:
|
|
136
|
+
D === "effect" && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(p, {
|
|
137
|
+
schema: X,
|
|
137
138
|
layer: P,
|
|
138
139
|
setProp: R,
|
|
139
140
|
palette: a,
|
|
140
|
-
renderAnimate:
|
|
141
|
-
}), /* @__PURE__ */
|
|
142
|
-
def:
|
|
141
|
+
renderAnimate: H
|
|
142
|
+
}), /* @__PURE__ */ q(Z, {
|
|
143
|
+
def: w.def,
|
|
143
144
|
view: P,
|
|
144
145
|
tab: "effect",
|
|
145
146
|
onPatch: I
|
|
146
147
|
})] }),
|
|
147
|
-
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
schema:
|
|
148
|
+
D === "anim" && /* @__PURE__ */ J(K, { children: [
|
|
149
|
+
/* @__PURE__ */ q(p, {
|
|
150
|
+
schema: w.def.params,
|
|
150
151
|
layer: P,
|
|
151
152
|
setProp: R,
|
|
152
153
|
palette: a,
|
|
153
|
-
renderAnimate:
|
|
154
|
+
renderAnimate: H,
|
|
154
155
|
tab: "anim"
|
|
155
156
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
def:
|
|
157
|
+
/* @__PURE__ */ q(Z, {
|
|
158
|
+
def: w.def,
|
|
158
159
|
view: P,
|
|
159
160
|
tab: "anim",
|
|
160
161
|
onPatch: I
|
|
161
162
|
}),
|
|
162
|
-
|
|
163
|
-
sweeps: Array.isArray(
|
|
163
|
+
w.def.sweeps && /* @__PURE__ */ q(Q, {
|
|
164
|
+
sweeps: Array.isArray(w.params.sweeps) ? w.params.sweeps : [],
|
|
164
165
|
onChange: z
|
|
165
166
|
})
|
|
166
167
|
] })
|
|
167
168
|
]
|
|
168
169
|
})]
|
|
169
|
-
}, n.key)),
|
|
170
|
+
}, n.key)), g.length < 8 ? /* @__PURE__ */ q(L, {
|
|
170
171
|
variant: "subtle",
|
|
171
172
|
size: i,
|
|
172
173
|
className: "w-full",
|
|
173
174
|
options: [{
|
|
174
175
|
value: "",
|
|
175
176
|
label: "Add effect…"
|
|
176
|
-
}, ...
|
|
177
|
+
}, ...A(null)],
|
|
177
178
|
value: "",
|
|
178
179
|
onChange: (t) => {
|
|
179
|
-
t &&
|
|
180
|
+
t && s(e.id, t);
|
|
180
181
|
}
|
|
181
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ q("span", {
|
|
182
183
|
className: "kol-helper-12 text-meta",
|
|
183
184
|
children: "Chain is full (8 effects)"
|
|
184
185
|
})]
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
|
-
function Z({ def: e, view: t, tab: n, onPatch:
|
|
188
|
-
let m = r(), h =
|
|
189
|
-
e.length && i(
|
|
188
|
+
function Z({ def: e, view: t, tab: n, onPatch: o, inline: s = !1, levels: p = null }) {
|
|
189
|
+
let m = r(), h = a(t), g = n === "anim", _ = e.params.filter((e) => u(e) === "anim" === g), v = g ? _.filter((e) => !e.noRandom) : c(_, t), y = f(l(_, t), v), b = (e, n) => {
|
|
190
|
+
e.length && o(i(t, e, h.take(), { stripNoRandom: !!n?.motion }));
|
|
190
191
|
}, x = (e) => {
|
|
191
192
|
let t = {};
|
|
192
193
|
for (let n of e) n.default !== void 0 && (t[n.key] = n.default);
|
|
193
|
-
Object.keys(t).length &&
|
|
194
|
+
Object.keys(t).length && o(t);
|
|
194
195
|
};
|
|
195
|
-
return !v.length && !y.length ? null : /* @__PURE__ */
|
|
196
|
+
return !v.length && !y.length ? null : /* @__PURE__ */ J("div", {
|
|
196
197
|
className: "flex flex-col gap-2",
|
|
197
198
|
children: [
|
|
198
|
-
v.length >= 5 && /* @__PURE__ */
|
|
199
|
+
v.length >= 5 && /* @__PURE__ */ q(d, {
|
|
199
200
|
seed: h,
|
|
200
201
|
inline: s
|
|
201
202
|
}),
|
|
202
|
-
v.length > 0 && /* @__PURE__ */
|
|
203
|
+
v.length > 0 && /* @__PURE__ */ J("div", {
|
|
203
204
|
className: "flex gap-2",
|
|
204
|
-
children: [p ?? /* @__PURE__ */
|
|
205
|
+
children: [p ?? /* @__PURE__ */ q(I, {
|
|
205
206
|
tone: "primary",
|
|
206
207
|
size: m,
|
|
207
208
|
className: "flex-1 min-w-0",
|
|
208
209
|
onClick: (e) => e.altKey ? x(v) : b(v),
|
|
209
210
|
children: g ? "Randomize motion" : "Randomize all"
|
|
210
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ q(U, {
|
|
211
212
|
label: "Reset to defaults",
|
|
212
213
|
shortcut: "R",
|
|
213
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ q(I, {
|
|
214
215
|
tone: "primary",
|
|
215
216
|
size: m,
|
|
216
217
|
iconOnly: "refresh",
|
|
@@ -220,9 +221,9 @@ function Z({ def: e, view: t, tab: n, onPatch: i, inline: s = !1, levels: p = nu
|
|
|
220
221
|
})
|
|
221
222
|
})]
|
|
222
223
|
}),
|
|
223
|
-
y.length > 0 && /* @__PURE__ */
|
|
224
|
+
y.length > 0 && /* @__PURE__ */ q("div", {
|
|
224
225
|
className: `grid ${s ? "grid-cols-3" : "grid-cols-2"} gap-2`,
|
|
225
|
-
children: y.map((e) => /* @__PURE__ */
|
|
226
|
+
children: y.map((e) => /* @__PURE__ */ q(I, {
|
|
226
227
|
tone: "primary",
|
|
227
228
|
size: m,
|
|
228
229
|
onClick: (t) => t.altKey ? x(e.params) : b(e.params, e),
|
|
@@ -234,9 +235,9 @@ function Z({ def: e, view: t, tab: n, onPatch: i, inline: s = !1, levels: p = nu
|
|
|
234
235
|
}
|
|
235
236
|
function ie({ stage: e, selected: t, options: n, onSelect: i, onPick: a, onToggle: o, onRemove: s, onUp: c, onDown: l, canUp: u, canDown: d }) {
|
|
236
237
|
let f = r(), p = e.enabled !== !1, m = (e, t, n, r, i = "") => {
|
|
237
|
-
let a = /* @__PURE__ */
|
|
238
|
+
let a = /* @__PURE__ */ q(U, {
|
|
238
239
|
label: e,
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ q(I, {
|
|
240
241
|
tone: "ghost",
|
|
241
242
|
quiet: !0,
|
|
242
243
|
size: f,
|
|
@@ -249,20 +250,20 @@ function ie({ stage: e, selected: t, options: n, onSelect: i, onPick: a, onToggl
|
|
|
249
250
|
className: `shrink-0 ${i}`
|
|
250
251
|
})
|
|
251
252
|
});
|
|
252
|
-
return n ? /* @__PURE__ */
|
|
253
|
+
return n ? /* @__PURE__ */ q("span", {
|
|
253
254
|
"aria-hidden": "true",
|
|
254
255
|
className: "invisible pointer-events-none shrink-0",
|
|
255
256
|
children: a
|
|
256
257
|
}) : a;
|
|
257
258
|
};
|
|
258
|
-
return /* @__PURE__ */
|
|
259
|
+
return /* @__PURE__ */ J("div", {
|
|
259
260
|
onClick: i,
|
|
260
261
|
className: `flex items-center gap-1 rounded ${t ? "bg-oq-08" : ""}`,
|
|
261
262
|
children: [
|
|
262
263
|
m(p ? "Disable effect" : "Enable effect", o, !1, p ? "eye-on" : "eye-off"),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ q("div", {
|
|
264
265
|
className: `flex-1 min-w-0 ${p ? "" : "opacity-60"}`,
|
|
265
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ q(L, {
|
|
266
267
|
variant: "subtle",
|
|
267
268
|
size: f,
|
|
268
269
|
className: "w-full",
|
|
@@ -289,14 +290,14 @@ var ae = (e) => [
|
|
|
289
290
|
key: "target",
|
|
290
291
|
label: "Target",
|
|
291
292
|
type: "select",
|
|
292
|
-
options:
|
|
293
|
+
options: x,
|
|
293
294
|
default: "brightness"
|
|
294
295
|
},
|
|
295
296
|
{
|
|
296
297
|
key: "travel",
|
|
297
298
|
label: "Travel",
|
|
298
299
|
type: "select",
|
|
299
|
-
options:
|
|
300
|
+
options: b,
|
|
300
301
|
default: "forward"
|
|
301
302
|
},
|
|
302
303
|
...e.target === "reveal" ? [] : [{
|
|
@@ -326,7 +327,7 @@ var ae = (e) => [
|
|
|
326
327
|
step: .01,
|
|
327
328
|
default: .35
|
|
328
329
|
},
|
|
329
|
-
...
|
|
330
|
+
...v.has(e.shape ?? "linear") ? [{
|
|
330
331
|
key: "angle",
|
|
331
332
|
label: "Angle",
|
|
332
333
|
type: "range",
|
|
@@ -337,27 +338,27 @@ var ae = (e) => [
|
|
|
337
338
|
}] : []
|
|
338
339
|
];
|
|
339
340
|
function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
340
|
-
let a = r(), o = (e) => _.find((t) => t.value === e)?.label ?? e, s = (t) => n([...e, t ?
|
|
341
|
+
let a = r(), o = (e) => _.find((t) => t.value === e)?.label ?? e, s = (t) => n([...e, t ? S(t.shape, t) : S()]), c = (t) => n(e.filter((e, n) => n !== t)), l = (t, r) => n(e.map((e, n) => n === t ? {
|
|
341
342
|
...e,
|
|
342
343
|
...r
|
|
343
344
|
} : e));
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ J(z, {
|
|
345
346
|
label: "Motion",
|
|
346
347
|
divided: !0,
|
|
347
|
-
children: [/* @__PURE__ */
|
|
348
|
+
children: [/* @__PURE__ */ q(P, {
|
|
348
349
|
options: [{
|
|
349
350
|
value: "",
|
|
350
351
|
label: "Add motion…"
|
|
351
|
-
}, ...
|
|
352
|
+
}, ...k.map((e) => ({
|
|
352
353
|
value: e.name,
|
|
353
354
|
label: e.name
|
|
354
355
|
}))],
|
|
355
356
|
value: "",
|
|
356
357
|
onChange: (e) => {
|
|
357
|
-
let t =
|
|
358
|
+
let t = k.find((t) => t.name === e);
|
|
358
359
|
t && s(t);
|
|
359
360
|
}
|
|
360
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ q(I, {
|
|
361
362
|
tone: "primary",
|
|
362
363
|
size: a,
|
|
363
364
|
className: "w-full",
|
|
@@ -368,23 +369,23 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
368
369
|
})]
|
|
369
370
|
}), e.map((e, n) => {
|
|
370
371
|
let r = e.enabled !== !1;
|
|
371
|
-
return /* @__PURE__ */
|
|
372
|
+
return /* @__PURE__ */ J(z, {
|
|
372
373
|
divided: !0,
|
|
373
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ J("div", {
|
|
374
375
|
className: "flex items-center gap-2",
|
|
375
376
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ q("span", {
|
|
377
378
|
className: `kol-eyebrow flex-1 truncate ${r ? "text-fg-80" : "text-meta"}`,
|
|
378
379
|
children: o(e.shape ?? "linear")
|
|
379
380
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ q(H, {
|
|
381
382
|
size: a,
|
|
382
383
|
checked: r,
|
|
383
384
|
onChange: (e) => l(n, { enabled: e })
|
|
384
385
|
}),
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ q(U, {
|
|
386
387
|
label: "Delete sweep",
|
|
387
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ q(I, {
|
|
388
389
|
tone: "ghost",
|
|
389
390
|
quiet: !0,
|
|
390
391
|
size: a,
|
|
@@ -395,18 +396,18 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
395
396
|
})
|
|
396
397
|
})
|
|
397
398
|
]
|
|
398
|
-
}), r && /* @__PURE__ */
|
|
399
|
+
}), r && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(p, {
|
|
399
400
|
schema: ae(e),
|
|
400
401
|
layer: e,
|
|
401
402
|
setProp: (e, t) => l(n, { [e]: t }),
|
|
402
403
|
inline: i
|
|
403
|
-
}), (e.shape ?? "linear") !== "noise" && /* @__PURE__ */
|
|
404
|
+
}), (e.shape ?? "linear") !== "noise" && /* @__PURE__ */ q(R, {
|
|
404
405
|
inline: !0,
|
|
405
406
|
label: "ORIGIN",
|
|
406
407
|
labelWidth: t,
|
|
407
|
-
children: /* @__PURE__ */
|
|
408
|
+
children: /* @__PURE__ */ q("div", {
|
|
408
409
|
className: "w-full min-w-0",
|
|
409
|
-
children: /* @__PURE__ */
|
|
410
|
+
children: /* @__PURE__ */ q(W, {
|
|
410
411
|
xValue: e.cx ?? .5,
|
|
411
412
|
yValue: e.cy ?? .5,
|
|
412
413
|
xMin: 0,
|
|
@@ -426,19 +427,19 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
426
427
|
//#endregion
|
|
427
428
|
//#region src/packs/effects.js
|
|
428
429
|
var $ = {
|
|
429
|
-
FILTERS:
|
|
430
|
-
filterById:
|
|
431
|
-
makeSweep:
|
|
432
|
-
runChain:
|
|
433
|
-
invalidateSource:
|
|
434
|
-
stillOf:
|
|
435
|
-
effectCategories:
|
|
436
|
-
liveFilterGroups:
|
|
437
|
-
liveFilterLabel:
|
|
438
|
-
EffectsPanel:
|
|
430
|
+
FILTERS: T,
|
|
431
|
+
filterById: O,
|
|
432
|
+
makeSweep: S,
|
|
433
|
+
runChain: g,
|
|
434
|
+
invalidateSource: y,
|
|
435
|
+
stillOf: w,
|
|
436
|
+
effectCategories: A,
|
|
437
|
+
liveFilterGroups: D,
|
|
438
|
+
liveFilterLabel: j,
|
|
439
|
+
EffectsPanel: X,
|
|
439
440
|
loadPixiPipeline: () => import("./pipeline-CMpuPUaX.js"),
|
|
440
|
-
loadGlHost: () => import("./host-
|
|
441
|
+
loadGlHost: () => import("./host-DBTmkJuu.js")
|
|
441
442
|
};
|
|
442
|
-
|
|
443
|
+
s("effects", $);
|
|
443
444
|
//#endregion
|
|
444
445
|
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-dbxBWOCp.js";
|
|
2
2
|
export { e as effects };
|