@kolkrabbi/design-editor 0.35.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.
@@ -1,2 +1,2 @@
1
- import { t as e } from "./generators-Bf08F0NV.js";
1
+ import { t as e } from "./generators-JkPVwcTT.js";
2
2
  export { e as generators };
@@ -1,4 +1,4 @@
1
- import { n as e } from "./previewScale-CA0ComGv.js";
1
+ import { n as e } from "./previewScale-BAmIBoWY.js";
2
2
  import { Dt as t, Et as n, G as r, Gt as i, Ht as a, Ut as o, Vt as s, W as c, _ as l, _t as u, a as d, et as f, f as p, gt as m, h, ht as g, m as _, p as v, t as y, v as b } from "./OrbitControls-DVpLgmKv.js";
3
3
  //#region src/filters/gl/synthBase.js
4
4
  var x = "\n varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position = vec4(position.xy, 0.0, 1.0);\n }\n", S = class {
@@ -1,7 +1,7 @@
1
- import { dn as e, pn as t } from "./rolls-CEQmdcp3.js";
2
- import { A as n, B as r, F as i, G as a, H as o, I as s, L as c, M as l, N as u, P as d, R as f, U as p, V as m, W as h, j as g, k as _, ut as v, z as y } from "./effectCategories-DV7i_AgK.js";
3
- import { c as ee, d as te, l as b, u as ne } from "./generators-Bf08F0NV.js";
4
- import { n as x, r as re } from "./previewScale-CA0ComGv.js";
1
+ import { Dn as e, Tn as t } from "./rolls-5hhrWX96.js";
2
+ import { A as n, B as r, F as i, G as a, H as o, I as s, L as c, M as l, N as u, P as d, R as f, U as p, V as m, W as h, j as g, k as _, ut as v, z as y } from "./effectCategories-D1t5Vdqf.js";
3
+ import { c as ee, d as te, l as b, u as ne } from "./generators-JkPVwcTT.js";
4
+ import { n as x, r as re } from "./previewScale-BAmIBoWY.js";
5
5
  import { A as ie, At as ae, Bt as S, C as oe, D as se, Dt as C, E as ce, Et as w, F as le, Gt as T, Ht as E, Kt as ue, L as D, Lt as de, N as fe, Nt as pe, O, P as me, Pt as he, Rt as ge, S as k, T as A, Ut as _e, Vt as j, _t as M, a as N, at as ve, b as ye, bt as be, c as xe, d as P, et as F, f as I, g as Se, gt as L, h as Ce, ht as we, i as Te, it as Ee, jt as De, k as Oe, m as R, mt as ke, n as Ae, nt as je, o as Me, ot as Ne, p as z, pt as Pe, r as Fe, rt as Ie, st as Le, t as B, tt as Re, u as ze, v as V, vt as Be, x as Ve, yt as He, zt as Ue } from "./OrbitControls-DVpLgmKv.js";
6
6
  import { n as We, t as Ge } from "./BufferGeometryUtils-Cc8LNd5v.js";
7
7
  //#region src/loops/gl/DriftEngine.js
@@ -2206,23 +2206,23 @@ var dn = {
2206
2206
  paused: !1,
2207
2207
  speed: 0
2208
2208
  };
2209
- function fn(e, n, r) {
2210
- if (pn(e, n, r), typeof n.setPointer == "function") {
2211
- let e = t.getCtx().stage, i = r.w ?? 0, a = r.h ?? 0, o = null;
2212
- if (e && i > 0 && a > 0) {
2213
- let t = (e.x - (r.x ?? 0)) / i, n = (e.y - (r.y ?? 0)) / a;
2214
- t >= 0 && t <= 1 && n >= 0 && n <= 1 && (o = {
2215
- x: t,
2209
+ function fn(t, n, r) {
2210
+ if (pn(t, n, r), typeof n.setPointer == "function") {
2211
+ let t = e.getCtx().stage, i = r.w ?? 0, a = r.h ?? 0, o = null;
2212
+ if (t && i > 0 && a > 0) {
2213
+ let e = (t.x - (r.x ?? 0)) / i, n = (t.y - (r.y ?? 0)) / a;
2214
+ e >= 0 && e <= 1 && n >= 0 && n <= 1 && (o = {
2215
+ x: e,
2216
2216
  y: n,
2217
- down: !!e.down
2217
+ down: !!t.down
2218
2218
  });
2219
2219
  }
2220
2220
  n.setPointer(r.mouse === !1 ? null : o);
2221
2221
  }
2222
- e.bgToggle && n.renderer?.setClearAlpha(r.bgOn === !1 ? 0 : 1);
2222
+ t.bgToggle && n.renderer?.setClearAlpha(r.bgOn === !1 ? 0 : 1);
2223
2223
  }
2224
- function pn(t, n, r) {
2225
- switch (t.engine) {
2224
+ function pn(e, n, r) {
2225
+ switch (e.engine) {
2226
2226
  case "scene": {
2227
2227
  an.set(n, r.duration ?? 8);
2228
2228
  let e = {
@@ -2358,9 +2358,9 @@ function pn(t, n, r) {
2358
2358
  }), r.background != null && n.setBackground(r.background);
2359
2359
  return;
2360
2360
  case "mesh": {
2361
- let t = r.mode === "grid" ? "grid" : "single", i = r.seed ?? 7, a = t === "grid" ? Array.from({ length: 9 }, (e, t) => i + t * 7919) : [i];
2361
+ let e = r.mode === "grid" ? "grid" : "single", i = r.seed ?? 7, a = e === "grid" ? Array.from({ length: 9 }, (e, t) => i + t * 7919) : [i];
2362
2362
  n.update({
2363
- mode: t,
2363
+ mode: e,
2364
2364
  idx: 0,
2365
2365
  specs: a.map((e) => mn(e, r)),
2366
2366
  globals: {
@@ -2371,7 +2371,7 @@ function pn(t, n, r) {
2371
2371
  bg: r.bgAmount ?? .85,
2372
2372
  bgStyle: r.bgStyle ?? 0
2373
2373
  }
2374
- }), n.setBackground(e(r.themeId ?? "kol", !!r.themeInvert).bg);
2374
+ }), n.setBackground(t(r.themeId ?? "kol", !!r.themeInvert).bg);
2375
2375
  return;
2376
2376
  }
2377
2377
  default: n.setParams(r);
@@ -2391,10 +2391,10 @@ function mn(e, t) {
2391
2391
  phase: o
2392
2392
  };
2393
2393
  }
2394
- function hn(e, n, { u: r, dt: i }) {
2395
- if (e.drive === "phase") n.renderAtPhase(r);
2396
- else if (e.drive === "seek") {
2397
- let e = an.get(n), i = e ? b(r, ee(e, t.getLoopSeconds())) : r;
2394
+ function hn(t, n, { u: r, dt: i }) {
2395
+ if (t.drive === "phase") n.renderAtPhase(r);
2396
+ else if (t.drive === "seek") {
2397
+ let t = an.get(n), i = t ? b(r, ee(t, e.getLoopSeconds())) : r;
2398
2398
  n.seek(i), n.frame(0);
2399
2399
  } else n.frame(i);
2400
2400
  }
@@ -1,4 +1,4 @@
1
- import { N as e } from "./rolls-CEQmdcp3.js";
1
+ import { N as e } from "./rolls-5hhrWX96.js";
2
2
  import { useSyncExternalStore as t } from "react";
3
3
  //#region src/editor/morph/buildMorph.js
4
4
  var n = [