@kolkrabbi/design-editor 0.35.0 → 0.37.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.
@@ -1,10 +1,10 @@
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-Cmtx3V3O.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-DV7i_AgK.js";
4
- import { n as N, t as P } from "./TreePicker-1_NZG8GB.js";
5
- import { t as F } from "./BindDot-Don6fG00.js";
6
- import { Button as I, ButtonGroup as L, Dropdown as R, LabeledControl as z, LabeledControlSection as B, SettingsRow as V, ToggleSwitch as H, Tooltip as U, XYPad as W } from "@kolkrabbi/kol-component";
7
- import { useEffect as G, useRef as te, useState as K } from "react";
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(m, {
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: 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(() => {
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
- S(t.indexOf(n));
37
+ T(t.indexOf(n));
38
38
  return;
39
39
  }
40
- x != null && x >= t.length && S(t.length ? t.length - 1 : null);
41
- }, [g.length]), !v) return /* @__PURE__ */ J("p", {
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: b ? "Engine loops can't host effects yet." : "This layer can't host an effect."
43
+ children: C ? "Engine loops can't host effects yet." : "This layer can't host an effect."
44
44
  });
45
- let A = (e) => {
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) => {
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
- }, j = g.map(({ def: e, ...t }) => t), P = C ? {
54
+ }, F = g.map(({ def: e, ...t }) => t), I = E ? {
55
55
  ...r,
56
- ...C.params,
56
+ ...E.params,
57
57
  id: r.id
58
- } : null, I = (e) => {
59
- if (x == null) return;
60
- let t = j.map((t, n) => n === x ? {
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
- m.patch({ filters: t });
68
- }, z = (e, t) => {
67
+ h.patch({ filters: t });
68
+ }, R = (e, t) => {
69
69
  if (e === "cameraDrag") {
70
- m.setProp(e, t);
70
+ h.setProp(e, t);
71
71
  return;
72
72
  }
73
- I({ [e]: t });
74
- }, B = (e) => z("sweeps", e), H = (e) => /* @__PURE__ */ J(F, {
75
- layer: P,
73
+ L({ [e]: t });
74
+ }, z = (e) => R("sweeps", e), H = (e) => /* @__PURE__ */ J(U, {
75
+ layer: I,
76
76
  param: e,
77
- setProp: z
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) : [];
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 === x,
86
- options: A(n),
87
- onSelect: () => S(n),
85
+ selected: n === w,
86
+ options: j(n),
87
+ onSelect: () => T(n),
88
88
  onPick: (e) => {
89
- e && e !== t.id && f(r.id, n, e), S(n);
89
+ e && e !== t.id && m(r.id, n, e), T(n);
90
90
  },
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),
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 === x && C?.def && /* @__PURE__ */ Y("div", {
97
+ }), n === w && E?.def && /* @__PURE__ */ Y("div", {
98
98
  className: "flex flex-col gap-3",
99
99
  children: [
100
- W && /* @__PURE__ */ J(N, {
100
+ G && /* @__PURE__ */ J(V, {
101
101
  label: "Preset",
102
- options: W.options,
103
- value: C.params[W.key] ?? W.default,
104
- onChange: (e) => I(M(C.def, 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
- C.def.orbit && /* @__PURE__ */ J(V, {
111
+ E.def.orbit && /* @__PURE__ */ J(c, {
112
112
  label: "Camera drag",
113
113
  align: "fill",
114
114
  labelWidth: e,
115
- children: /* @__PURE__ */ J(L, {
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) => z("cameraDrag", e === "on")
127
+ onChange: (e) => R("cameraDrag", e === "on")
128
128
  })
129
129
  }),
130
- /* @__PURE__ */ J(L, {
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(p, {
138
+ D === "effect" && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(b, {
139
139
  schema: X,
140
- layer: P,
141
- setProp: z,
140
+ layer: I,
141
+ setProp: R,
142
142
  palette: a,
143
143
  renderAnimate: H
144
144
  }), /* @__PURE__ */ J(Z, {
145
- def: C.def,
146
- view: P,
145
+ def: E.def,
146
+ view: I,
147
147
  tab: "effect",
148
- onPatch: I
148
+ onPatch: L
149
149
  })] }),
150
150
  D === "anim" && /* @__PURE__ */ Y(q, { children: [
151
- /* @__PURE__ */ J(p, {
152
- schema: C.def.params,
153
- layer: P,
154
- setProp: z,
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: C.def,
161
- view: P,
160
+ def: E.def,
161
+ view: I,
162
162
  tab: "anim",
163
- onPatch: I
163
+ onPatch: L
164
164
  }),
165
- C.def.sweeps && /* @__PURE__ */ J(Q, {
166
- sweeps: Array.isArray(C.params.sweeps) ? C.params.sweeps : [],
167
- onChange: B
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(R, {
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
- }, ...A(null)],
179
+ }, ...j(null)],
180
180
  value: "",
181
181
  onChange: (e) => {
182
- e && o(r.id, 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: i, inline: s = !1, levels: p = null }) {
191
- 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) => {
192
- e.length && i(a(t, e, h.take(), { stripNoRandom: !!n?.motion }));
193
- }, x = (e) => {
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 && i(t);
196
+ Object.keys(t).length && o(t);
197
197
  };
198
- return !v.length && !y.length ? null : /* @__PURE__ */ Y("div", {
198
+ return !y.length && !b.length ? null : /* @__PURE__ */ Y("div", {
199
199
  className: "flex flex-col gap-2",
200
200
  children: [
201
- v.length >= 5 && /* @__PURE__ */ J(d, {
202
- seed: h,
201
+ y.length >= 5 && /* @__PURE__ */ J(h, {
202
+ seed: m,
203
203
  inline: s
204
204
  }),
205
- v.length > 0 && /* @__PURE__ */ Y("div", {
205
+ y.length > 0 && /* @__PURE__ */ Y("div", {
206
206
  className: "flex gap-2",
207
- children: [p ?? /* @__PURE__ */ J(I, {
207
+ children: [c ?? /* @__PURE__ */ J(u, {
208
208
  tone: "primary",
209
- size: m,
209
+ size: d,
210
210
  className: "flex-1 min-w-0",
211
- onClick: (e) => e.altKey ? x(v) : b(v),
211
+ onClick: (e) => e.altKey ? S(y) : x(y),
212
212
  children: g ? "Randomize motion" : "Randomize all"
213
- }), /* @__PURE__ */ J(U, {
213
+ }), /* @__PURE__ */ J(W, {
214
214
  label: "Reset to defaults",
215
215
  shortcut: "R",
216
- children: /* @__PURE__ */ J(I, {
216
+ children: /* @__PURE__ */ J(u, {
217
217
  tone: "primary",
218
- size: m,
218
+ size: d,
219
219
  iconOnly: "refresh",
220
220
  "aria-label": "Reset to defaults",
221
- onClick: () => x(v),
221
+ onClick: () => S(y),
222
222
  className: "shrink-0"
223
223
  })
224
224
  })]
225
225
  }),
226
- y.length > 0 && /* @__PURE__ */ J("div", {
226
+ b.length > 0 && /* @__PURE__ */ J("div", {
227
227
  className: `grid ${s ? "grid-cols-3" : "grid-cols-2"} gap-2`,
228
- children: y.map((e) => /* @__PURE__ */ J(I, {
228
+ children: b.map((e) => /* @__PURE__ */ J(u, {
229
229
  tone: "primary",
230
- size: m,
231
- onClick: (t) => t.altKey ? x(e.params) : b(e.params, e),
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: o, onRemove: s, onUp: c, onDown: l, canUp: u, canDown: d }) {
239
- let f = n(), p = e.enabled !== !1, m = (e, t, n, r, i = "") => {
240
- let a = /* @__PURE__ */ J(U, {
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(I, {
242
+ children: /* @__PURE__ */ J(u, {
243
243
  tone: "ghost",
244
244
  quiet: !0,
245
- size: f,
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
- m(p ? "Disable effect" : "Enable effect", o, !1, p ? "eye-on" : "eye-off"),
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 ${p ? "" : "opacity-60"}`,
268
- children: /* @__PURE__ */ J(R, {
267
+ className: `flex-1 min-w-0 ${h ? "" : "opacity-60"}`,
268
+ children: /* @__PURE__ */ J(o, {
269
269
  variant: "subtle",
270
- size: f,
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
- m("Move up", c, !u, "chevron-down", "rotate-180"),
278
- m("Move down", l, !d, "chevron-down"),
279
- m("Delete effect", s, !1, "x")
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: x,
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: b,
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
- ...v.has(e.shape ?? "linear") ? [{
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) => _.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 ? {
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(B, {
347
+ return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y(d, {
348
348
  label: "Motion",
349
349
  divided: !0,
350
- children: [/* @__PURE__ */ J(P, {
350
+ children: [/* @__PURE__ */ J(H, {
351
351
  options: [{
352
352
  value: "",
353
353
  label: "Add motion…"
354
- }, ...k.map((e) => ({
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 = k.find((t) => t.name === e);
360
+ let t = L.find((t) => t.name === e);
361
361
  t && s(t);
362
362
  }
363
- }), /* @__PURE__ */ J(I, {
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(B, {
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(H, {
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(U, {
388
+ /* @__PURE__ */ J(W, {
389
389
  label: "Delete sweep",
390
- children: /* @__PURE__ */ J(I, {
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(p, {
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(z, {
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(W, {
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: w,
433
- filterById: O,
434
- makeSweep: S,
435
- runChain: g,
436
- invalidateSource: y,
437
- stillOf: C,
438
- effectCategories: A,
439
- liveFilterGroups: D,
440
- liveFilterLabel: j,
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-BUVR9I4S.js")
443
+ loadGlHost: () => import("./host-C3_Oy1ck.js")
444
444
  };
445
- i("effects", $);
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-Dn4_OzYx.js";
1
+ import { t as e } from "./effects-BFAtGRPu.js";
2
2
  export { e as effects };