@kolkrabbi/design-editor 0.47.0 → 0.48.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-B85UV79g.js → BindDot-Cx-M0iQt.js} +1 -1
- package/dist/{KolboxView-n6kEPJtV.js → KolboxView-BjYfn_tl.js} +934 -934
- package/dist/{Timeline-EbecYeGh.js → Timeline-CRr43b4B.js} +3 -9
- package/dist/{TreePicker-2RUSyGl4.js → TreePicker-DXsAlHK6.js} +24 -24
- package/dist/{core-9UlJPBwX.js → core-BbKj9Svq.js} +3652 -6014
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +6 -6
- package/dist/{effectCategories-CCpYmxS0.js → effectCategories-wHY9ih8L.js} +32 -32
- package/dist/{effects-DspYFJAM.js → effects-D7J0e5xl.js} +40 -40
- package/dist/effects.js +1 -1
- package/dist/{generators-DY4_ymWh.js → generators-BtRZ3Stj.js} +608 -643
- package/dist/generators.js +1 -1
- package/dist/{host-Bo6itV50.js → host-II9SeVCH.js} +2 -2
- package/dist/kolbox-sheet.js +0 -0
- package/dist/kolbox.css +3 -0
- package/dist/{morphStore-Bm30Ekce.js → morphStore-s-rjCe-y.js} +1 -1
- package/dist/{motion-BOWE4m3Q.js → motion-CKtZAccJ.js} +28 -28
- package/dist/motion.js +1 -1
- package/dist/{rolls-DugKaHUw.js → rolls-Cnu6g8th.js} +2897 -3068
- package/dist/{src-BlvCHYVY.js → src-3UkpFoNW.js} +727 -969
- package/dist/{store-BMGP1qou.js → store-YIW6P2zN.js} +15 -15
- package/dist/{useLayerEdit-B5nF5I9b.js → useLayerEdit-W_Tf3adq.js} +91 -91
- package/package.json +14 -14
package/dist/design-editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as e, T as t } from "./__vite-browser-external-y2xWjzgx.js";
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
2
|
+
import { Nr as n } from "./rolls-Cnu6g8th.js";
|
|
3
|
+
import { A as r, D as i, E as a, M as o, N as s, O as c, P as l, S as u, T as d, _ as f, b as p, d as m, f as h, g, j as _, k as v, w as y, x as b, y as x } from "./store-YIW6P2zN.js";
|
|
4
|
+
import { i as S, n as C } from "./Timeline-CRr43b4B.js";
|
|
5
|
+
import { i as w, n as T, r as E, t as D } from "./src-3UkpFoNW.js";
|
|
6
|
+
import { M as O, N as k, a as ee, an as A, at as j, bt as M, c as N, cn as P, ct as F, d as I, dn as L, et as R, f as z, fn as B, gn as V, gt as H, i as U, it as W, l as G, ln as K, lt as q, mt as J, n as Y, nt as X, o as Z, p as Q, r as $, rn as te, rt as ne, s as re, st as ie, tt as ae, u as oe, ut as se, vn as ce, yn as le } from "./core-BbKj9Svq.js";
|
|
7
|
+
export { R as AppSettingsSections, J as BRAND, D as DesignEditor, D as default, ae as DisplaySettingsDrawer, Q as EditorProviders, se as FilesDialog, m as GeneratorLibraryProvider, E as LABS_DRAFT_KEY, h as LIBRARY_SLOT_KEYS, w as LabsView, K as MODES, T as MobileView, oe as OutputCanvas, I as OutputStage, z as OutputView, re as RAIL_EXTRA_PREFIX, ne as STYLE_OPTIONS, C as TimelineRail, b as UnauthorizedError, L as VIEW_PATHS, W as VariantContext, ie as closeFiles, H as comboLabel, Y as copyStored, B as currentView, $ as duplicateStored, u as getLibraryApi, y as inviteFromRequest, te as isMobileDevice, d as listInviteRequests, g as loadLibrary, a as mintInvite, F as openFiles, f as readLibraryRaw, n as registerPack, U as removeStored, ee as renameStored, i as requestInvite, c as setLibraryApi, O as setMediaClient, k as setMediaProxyBase, V as setMode, ce as setNavigator, N as setRailExtras, t as setSettingsStore, Z as setThumbStored, A as setWantsDesktop, M as shortcutsBySection, v as signInLibrary, r as signOutLibrary, _ as signUpLibrary, x as subscribeLibrary, S as timelineView, o as updateAccount, s as useAccount, e as useAppSettings, q as useFilesDialog, p as useGeneratorLibrary, l as useLibrarySession, G as useRailExtras, X as useSettingsSections, j as useVariant, P as wantsDesktop, le as withView };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, D as t, M as n, P as r, a as i, h as a, j as o, k as s, o as c } from "./__vite-browser-external-y2xWjzgx.js";
|
|
2
|
-
import { ar as l, cr as u, dr as d, fr as f,
|
|
3
|
-
import { a as x, i as S, o as C, s as w } from "./useLayerEdit-
|
|
4
|
-
import { o as T, u as E } from "./TreePicker-
|
|
2
|
+
import { ar as l, cr as u, dr as d, fr as f, hr as p, ir as m, lr as h, nr as g, or as _, pr as v, rr as y, ur as b } from "./rolls-Cnu6g8th.js";
|
|
3
|
+
import { a as x, i as S, o as C, s as w } from "./useLayerEdit-W_Tf3adq.js";
|
|
4
|
+
import { o as T, u as E } from "./TreePicker-DXsAlHK6.js";
|
|
5
5
|
import { useSyncExternalStore as D } from "react";
|
|
6
6
|
//#region src/loops/lib/fill.js
|
|
7
7
|
var O = [
|
|
@@ -4702,7 +4702,7 @@ var yt = 1e3, bt = /* @__PURE__ */ new Map(), xt = /* @__PURE__ */ new Set(), St
|
|
|
4702
4702
|
function Tt(e, t, n) {
|
|
4703
4703
|
if (!n) return null;
|
|
4704
4704
|
let r = wt(e, t), i = bt.get(r);
|
|
4705
|
-
if (!i) return !xt.has(r) && !St.has(r) && (xt.add(r),
|
|
4705
|
+
if (!i) return !xt.has(r) && !St.has(r) && (xt.add(r), p(e, t, !1).then((e) => {
|
|
4706
4706
|
bt.set(r, e);
|
|
4707
4707
|
}).catch(() => {
|
|
4708
4708
|
St.add(r);
|
|
@@ -28889,7 +28889,7 @@ var lm = [
|
|
|
28889
28889
|
noRandom: !0,
|
|
28890
28890
|
label: "Mode",
|
|
28891
28891
|
type: "select",
|
|
28892
|
-
options:
|
|
28892
|
+
options: f,
|
|
28893
28893
|
default: "print-press"
|
|
28894
28894
|
},
|
|
28895
28895
|
{
|
|
@@ -28953,12 +28953,12 @@ var lm = [
|
|
|
28953
28953
|
e.fillStyle = a.bg, e.fillRect(0, 0, r, i);
|
|
28954
28954
|
let o = vm(typeof a.svgSrc == "string" && a.svgSrc || mm, a.frequency) ?? vm(mm, a.frequency);
|
|
28955
28955
|
if (!o || o.error || !o.elements.length) return;
|
|
28956
|
-
let s = Math.round(a.motion), c = t * n * s, l = s * 2, u = a.seed + (l > 0 ? Math.floor(n * l) % l * 101 : 0), d = Math.max(0, a.amount), f = Math.max(1, a.frequency <= 50 ? a.frequency / 6 : 50 / 6 + (a.frequency - 50) / 8),
|
|
28957
|
-
e.save(), e.translate((r -
|
|
28958
|
-
let r = t.pts.map((e, t) =>
|
|
28959
|
-
|
|
28956
|
+
let s = Math.round(a.motion), c = t * n * s, l = s * 2, u = a.seed + (l > 0 ? Math.floor(n * l) % l * 101 : 0), d = Math.max(0, a.amount), f = Math.max(1, a.frequency <= 50 ? a.frequency / 6 : 50 / 6 + (a.frequency - 50) / 8), p = a.smoothness > 0 ? Math.max(1, Math.round(a.smoothness / 30)) : 0, [m, h, g, _] = o.vb, y = Math.min(r * a.size / g, i * a.size / _);
|
|
28957
|
+
e.save(), e.translate((r - g * y) / 2 - m * y, (i - _ * y) / 2 - h * y), e.scale(y, y), o.elements.forEach((t, n) => {
|
|
28958
|
+
let r = t.pts.map((e, t) => v(a.mode, t + n * 1e3, e.t, d, f, u, c)), i = r;
|
|
28959
|
+
p > 0 && (i = r.map((e, n) => {
|
|
28960
28960
|
let i = 0, a = 0, o = 0;
|
|
28961
|
-
for (let e = -
|
|
28961
|
+
for (let e = -p; e <= p; e++) {
|
|
28962
28962
|
let s = n + e;
|
|
28963
28963
|
if (t.closed) s = (s + r.length) % r.length;
|
|
28964
28964
|
else if (s < 0 || s >= r.length) continue;
|
|
@@ -28974,8 +28974,8 @@ var lm = [
|
|
|
28974
28974
|
y: e.y + i[t].dy
|
|
28975
28975
|
})), t.closed), s = (e) => e === "currentColor" ? a.ink : e, l = s(t.fill ?? a.ink);
|
|
28976
28976
|
l && l !== "none" && (e.fillStyle = l, e.fill(o));
|
|
28977
|
-
let
|
|
28978
|
-
|
|
28977
|
+
let m = s(t.stroke);
|
|
28978
|
+
m && m !== "none" && (e.strokeStyle = m, e.lineWidth = t.strokeWidth || 1, e.stroke(o));
|
|
28979
28979
|
}), e.restore();
|
|
28980
28980
|
}
|
|
28981
28981
|
}], xm = (e, t, n, r = {}, i) => ({
|
|
@@ -36165,11 +36165,11 @@ var jv = Object.fromEntries(eh.params.map((e) => [e.key, e.default]));
|
|
|
36165
36165
|
//#endregion
|
|
36166
36166
|
//#region src/generate/lineSwell/index.js
|
|
36167
36167
|
function Mv(e, t, n = {}, r) {
|
|
36168
|
-
let i =
|
|
36168
|
+
let i = y(e).call, a = {
|
|
36169
36169
|
...t,
|
|
36170
36170
|
...r == null ? {} : { waveT: r }
|
|
36171
36171
|
};
|
|
36172
|
-
return i.fn === "vals" ?
|
|
36172
|
+
return i.fn === "vals" ? d(a, i.name, n) : b[i.fn](a, n);
|
|
36173
36173
|
}
|
|
36174
36174
|
var Nv = (e, t) => [
|
|
36175
36175
|
e[0] * t[0] + e[2] * t[1],
|
|
@@ -36268,7 +36268,7 @@ var zv = {
|
|
|
36268
36268
|
section: "Line Swell"
|
|
36269
36269
|
})),
|
|
36270
36270
|
draw(e, t, n, r) {
|
|
36271
|
-
|
|
36271
|
+
y(t.lsForm) && Lv(e, Mv(t.lsForm, t.lsValues ?? {}, Rv(n, r, _(t.lsForm, t.lsValues ?? {}))), n);
|
|
36272
36272
|
}
|
|
36273
36273
|
}, Bv = /* @__PURE__ */ r({
|
|
36274
36274
|
body: () => Zv,
|
|
@@ -36438,7 +36438,7 @@ var ey = new Set([
|
|
|
36438
36438
|
})) } : {},
|
|
36439
36439
|
...e.unit ? { format: (t) => `${t}${e.unit === "°" ? "°" : ` ${e.unit}`}` } : {}
|
|
36440
36440
|
}), iy = (e) => e.sections.flatMap((e) => e.controls.map((t) => ry(t, e.title))), ay = (e, t) => Object.fromEntries(e.sections.flatMap((e) => e.controls.map((e) => [e.name, t[ty(e.name)]]))), oy = (e) => e.split(/[,:]/)[0], sy = (e) => e ? { rings: Av([...e].pop()).map((e) => e.map(([e, t]) => [e * 5 / 7, t])) } : {}, cy = (e) => {
|
|
36441
|
-
let t =
|
|
36441
|
+
let t = u.forms[e];
|
|
36442
36442
|
if (!t.motion) return t;
|
|
36443
36443
|
let n = [...t.sections];
|
|
36444
36444
|
return n.splice(t.motion.at, 0, {
|
|
@@ -36456,7 +36456,7 @@ function dy(e) {
|
|
|
36456
36456
|
};
|
|
36457
36457
|
return {
|
|
36458
36458
|
id: ly(e),
|
|
36459
|
-
label: e === "master" ? "Swell" :
|
|
36459
|
+
label: e === "master" ? "Swell" : m({ form: e }),
|
|
36460
36460
|
group: "lineswell",
|
|
36461
36461
|
kind: "2d",
|
|
36462
36462
|
duration: 4,
|
|
@@ -36467,32 +36467,32 @@ function dy(e) {
|
|
|
36467
36467
|
kind: "form"
|
|
36468
36468
|
},
|
|
36469
36469
|
draw(n, r, a, o, s) {
|
|
36470
|
-
let c = ay(t, s),
|
|
36470
|
+
let c = ay(t, s), l = c.motion && c.motion !== "off", u = e === "master" && c.source === "wave" || l, { ink: d, ground: f } = g(e, c), p = JSON.stringify([
|
|
36471
36471
|
a,
|
|
36472
36472
|
o,
|
|
36473
|
-
|
|
36473
|
+
u ? r : 0,
|
|
36474
36474
|
c
|
|
36475
36475
|
]);
|
|
36476
|
-
if (
|
|
36476
|
+
if (p !== i.key) {
|
|
36477
36477
|
let t = String(c.letter || (c.shape === "letter" ? "R" : "")).trim(), n = Mv(e, {
|
|
36478
36478
|
...c,
|
|
36479
|
-
...
|
|
36480
|
-
}, sy(t), e === "master" && c.source === "wave" ? r : void 0), s = Math.min(a, o) / 800,
|
|
36479
|
+
...l ? { motionT: r } : {}
|
|
36480
|
+
}, sy(t), e === "master" && c.source === "wave" ? r : void 0), s = Math.min(a, o) / 800, u = Pv(n.rot), d = new Path2D();
|
|
36481
36481
|
for (let e of [
|
|
36482
36482
|
...Fv(n.d),
|
|
36483
36483
|
...Fv(n.d2),
|
|
36484
36484
|
...Fv(n.dh),
|
|
36485
36485
|
...Fv(n.d3)
|
|
36486
36486
|
]) e.forEach(([e, t], n) => {
|
|
36487
|
-
let r = a / 2 + (
|
|
36487
|
+
let r = a / 2 + (u[0] * e + u[2] * t + u[4] - 600) * s, i = o / 2 + (u[1] * e + u[3] * t + u[5] - 400) * s;
|
|
36488
36488
|
n ? d.lineTo(r, i) : d.moveTo(r, i);
|
|
36489
36489
|
}), d.closePath();
|
|
36490
36490
|
i = {
|
|
36491
|
-
key:
|
|
36491
|
+
key: p,
|
|
36492
36492
|
path: d
|
|
36493
36493
|
};
|
|
36494
36494
|
}
|
|
36495
|
-
n.fillStyle =
|
|
36495
|
+
n.fillStyle = f, n.fillRect(0, 0, a, o), n.fillStyle = d, n.fill(i.path, "evenodd");
|
|
36496
36496
|
}
|
|
36497
36497
|
};
|
|
36498
36498
|
}
|
|
@@ -36521,10 +36521,10 @@ function hy(e, t, n) {
|
|
|
36521
36521
|
} : t;
|
|
36522
36522
|
return Bv[r](i, n);
|
|
36523
36523
|
}
|
|
36524
|
-
return r === "keys" ?
|
|
36524
|
+
return r === "keys" ? h(t, n, sy(t.letter ? String(t.letter).trim() : "")) : b[r](t, n);
|
|
36525
36525
|
}
|
|
36526
36526
|
function gy(e) {
|
|
36527
|
-
let t =
|
|
36527
|
+
let t = u.loops[e], n = iy(t), { w: r, h: i } = t.frame, a = {
|
|
36528
36528
|
key: "",
|
|
36529
36529
|
v: null
|
|
36530
36530
|
};
|
|
@@ -36551,12 +36551,12 @@ function gy(e) {
|
|
|
36551
36551
|
}
|
|
36552
36552
|
};
|
|
36553
36553
|
}
|
|
36554
|
-
var _y = Object.keys(
|
|
36554
|
+
var _y = Object.keys(u.forms), vy = Object.keys(u.loops), yy = [..._y.map(dy), ...vy.map(gy)], by = {
|
|
36555
36555
|
blinds: "Presets",
|
|
36556
36556
|
master: "Master"
|
|
36557
36557
|
}, xy = (e) => ({
|
|
36558
36558
|
id: `lineswell-board-${e}`,
|
|
36559
|
-
label: e === "master" ? "Swell" :
|
|
36559
|
+
label: e === "master" ? "Swell" : m({ form: e }),
|
|
36560
36560
|
loop: ly(e),
|
|
36561
36561
|
sub: by[e] ?? "Line Effects",
|
|
36562
36562
|
params: {}
|
|
@@ -36569,7 +36569,7 @@ var _y = Object.keys(d.forms), vy = Object.keys(d.loops), yy = [..._y.map(dy), .
|
|
|
36569
36569
|
"Wave shapes"
|
|
36570
36570
|
], Cy = [
|
|
36571
36571
|
..._y.map(xy),
|
|
36572
|
-
..._y.flatMap((e) =>
|
|
36572
|
+
..._y.flatMap((e) => l(e).map((t) => ({
|
|
36573
36573
|
id: `lineswell-${t.id}`,
|
|
36574
36574
|
label: t.label,
|
|
36575
36575
|
loop: ly(e),
|
|
@@ -36578,9 +36578,9 @@ var _y = Object.keys(d.forms), vy = Object.keys(d.loops), yy = [..._y.map(dy), .
|
|
|
36578
36578
|
}))),
|
|
36579
36579
|
...vy.map((e) => ({
|
|
36580
36580
|
id: `lineswell-board-${e}`,
|
|
36581
|
-
label: oy(
|
|
36581
|
+
label: oy(u.loops[e].title),
|
|
36582
36582
|
loop: uy(e),
|
|
36583
|
-
sub:
|
|
36583
|
+
sub: u.loops[e].page,
|
|
36584
36584
|
params: {}
|
|
36585
36585
|
}))
|
|
36586
36586
|
].sort((e, t) => Sy.indexOf(e.sub) - Sy.indexOf(t.sub)), wy = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $t as e, F as t, Gn as n,
|
|
2
|
-
import { n as b, r as x, t as S } from "./useLayerEdit-
|
|
3
|
-
import { a as C, at as w, ct as T, f as E, i as D, it as O, l as k, lt as A, nt as j, o as M, ot as N, p as P, r as F, rt as I, s as L, st as R, tt as z, u as B } from "./effectCategories-
|
|
4
|
-
import { n as ee, t as V } from "./TreePicker-
|
|
5
|
-
import { t as H } from "./BindDot-
|
|
1
|
+
import { $t as e, F as t, Gn as n, J as r, Kn as i, L as a, Nr as o, Xn as s, Xt as c, Yn as l, Zn as u, a as d, d as f, er as p, n as m, o as h, qn as g, t as _, u as v, xn as y } from "./rolls-Cnu6g8th.js";
|
|
2
|
+
import { n as b, r as x, t as S } from "./useLayerEdit-W_Tf3adq.js";
|
|
3
|
+
import { a as C, at as w, ct as T, f as E, i as D, it as O, l as k, lt as A, nt as j, o as M, ot as N, p as P, r as F, rt as I, s as L, st as R, tt as z, u as B } from "./effectCategories-wHY9ih8L.js";
|
|
4
|
+
import { n as ee, t as V } from "./TreePicker-DXsAlHK6.js";
|
|
5
|
+
import { t as H } from "./BindDot-Cx-M0iQt.js";
|
|
6
6
|
import { Tooltip as U, XYPad as W } from "@kolkrabbi/kol-component";
|
|
7
7
|
import { useEffect as te, useRef as ne, useState as G } from "react";
|
|
8
8
|
import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
@@ -15,7 +15,7 @@ var Y = [{
|
|
|
15
15
|
label: "Animation"
|
|
16
16
|
}];
|
|
17
17
|
function X() {
|
|
18
|
-
let { selectedId: e, layers: t } =
|
|
18
|
+
let { selectedId: e, layers: t } = r(), n = e && e !== "canvas" ? y(t, e) : null;
|
|
19
19
|
return /* @__PURE__ */ q("div", {
|
|
20
20
|
className: "kol-compose-rail kol-compose-rail--inspector",
|
|
21
21
|
children: /* @__PURE__ */ q("div", {
|
|
@@ -28,7 +28,7 @@ function X() {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function re({ layer: n }) {
|
|
31
|
-
let
|
|
31
|
+
let o = a(), { palette: s, addFilter: l, removeFilter: d, toggleFilter: f, moveFilter: p, replaceFilter: m } = r(), h = S(n.id, { history: "coalesce" }), _ = c(n), v = _.some((e) => e.def?.kind === "engine"), { effectable: y, engineHost: x, engineLoop: w } = D(n), [T, O] = G(_.length ? 0 : null), A = T == null ? null : _[T] ?? null, [j, M] = G("effect"), N = ne(_.map((e) => e.key));
|
|
32
32
|
if (te(() => {
|
|
33
33
|
let e = N.current, t = _.map((e) => e.key);
|
|
34
34
|
N.current = t;
|
|
@@ -78,23 +78,23 @@ function re({ layer: n }) {
|
|
|
78
78
|
}), U = A?.def ? k(A.def.id) : null, W = U ? A.def.params.find((e) => e.key === U) : null, X = A?.def ? A.def.params.filter((t) => e(t) !== "anim" && t !== W) : [];
|
|
79
79
|
return /* @__PURE__ */ J("div", {
|
|
80
80
|
className: "flex flex-col gap-4",
|
|
81
|
-
children: [_.map((e,
|
|
81
|
+
children: [_.map((e, r) => /* @__PURE__ */ J("div", {
|
|
82
82
|
className: "flex flex-col gap-3",
|
|
83
83
|
children: [/* @__PURE__ */ q(ie, {
|
|
84
84
|
stage: e,
|
|
85
|
-
selected:
|
|
86
|
-
options: P(
|
|
87
|
-
onSelect: () => O(
|
|
85
|
+
selected: r === T,
|
|
86
|
+
options: P(r),
|
|
87
|
+
onSelect: () => O(r),
|
|
88
88
|
onPick: (t) => {
|
|
89
|
-
t && t !== e.id && m(n.id,
|
|
89
|
+
t && t !== e.id && m(n.id, r, t), O(r);
|
|
90
90
|
},
|
|
91
|
-
onToggle: () => f(n.id,
|
|
92
|
-
onRemove: () => d(n.id,
|
|
93
|
-
onUp: () => p(n.id,
|
|
94
|
-
onDown: () => p(n.id,
|
|
95
|
-
canUp:
|
|
96
|
-
canDown:
|
|
97
|
-
}),
|
|
91
|
+
onToggle: () => f(n.id, r),
|
|
92
|
+
onRemove: () => d(n.id, r),
|
|
93
|
+
onUp: () => p(n.id, r, r - 1),
|
|
94
|
+
onDown: () => p(n.id, r, r + 1),
|
|
95
|
+
canUp: r > 0 && e.def?.kind !== "engine",
|
|
96
|
+
canDown: r < _.length - 1 && e.def?.kind !== "engine" && _[r + 1]?.def?.kind !== "engine"
|
|
97
|
+
}), r === T && A?.def && /* @__PURE__ */ J("div", {
|
|
98
98
|
className: "flex flex-col gap-3",
|
|
99
99
|
children: [
|
|
100
100
|
W && /* @__PURE__ */ q(ee, {
|
|
@@ -112,9 +112,9 @@ function re({ layer: n }) {
|
|
|
112
112
|
label: "Camera drag",
|
|
113
113
|
align: "fill",
|
|
114
114
|
labelWidth: t,
|
|
115
|
-
children: /* @__PURE__ */ q(
|
|
115
|
+
children: /* @__PURE__ */ q(i, {
|
|
116
116
|
layout: "joined",
|
|
117
|
-
size:
|
|
117
|
+
size: o,
|
|
118
118
|
className: "w-full",
|
|
119
119
|
options: [{
|
|
120
120
|
value: "off",
|
|
@@ -127,9 +127,9 @@ function re({ layer: n }) {
|
|
|
127
127
|
onChange: (e) => R("cameraDrag", e === "on")
|
|
128
128
|
})
|
|
129
129
|
}),
|
|
130
|
-
/* @__PURE__ */ q(
|
|
130
|
+
/* @__PURE__ */ q(i, {
|
|
131
131
|
layout: "joined",
|
|
132
|
-
size:
|
|
132
|
+
size: o,
|
|
133
133
|
className: "w-full",
|
|
134
134
|
value: j,
|
|
135
135
|
onChange: M,
|
|
@@ -171,7 +171,7 @@ function re({ layer: n }) {
|
|
|
171
171
|
})]
|
|
172
172
|
}, e.key)), _.length < 8 ? /* @__PURE__ */ q(g, {
|
|
173
173
|
variant: "subtle",
|
|
174
|
-
size:
|
|
174
|
+
size: o,
|
|
175
175
|
className: "w-full",
|
|
176
176
|
options: [{
|
|
177
177
|
value: "",
|
|
@@ -187,13 +187,13 @@ function re({ layer: n }) {
|
|
|
187
187
|
})]
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
function Z({ def: t, view: r, tab: i, onPatch:
|
|
191
|
-
let l =
|
|
192
|
-
e.length &&
|
|
190
|
+
function Z({ def: t, view: r, tab: i, onPatch: o, inline: s = !1, levels: c = null }) {
|
|
191
|
+
let l = a(), u = f(r), p = i === "anim", g = t.params.filter((t) => e(t) === "anim" === p), y = p ? g.filter((e) => !e.noRandom) : m(g, r), b = v(h(g, r), y), x = (e, t) => {
|
|
192
|
+
e.length && o(d(r, e, u.take(), { stripNoRandom: !!t?.motion }));
|
|
193
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
198
|
return !y.length && !b.length ? null : /* @__PURE__ */ J("div", {
|
|
199
199
|
className: "flex flex-col gap-2",
|
|
@@ -235,8 +235,8 @@ function Z({ def: t, view: r, tab: i, onPatch: a, inline: s = !1, levels: c = nu
|
|
|
235
235
|
]
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function ie({ stage: e, selected: t, options: r, onSelect: i, onPick:
|
|
239
|
-
let p =
|
|
238
|
+
function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: o, onToggle: s, onRemove: c, onUp: l, onDown: u, canUp: d, canDown: f }) {
|
|
239
|
+
let p = a(), m = e.enabled !== !1, h = (e, t, r, i, a = "") => {
|
|
240
240
|
let o = /* @__PURE__ */ q(U, {
|
|
241
241
|
label: e,
|
|
242
242
|
children: /* @__PURE__ */ q(n, {
|
|
@@ -271,7 +271,7 @@ function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggl
|
|
|
271
271
|
className: "w-full",
|
|
272
272
|
options: r,
|
|
273
273
|
value: e.id,
|
|
274
|
-
onChange:
|
|
274
|
+
onChange: o
|
|
275
275
|
})
|
|
276
276
|
}),
|
|
277
277
|
h("Move up", l, !d, "chevron-down", "rotate-180"),
|
|
@@ -340,7 +340,7 @@ var ae = (e) => [
|
|
|
340
340
|
}] : []
|
|
341
341
|
];
|
|
342
342
|
function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
|
|
343
|
-
let
|
|
343
|
+
let o = a(), c = (e) => I.find((t) => t.value === e)?.label ?? e, u = (t) => r([...e, t ? N(t.shape, t) : N()]), d = (t) => r(e.filter((e, n) => n !== t)), f = (t, n) => r(e.map((e, r) => r === t ? {
|
|
344
344
|
...e,
|
|
345
345
|
...n
|
|
346
346
|
} : e));
|
|
@@ -362,7 +362,7 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
|
|
|
362
362
|
}
|
|
363
363
|
}), /* @__PURE__ */ q(n, {
|
|
364
364
|
tone: "primary",
|
|
365
|
-
size:
|
|
365
|
+
size: o,
|
|
366
366
|
className: "w-full",
|
|
367
367
|
iconLeft: "plus",
|
|
368
368
|
iconSize: 12,
|
|
@@ -370,19 +370,19 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
|
|
|
370
370
|
children: "Add custom sweep"
|
|
371
371
|
})]
|
|
372
372
|
}), e.map((e, r) => {
|
|
373
|
-
let
|
|
373
|
+
let a = e.enabled !== !1;
|
|
374
374
|
return /* @__PURE__ */ J(s, {
|
|
375
375
|
divided: !0,
|
|
376
376
|
children: [/* @__PURE__ */ J("div", {
|
|
377
377
|
className: "flex items-center gap-2",
|
|
378
378
|
children: [
|
|
379
379
|
/* @__PURE__ */ q("span", {
|
|
380
|
-
className: `kol-eyebrow flex-1 truncate ${
|
|
380
|
+
className: `kol-eyebrow flex-1 truncate ${a ? "text-fg-80" : "text-meta"}`,
|
|
381
381
|
children: c(e.shape ?? "linear")
|
|
382
382
|
}),
|
|
383
383
|
/* @__PURE__ */ q(p, {
|
|
384
|
-
size:
|
|
385
|
-
checked:
|
|
384
|
+
size: o,
|
|
385
|
+
checked: a,
|
|
386
386
|
onChange: (e) => f(r, { enabled: e })
|
|
387
387
|
}),
|
|
388
388
|
/* @__PURE__ */ q(U, {
|
|
@@ -390,7 +390,7 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
|
|
|
390
390
|
children: /* @__PURE__ */ q(n, {
|
|
391
391
|
tone: "ghost",
|
|
392
392
|
quiet: !0,
|
|
393
|
-
size:
|
|
393
|
+
size: o,
|
|
394
394
|
iconOnly: "x",
|
|
395
395
|
"aria-label": "Delete sweep",
|
|
396
396
|
className: "shrink-0",
|
|
@@ -398,7 +398,7 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
|
|
|
398
398
|
})
|
|
399
399
|
})
|
|
400
400
|
]
|
|
401
|
-
}),
|
|
401
|
+
}), a && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(b, {
|
|
402
402
|
schema: ae(e),
|
|
403
403
|
layer: e,
|
|
404
404
|
setProp: (e, t) => f(r, { [e]: t }),
|
|
@@ -442,6 +442,6 @@ var $ = {
|
|
|
442
442
|
loadPixiPipeline: () => import("./pipeline-hZsOKbHd.js"),
|
|
443
443
|
loadGlHost: () => import("./host-0qv2SCjk.js")
|
|
444
444
|
};
|
|
445
|
-
|
|
445
|
+
o("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-D7J0e5xl.js";
|
|
2
2
|
export { e as effects };
|