@kolkrabbi/design-editor 0.29.0 → 0.30.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-CaZu6Uuz.js → BindDot-Don6fG00.js} +5 -5
- package/dist/{Timeline-BxVRu-R0.js → Timeline-BKYyRqYg.js} +2 -2
- package/dist/{TreePicker-BQYPaQv3.js → TreePicker-1_NZG8GB.js} +1 -1
- package/dist/{core-CLlanqLg.js → core-CQuP1lUU.js} +4976 -6327
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +435 -435
- package/dist/{effectCategories-DJrQJ7vg.js → effectCategories-BGIW_dEc.js} +438 -438
- package/dist/{effects-dbxBWOCp.js → effects-RqPdJrRb.js} +115 -115
- package/dist/effects.js +1 -1
- package/dist/generators-BnuRmK-x.js +11148 -0
- package/dist/generators.js +1 -1
- package/dist/{host-DBTmkJuu.js → host-BUVR9I4S.js} +1 -1
- package/dist/{host-DXizGh-A.js → host-DJ8bDKO7.js} +4 -4
- package/dist/{morphStore-DaOLa9oj.js → morphStore-B5081ohW.js} +1 -1
- package/dist/{motion-CeoqVj9I.js → motion-DKZGyk14.js} +285 -285
- package/dist/motion.js +1 -1
- package/dist/{previewScale-DsG-A1ZC.js → previewScale-CA0ComGv.js} +8 -8
- package/dist/{rolls-CGma4Bua.js → rolls-CEQmdcp3.js} +865 -300
- package/dist/{src-CMdJeS6j.js → src-CzKMsyZO.js} +1 -1
- package/dist/{ColorModesWindow-D65R5YR5.js → store-D6Si8cRD.js} +407 -369
- package/dist/{useLayerEdit-CnPxtfWc.js → useLayerEdit-BF9wI5pX.js} +4 -4
- package/package.json +8 -8
- package/dist/generators-CQQxNX9W.js +0 -3200
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as p, r as m, t as h } from "./useLayerEdit-
|
|
3
|
-
import { $ as g, J as _, K as v, Q as y, X as b, Y as x, Z as S, a as
|
|
4
|
-
import { n as N, t as P } from "./TreePicker-
|
|
5
|
-
import { t as F } from "./BindDot-
|
|
1
|
+
import { F as e, J as t, L as n, Rt as r, Vn as i, a, d as o, ft as s, ht as c, n as l, o as u, t as d, u as f } from "./rolls-CEQmdcp3.js";
|
|
2
|
+
import { n as p, r as m, t as h } from "./useLayerEdit-BF9wI5pX.js";
|
|
3
|
+
import { $ as g, J as _, K as v, Q as y, X as b, Y as x, Z as S, a as ee, et as C, f as w, i as T, l as E, o as D, p as O, q as k, r as A, s as j, u as M } from "./effectCategories-BGIW_dEc.js";
|
|
4
|
+
import { n as N, t as P } from "./TreePicker-1_NZG8GB.js";
|
|
5
|
+
import { t as F } from "./BindDot-Don6fG00.js";
|
|
6
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
|
|
8
|
-
import { Fragment as
|
|
7
|
+
import { useEffect as G, useRef as te, useState as K } from "react";
|
|
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
|
-
var
|
|
10
|
+
var ne = [{
|
|
11
11
|
value: "effect",
|
|
12
12
|
label: "Effect"
|
|
13
13
|
}, {
|
|
@@ -15,21 +15,21 @@ var Y = [{
|
|
|
15
15
|
label: "Animation"
|
|
16
16
|
}];
|
|
17
17
|
function X() {
|
|
18
|
-
let { selectedId:
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
let { selectedId: e, layers: n } = t(), i = e && e !== "canvas" ? r(n, e) : null;
|
|
19
|
+
return /* @__PURE__ */ J("div", {
|
|
20
20
|
className: "kol-compose-rail kol-compose-rail--inspector",
|
|
21
|
-
children: /* @__PURE__ */
|
|
21
|
+
children: /* @__PURE__ */ J("div", {
|
|
22
22
|
className: "kol-compose-inspector-body",
|
|
23
|
-
children: i ? /* @__PURE__ */
|
|
23
|
+
children: i ? /* @__PURE__ */ J(re, { layer: i }, i.id) : /* @__PURE__ */ J(m, {
|
|
24
24
|
always: !0,
|
|
25
25
|
children: "Select a layer to edit its effect."
|
|
26
26
|
})
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function re({ layer:
|
|
31
|
-
let i =
|
|
32
|
-
if (
|
|
30
|
+
function re({ layer: r }) {
|
|
31
|
+
let i = n(), { palette: a, addFilter: o, removeFilter: l, toggleFilter: u, moveFilter: d, replaceFilter: f } = t(), m = h(r.id, { history: "coalesce" }), g = s(r), _ = g.some((e) => e.def?.kind === "engine"), { effectable: v, engineHost: y, engineLoop: b } = T(r), [x, S] = K(g.length ? 0 : null), C = x == null ? null : g[x] ?? null, [D, O] = K("effect"), k = te(g.map((e) => e.key));
|
|
32
|
+
if (G(() => {
|
|
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));
|
|
@@ -38,23 +38,23 @@ function re({ layer: e }) {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
x != null && x >= t.length && S(t.length ? t.length - 1 : null);
|
|
41
|
-
}, [g.length]), !v) return /* @__PURE__ */
|
|
41
|
+
}, [g.length]), !v) return /* @__PURE__ */ J("p", {
|
|
42
42
|
className: "kol-mono-12 text-meta",
|
|
43
43
|
children: b ? "Engine loops can't host effects yet." : "This layer can't host an effect."
|
|
44
44
|
});
|
|
45
45
|
let A = (e) => {
|
|
46
|
-
let t = y && (e == null ? !_ : g[e]?.def?.kind === "engine" || !_ && e === g.length - 1), n =
|
|
47
|
-
return
|
|
46
|
+
let t = y && (e == null ? !_ : g[e]?.def?.kind === "engine" || !_ && e === g.length - 1), n = w.filter((e) => e.kind !== "engine" || t), r = /* @__PURE__ */ new Set();
|
|
47
|
+
return ee(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
|
-
}, j = g.map(({ def: e, ...t }) => t), P =
|
|
55
|
-
...
|
|
56
|
-
...
|
|
57
|
-
id:
|
|
54
|
+
}, j = g.map(({ def: e, ...t }) => t), P = C ? {
|
|
55
|
+
...r,
|
|
56
|
+
...C.params,
|
|
57
|
+
id: r.id
|
|
58
58
|
} : null, I = (e) => {
|
|
59
59
|
if (x == null) return;
|
|
60
60
|
let t = j.map((t, n) => n === x ? {
|
|
@@ -71,48 +71,48 @@ function re({ layer: e }) {
|
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
73
|
I({ [e]: t });
|
|
74
|
-
}, z = (e) => R("sweeps", e), H = (e) => /* @__PURE__ */
|
|
74
|
+
}, z = (e) => R("sweeps", e), H = (e) => /* @__PURE__ */ J(F, {
|
|
75
75
|
layer: P,
|
|
76
76
|
param: e,
|
|
77
77
|
setProp: R
|
|
78
|
-
}), U =
|
|
79
|
-
return /* @__PURE__ */
|
|
78
|
+
}), U = C?.def ? E(C.def.id) : null, W = U ? C.def.params.find((e) => e.key === U) : null, X = C?.def ? C.def.params.filter((e) => c(e) !== "anim" && e !== W) : [];
|
|
79
|
+
return /* @__PURE__ */ Y("div", {
|
|
80
80
|
className: "flex flex-col gap-4",
|
|
81
|
-
children: [g.map((
|
|
81
|
+
children: [g.map((t, n) => /* @__PURE__ */ Y("div", {
|
|
82
82
|
className: "flex flex-col gap-3",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
84
|
-
stage:
|
|
85
|
-
selected:
|
|
86
|
-
options: A(
|
|
87
|
-
onSelect: () => S(
|
|
88
|
-
onPick: (
|
|
89
|
-
|
|
83
|
+
children: [/* @__PURE__ */ J(ie, {
|
|
84
|
+
stage: t,
|
|
85
|
+
selected: n === x,
|
|
86
|
+
options: A(n),
|
|
87
|
+
onSelect: () => S(n),
|
|
88
|
+
onPick: (e) => {
|
|
89
|
+
e && e !== t.id && f(r.id, n, e), S(n);
|
|
90
90
|
},
|
|
91
|
-
onToggle: () =>
|
|
92
|
-
onRemove: () =>
|
|
93
|
-
onUp: () => d(
|
|
94
|
-
onDown: () => d(
|
|
95
|
-
canUp:
|
|
96
|
-
canDown:
|
|
97
|
-
}),
|
|
91
|
+
onToggle: () => u(r.id, n),
|
|
92
|
+
onRemove: () => l(r.id, n),
|
|
93
|
+
onUp: () => d(r.id, n, n - 1),
|
|
94
|
+
onDown: () => d(r.id, n, n + 1),
|
|
95
|
+
canUp: n > 0 && t.def?.kind !== "engine",
|
|
96
|
+
canDown: n < g.length - 1 && t.def?.kind !== "engine" && g[n + 1]?.def?.kind !== "engine"
|
|
97
|
+
}), n === x && C?.def && /* @__PURE__ */ Y("div", {
|
|
98
98
|
className: "flex flex-col gap-3",
|
|
99
99
|
children: [
|
|
100
|
-
W && /* @__PURE__ */
|
|
100
|
+
W && /* @__PURE__ */ J(N, {
|
|
101
101
|
label: "Preset",
|
|
102
102
|
options: W.options,
|
|
103
|
-
value:
|
|
104
|
-
onChange: (e) => I(M(
|
|
103
|
+
value: C.params[W.key] ?? W.default,
|
|
104
|
+
onChange: (e) => I(M(C.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
|
+
C.def.orbit && /* @__PURE__ */ J(V, {
|
|
112
112
|
label: "Camera drag",
|
|
113
113
|
align: "fill",
|
|
114
|
-
labelWidth:
|
|
115
|
-
children: /* @__PURE__ */
|
|
114
|
+
labelWidth: e,
|
|
115
|
+
children: /* @__PURE__ */ J(B, {
|
|
116
116
|
size: i,
|
|
117
117
|
className: "w-full",
|
|
118
118
|
options: [{
|
|
@@ -122,52 +122,52 @@ function re({ layer: e }) {
|
|
|
122
122
|
value: "on",
|
|
123
123
|
label: "On"
|
|
124
124
|
}],
|
|
125
|
-
value:
|
|
125
|
+
value: r.cameraDrag ? "on" : "off",
|
|
126
126
|
onChange: (e) => R("cameraDrag", e === "on")
|
|
127
127
|
})
|
|
128
128
|
}),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ J(B, {
|
|
130
130
|
size: i,
|
|
131
131
|
className: "w-full",
|
|
132
132
|
value: D,
|
|
133
133
|
onChange: O,
|
|
134
|
-
options:
|
|
134
|
+
options: ne
|
|
135
135
|
}),
|
|
136
|
-
D === "effect" && /* @__PURE__ */
|
|
136
|
+
D === "effect" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(p, {
|
|
137
137
|
schema: X,
|
|
138
138
|
layer: P,
|
|
139
139
|
setProp: R,
|
|
140
140
|
palette: a,
|
|
141
141
|
renderAnimate: H
|
|
142
|
-
}), /* @__PURE__ */
|
|
143
|
-
def:
|
|
142
|
+
}), /* @__PURE__ */ J(Z, {
|
|
143
|
+
def: C.def,
|
|
144
144
|
view: P,
|
|
145
145
|
tab: "effect",
|
|
146
146
|
onPatch: I
|
|
147
147
|
})] }),
|
|
148
|
-
D === "anim" && /* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
schema:
|
|
148
|
+
D === "anim" && /* @__PURE__ */ Y(q, { children: [
|
|
149
|
+
/* @__PURE__ */ J(p, {
|
|
150
|
+
schema: C.def.params,
|
|
151
151
|
layer: P,
|
|
152
152
|
setProp: R,
|
|
153
153
|
palette: a,
|
|
154
154
|
renderAnimate: H,
|
|
155
155
|
tab: "anim"
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
def:
|
|
157
|
+
/* @__PURE__ */ J(Z, {
|
|
158
|
+
def: C.def,
|
|
159
159
|
view: P,
|
|
160
160
|
tab: "anim",
|
|
161
161
|
onPatch: I
|
|
162
162
|
}),
|
|
163
|
-
|
|
164
|
-
sweeps: Array.isArray(
|
|
163
|
+
C.def.sweeps && /* @__PURE__ */ J(Q, {
|
|
164
|
+
sweeps: Array.isArray(C.params.sweeps) ? C.params.sweeps : [],
|
|
165
165
|
onChange: z
|
|
166
166
|
})
|
|
167
167
|
] })
|
|
168
168
|
]
|
|
169
169
|
})]
|
|
170
|
-
},
|
|
170
|
+
}, t.key)), g.length < 8 ? /* @__PURE__ */ J(L, {
|
|
171
171
|
variant: "subtle",
|
|
172
172
|
size: i,
|
|
173
173
|
className: "w-full",
|
|
@@ -176,42 +176,42 @@ function re({ layer: e }) {
|
|
|
176
176
|
label: "Add effect…"
|
|
177
177
|
}, ...A(null)],
|
|
178
178
|
value: "",
|
|
179
|
-
onChange: (
|
|
180
|
-
|
|
179
|
+
onChange: (e) => {
|
|
180
|
+
e && o(r.id, e);
|
|
181
181
|
}
|
|
182
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ J("span", {
|
|
183
183
|
className: "kol-helper-12 text-meta",
|
|
184
184
|
children: "Chain is full (8 effects)"
|
|
185
185
|
})]
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
function Z({ def: e, view: t, tab:
|
|
189
|
-
let m =
|
|
190
|
-
e.length &&
|
|
188
|
+
function Z({ def: e, view: t, tab: r, onPatch: i, inline: s = !1, levels: p = null }) {
|
|
189
|
+
let m = n(), h = o(t), g = r === "anim", _ = e.params.filter((e) => c(e) === "anim" === g), v = g ? _.filter((e) => !e.noRandom) : l(_, t), y = f(u(_, t), v), b = (e, n) => {
|
|
190
|
+
e.length && i(a(t, e, h.take(), { stripNoRandom: !!n?.motion }));
|
|
191
191
|
}, x = (e) => {
|
|
192
192
|
let t = {};
|
|
193
193
|
for (let n of e) n.default !== void 0 && (t[n.key] = n.default);
|
|
194
|
-
Object.keys(t).length &&
|
|
194
|
+
Object.keys(t).length && i(t);
|
|
195
195
|
};
|
|
196
|
-
return !v.length && !y.length ? null : /* @__PURE__ */
|
|
196
|
+
return !v.length && !y.length ? null : /* @__PURE__ */ Y("div", {
|
|
197
197
|
className: "flex flex-col gap-2",
|
|
198
198
|
children: [
|
|
199
|
-
v.length >= 5 && /* @__PURE__ */
|
|
199
|
+
v.length >= 5 && /* @__PURE__ */ J(d, {
|
|
200
200
|
seed: h,
|
|
201
201
|
inline: s
|
|
202
202
|
}),
|
|
203
|
-
v.length > 0 && /* @__PURE__ */
|
|
203
|
+
v.length > 0 && /* @__PURE__ */ Y("div", {
|
|
204
204
|
className: "flex gap-2",
|
|
205
|
-
children: [p ?? /* @__PURE__ */
|
|
205
|
+
children: [p ?? /* @__PURE__ */ J(I, {
|
|
206
206
|
tone: "primary",
|
|
207
207
|
size: m,
|
|
208
208
|
className: "flex-1 min-w-0",
|
|
209
209
|
onClick: (e) => e.altKey ? x(v) : b(v),
|
|
210
210
|
children: g ? "Randomize motion" : "Randomize all"
|
|
211
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ J(U, {
|
|
212
212
|
label: "Reset to defaults",
|
|
213
213
|
shortcut: "R",
|
|
214
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ J(I, {
|
|
215
215
|
tone: "primary",
|
|
216
216
|
size: m,
|
|
217
217
|
iconOnly: "refresh",
|
|
@@ -221,9 +221,9 @@ function Z({ def: e, view: t, tab: n, onPatch: o, inline: s = !1, levels: p = nu
|
|
|
221
221
|
})
|
|
222
222
|
})]
|
|
223
223
|
}),
|
|
224
|
-
y.length > 0 && /* @__PURE__ */
|
|
224
|
+
y.length > 0 && /* @__PURE__ */ J("div", {
|
|
225
225
|
className: `grid ${s ? "grid-cols-3" : "grid-cols-2"} gap-2`,
|
|
226
|
-
children: y.map((e) => /* @__PURE__ */
|
|
226
|
+
children: y.map((e) => /* @__PURE__ */ J(I, {
|
|
227
227
|
tone: "primary",
|
|
228
228
|
size: m,
|
|
229
229
|
onClick: (t) => t.altKey ? x(e.params) : b(e.params, e),
|
|
@@ -233,11 +233,11 @@ function Z({ def: e, view: t, tab: n, onPatch: o, inline: s = !1, levels: p = nu
|
|
|
233
233
|
]
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
function ie({ stage: e, selected: t, options:
|
|
237
|
-
let f =
|
|
238
|
-
let a = /* @__PURE__ */
|
|
236
|
+
function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggle: o, onRemove: s, onUp: c, onDown: l, canUp: u, canDown: d }) {
|
|
237
|
+
let f = n(), p = e.enabled !== !1, m = (e, t, n, r, i = "") => {
|
|
238
|
+
let a = /* @__PURE__ */ J(U, {
|
|
239
239
|
label: e,
|
|
240
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ J(I, {
|
|
241
241
|
tone: "ghost",
|
|
242
242
|
quiet: !0,
|
|
243
243
|
size: f,
|
|
@@ -250,24 +250,24 @@ function ie({ stage: e, selected: t, options: n, onSelect: i, onPick: a, onToggl
|
|
|
250
250
|
className: `shrink-0 ${i}`
|
|
251
251
|
})
|
|
252
252
|
});
|
|
253
|
-
return n ? /* @__PURE__ */
|
|
253
|
+
return n ? /* @__PURE__ */ J("span", {
|
|
254
254
|
"aria-hidden": "true",
|
|
255
255
|
className: "invisible pointer-events-none shrink-0",
|
|
256
256
|
children: a
|
|
257
257
|
}) : a;
|
|
258
258
|
};
|
|
259
|
-
return /* @__PURE__ */
|
|
259
|
+
return /* @__PURE__ */ Y("div", {
|
|
260
260
|
onClick: i,
|
|
261
261
|
className: `flex items-center gap-1 rounded ${t ? "bg-oq-08" : ""}`,
|
|
262
262
|
children: [
|
|
263
263
|
m(p ? "Disable effect" : "Enable effect", o, !1, p ? "eye-on" : "eye-off"),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ J("div", {
|
|
265
265
|
className: `flex-1 min-w-0 ${p ? "" : "opacity-60"}`,
|
|
266
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ J(L, {
|
|
267
267
|
variant: "subtle",
|
|
268
268
|
size: f,
|
|
269
269
|
className: "w-full",
|
|
270
|
-
options:
|
|
270
|
+
options: r,
|
|
271
271
|
value: e.id,
|
|
272
272
|
onChange: a
|
|
273
273
|
})
|
|
@@ -337,15 +337,15 @@ var ae = (e) => [
|
|
|
337
337
|
default: 0
|
|
338
338
|
}] : []
|
|
339
339
|
];
|
|
340
|
-
function Q({ sweeps:
|
|
341
|
-
let a =
|
|
342
|
-
...
|
|
343
|
-
...
|
|
344
|
-
} :
|
|
345
|
-
return /* @__PURE__ */
|
|
340
|
+
function Q({ sweeps: t, onChange: r, inline: i = !1 }) {
|
|
341
|
+
let a = n(), o = (e) => _.find((t) => t.value === e)?.label ?? e, s = (e) => r([...t, e ? S(e.shape, e) : S()]), c = (e) => r(t.filter((t, n) => n !== e)), l = (e, n) => r(t.map((t, r) => r === e ? {
|
|
342
|
+
...t,
|
|
343
|
+
...n
|
|
344
|
+
} : t));
|
|
345
|
+
return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(z, {
|
|
346
346
|
label: "Motion",
|
|
347
347
|
divided: !0,
|
|
348
|
-
children: [/* @__PURE__ */
|
|
348
|
+
children: [/* @__PURE__ */ J(P, {
|
|
349
349
|
options: [{
|
|
350
350
|
value: "",
|
|
351
351
|
label: "Add motion…"
|
|
@@ -358,7 +358,7 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
358
358
|
let t = k.find((t) => t.name === e);
|
|
359
359
|
t && s(t);
|
|
360
360
|
}
|
|
361
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ J(I, {
|
|
362
362
|
tone: "primary",
|
|
363
363
|
size: a,
|
|
364
364
|
className: "w-full",
|
|
@@ -367,25 +367,25 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
367
367
|
onClick: () => s(),
|
|
368
368
|
children: "Add custom sweep"
|
|
369
369
|
})]
|
|
370
|
-
}),
|
|
371
|
-
let r =
|
|
372
|
-
return /* @__PURE__ */
|
|
370
|
+
}), t.map((t, n) => {
|
|
371
|
+
let r = t.enabled !== !1;
|
|
372
|
+
return /* @__PURE__ */ Y(z, {
|
|
373
373
|
divided: !0,
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ Y("div", {
|
|
375
375
|
className: "flex items-center gap-2",
|
|
376
376
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ J("span", {
|
|
378
378
|
className: `kol-eyebrow flex-1 truncate ${r ? "text-fg-80" : "text-meta"}`,
|
|
379
|
-
children: o(
|
|
379
|
+
children: o(t.shape ?? "linear")
|
|
380
380
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ J(H, {
|
|
382
382
|
size: a,
|
|
383
383
|
checked: r,
|
|
384
384
|
onChange: (e) => l(n, { enabled: e })
|
|
385
385
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ J(U, {
|
|
387
387
|
label: "Delete sweep",
|
|
388
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ J(I, {
|
|
389
389
|
tone: "ghost",
|
|
390
390
|
quiet: !0,
|
|
391
391
|
size: a,
|
|
@@ -396,20 +396,20 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
396
396
|
})
|
|
397
397
|
})
|
|
398
398
|
]
|
|
399
|
-
}), r && /* @__PURE__ */
|
|
400
|
-
schema: ae(
|
|
401
|
-
layer:
|
|
399
|
+
}), r && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(p, {
|
|
400
|
+
schema: ae(t),
|
|
401
|
+
layer: t,
|
|
402
402
|
setProp: (e, t) => l(n, { [e]: t }),
|
|
403
403
|
inline: i
|
|
404
|
-
}), (
|
|
404
|
+
}), (t.shape ?? "linear") !== "noise" && /* @__PURE__ */ J(R, {
|
|
405
405
|
inline: !0,
|
|
406
406
|
label: "ORIGIN",
|
|
407
|
-
labelWidth:
|
|
408
|
-
children: /* @__PURE__ */
|
|
407
|
+
labelWidth: e,
|
|
408
|
+
children: /* @__PURE__ */ J("div", {
|
|
409
409
|
className: "w-full min-w-0",
|
|
410
|
-
children: /* @__PURE__ */
|
|
411
|
-
xValue:
|
|
412
|
-
yValue:
|
|
410
|
+
children: /* @__PURE__ */ J(W, {
|
|
411
|
+
xValue: t.cx ?? .5,
|
|
412
|
+
yValue: t.cy ?? .5,
|
|
413
413
|
xMin: 0,
|
|
414
414
|
xMax: 1,
|
|
415
415
|
yMin: 1,
|
|
@@ -427,19 +427,19 @@ function Q({ sweeps: e, onChange: n, inline: i = !1 }) {
|
|
|
427
427
|
//#endregion
|
|
428
428
|
//#region src/packs/effects.js
|
|
429
429
|
var $ = {
|
|
430
|
-
FILTERS:
|
|
430
|
+
FILTERS: w,
|
|
431
431
|
filterById: O,
|
|
432
432
|
makeSweep: S,
|
|
433
433
|
runChain: g,
|
|
434
434
|
invalidateSource: y,
|
|
435
|
-
stillOf:
|
|
435
|
+
stillOf: C,
|
|
436
436
|
effectCategories: A,
|
|
437
437
|
liveFilterGroups: D,
|
|
438
438
|
liveFilterLabel: j,
|
|
439
439
|
EffectsPanel: X,
|
|
440
440
|
loadPixiPipeline: () => import("./pipeline-CMpuPUaX.js"),
|
|
441
|
-
loadGlHost: () => import("./host-
|
|
441
|
+
loadGlHost: () => import("./host-BUVR9I4S.js")
|
|
442
442
|
};
|
|
443
|
-
|
|
443
|
+
i("effects", $);
|
|
444
444
|
//#endregion
|
|
445
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-RqPdJrRb.js";
|
|
2
2
|
export { e as effects };
|