@kolkrabbi/design-editor 0.45.1 → 0.47.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.
Files changed (50) hide show
  1. package/dist/{BindDot-DqLgF_zQ.js → BindDot-B85UV79g.js} +9 -8
  2. package/dist/{BufferResource-BfLgK37S.js → BufferResource-Di5teicy.js} +2 -2
  3. package/dist/{CanvasPool-YNSF8hsR.js → CanvasPool-JdLj49b-.js} +1 -1
  4. package/dist/CanvasRenderer-fXDObOOi.js +2 -0
  5. package/dist/{FederatedEventTarget-BJgROaRQ.js → FederatedEventTarget-CH0bzxx1.js} +1 -1
  6. package/dist/{FilterSystem-BUrPNXx-.js → FilterSystem-C-ZoyuTO.js} +3 -3
  7. package/dist/{Geometry-C5s5KpWq.js → Geometry-D4tiuMOr.js} +1 -1
  8. package/dist/KolboxView-n6kEPJtV.js +21615 -0
  9. package/dist/{RenderTargetSystem-oFwWv5IW.js → RenderTargetSystem-Bom_vhlS.js} +1 -1
  10. package/dist/{Timeline-Boo1VuFe.js → Timeline-EbecYeGh.js} +49 -47
  11. package/dist/TreePicker-2RUSyGl4.js +209 -0
  12. package/dist/WebGLRenderer-4hvrGmfW.js +2 -0
  13. package/dist/WebGPURenderer-BjzMV7Pg.js +2 -0
  14. package/dist/__vite-browser-external-y2xWjzgx.js +780 -0
  15. package/dist/browserAll-BFE0MRLW.js +6 -0
  16. package/dist/{canvasUtils-BoNfkAod.js → canvasUtils-DUNsu3ct.js} +1 -1
  17. package/dist/{core-gz2DUq8s.js → core-9UlJPBwX.js} +6331 -6299
  18. package/dist/core.js +6 -5
  19. package/dist/design-editor.css +2 -1
  20. package/dist/design-editor.js +7 -3622
  21. package/dist/{effectCategories-CsCbOfy3.js → effectCategories-CCpYmxS0.js} +8965 -4984
  22. package/dist/effects-DspYFJAM.js +447 -0
  23. package/dist/effects.js +1 -1
  24. package/dist/{generators-BrdP7Omn.js → generators-DY4_ymWh.js} +2394 -2423
  25. package/dist/generators.js +1 -1
  26. package/dist/{getTextureBatchBindGroup-CNWhZRbV.js → getTextureBatchBindGroup-ZMqkwiZS.js} +1 -1
  27. package/dist/{host-BLhWuQ9Y.js → host-0qv2SCjk.js} +1 -1
  28. package/dist/{host-DwC1SsjV.js → host-Bo6itV50.js} +50 -50
  29. package/dist/init-DkGhdexn.js +4 -0
  30. package/dist/{morphStore-Ba--Lk9u.js → morphStore-Bm30Ekce.js} +1 -1
  31. package/dist/{motion-DL5Y98d6.js → motion-BOWE4m3Q.js} +762 -759
  32. package/dist/motion.js +1 -1
  33. package/dist/{pipeline-CMpuPUaX.js → pipeline-hZsOKbHd.js} +12 -12
  34. package/dist/{previewScale-xKmJh3wg.js → previewScale-C6EBx--U.js} +8 -8
  35. package/dist/{rolls-CSOfYXm5.js → rolls-DugKaHUw.js} +10550 -4518
  36. package/dist/src-BlvCHYVY.js +3672 -0
  37. package/dist/{src-BSoHkncc.js → src-D-TQbBo2.js} +1 -2
  38. package/dist/{store-BtEnp5i6.js → store-BMGP1qou.js} +295 -275
  39. package/dist/{useLayerEdit-BCGfD3Cv.js → useLayerEdit-B5nF5I9b.js} +103 -102
  40. package/dist/webworkerAll-0WBQ2FBr.js +2 -0
  41. package/package.json +14 -11
  42. package/dist/CanvasRenderer-Bl0rlqNq.js +0 -2
  43. package/dist/TreePicker-YcrYNUx5.js +0 -166
  44. package/dist/WebGLRenderer-CXxpVIx3.js +0 -2
  45. package/dist/WebGPURenderer-BwLEUYBa.js +0 -2
  46. package/dist/browserAll-CAzdTUbR.js +0 -6
  47. package/dist/chunk-3b4jIN3o.js +0 -13
  48. package/dist/effects-BZ8lWlZa.js +0 -447
  49. package/dist/init-jApIMi04.js +0 -4
  50. package/dist/webworkerAll-DEZhpG90.js +0 -2
@@ -1,4 +1,5 @@
1
- import { D as e, Dn as t, In as n, L as r, Mn as i, Nn as a, j as o } from "./rolls-CSOfYXm5.js";
1
+ import { d as e, f as t, g as n, o as r } from "./__vite-browser-external-y2xWjzgx.js";
2
+ import { D as i, L as a, j as o } from "./rolls-DugKaHUw.js";
2
3
  import { ParamBindDot as s } from "@kolkrabbi/kol-component";
3
4
  import { useEffect as c, useState as l } from "react";
4
5
  import { jsx as u } from "react/jsx-runtime";
@@ -25,11 +26,11 @@ function h() {
25
26
  //#endregion
26
27
  //#region src/editor/params/BindDot.jsx
27
28
  function g({ layer: c, param: l, setProp: d }) {
28
- let f = r(), p = h(), m = c[l.key], g = e(m), _ = g ? m.bind === "track" ? "track" : m.source : "none";
29
+ let f = a(), p = h(), m = c[l.key], g = i(m), _ = g ? m.bind === "track" ? "track" : m.source : "none";
29
30
  if (!p && !g) return null;
30
- let v = () => o(m, t.getCtx(), c) ?? l.default ?? 0, y = () => l.min != null && l.max != null ? [l.min, l.max] : [0, 1], b = (e) => {
31
- if (e === "none") d(l.key, v());
32
- else if (e === "track") {
31
+ let v = () => o(m, r.getCtx(), c) ?? l.default ?? 0, y = () => l.min != null && l.max != null ? [l.min, l.max] : [0, 1], b = (t) => {
32
+ if (t === "none") d(l.key, v());
33
+ else if (t === "track") {
33
34
  let e = v();
34
35
  d(l.key, {
35
36
  bind: "track",
@@ -43,12 +44,12 @@ function g({ layer: c, param: l, setProp: d }) {
43
44
  easing: "linear"
44
45
  }]
45
46
  });
46
- } else i(e)?.ensure?.().catch(() => {}), d(l.key, {
47
+ } else e(t)?.ensure?.().catch(() => {}), d(l.key, {
47
48
  bind: "mod",
48
- source: e,
49
+ source: t,
49
50
  transform: { range: y() }
50
51
  });
51
- }, x = l.type === "color" ? [] : a().filter((e) => !e.hidden), S = x.find((e) => n(e.id)), C = [
52
+ }, x = l.type === "color" ? [] : t().filter((e) => !e.hidden), S = x.find((e) => n(e.id)), C = [
52
53
  {
53
54
  value: "none",
54
55
  label: "Constant"
@@ -1,5 +1,5 @@
1
- import { J as e, Q as t, it as n, n as r, p as i, r as a } from "./Geometry-C5s5KpWq.js";
2
- import { T as o, c as s } from "./RenderTargetSystem-oFwWv5IW.js";
1
+ import { J as e, Q as t, it as n, n as r, p as i, r as a } from "./Geometry-D4tiuMOr.js";
2
+ import { T as o, c as s } from "./RenderTargetSystem-Bom_vhlS.js";
3
3
  //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/localUniformBit.mjs
4
4
  var c = {
5
5
  name: "local-uniform-bit",
@@ -1,4 +1,4 @@
1
- import { N as e, q as t, y as n } from "./Geometry-C5s5KpWq.js";
1
+ import { N as e, q as t, y as n } from "./Geometry-D4tiuMOr.js";
2
2
  var r = new class {
3
3
  constructor(e) {
4
4
  this._canvasPool = /* @__PURE__ */ Object.create(null), this.canvasOptions = e || {}, this.enableFullScreen = !1;
@@ -0,0 +1,2 @@
1
+ import { r as e } from "./pipeline-hZsOKbHd.js";
2
+ export { e as CanvasRenderer };
@@ -1,4 +1,4 @@
1
- import { G as e, J as t, S as n, at as r, it as i, tt as a, x as o } from "./Geometry-C5s5KpWq.js";
1
+ import { G as e, J as t, S as n, at as r, it as i, tt as a, x as o } from "./Geometry-D4tiuMOr.js";
2
2
  //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/dom/CanvasObserver.mjs
3
3
  var s = class {
4
4
  constructor(e) {
@@ -1,6 +1,6 @@
1
- import { A as e, B as t, C as n, E as r, F as i, H as a, J as o, O as s, T as c, U as l, V as u, _ as d, at as f, c as p, d as m, et as h, f as g, i as _, m as ee, ot as v, t as te, u as ne, v as y, x as b, y as x, z as re } from "./Geometry-C5s5KpWq.js";
2
- import { r as ie, t as ae } from "./canvasUtils-BoNfkAod.js";
3
- import { t as oe } from "./CanvasPool-YNSF8hsR.js";
1
+ import { A as e, B as t, C as n, E as r, F as i, H as a, J as o, O as s, T as c, U as l, V as u, _ as d, at as f, c as p, d as m, et as h, f as g, i as _, m as ee, ot as v, t as te, u as ne, v as y, x as b, y as x, z as re } from "./Geometry-D4tiuMOr.js";
2
+ import { r as ie, t as ae } from "./canvasUtils-DUNsu3ct.js";
3
+ import { t as oe } from "./CanvasPool-JdLj49b-.js";
4
4
  //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/assets/loader/parsers/LoaderParser.mjs
5
5
  var S = /* @__PURE__ */ ((e) => (e[e.Low = 0] = "Low", e[e.Normal = 1] = "Normal", e[e.High = 2] = "High", e))(S || {});
6
6
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./chunk-3b4jIN3o.js";
1
+ import { F as e, N as t } from "./__vite-browser-external-y2xWjzgx.js";
2
2
  //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/extensions/Extensions.mjs
3
3
  var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "webgl-pipes", e.WebGLPipesAdaptor = "webgl-pipes-adaptor", e.WebGLSystem = "webgl-system", e.WebGPUPipes = "webgpu-pipes", e.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", e.WebGPUSystem = "webgpu-system", e.CanvasSystem = "canvas-system", e.CanvasPipesAdaptor = "canvas-pipes-adaptor", e.CanvasPipes = "canvas-pipes", e.Asset = "asset", e.LoadParser = "load-parser", e.ResolveParser = "resolve-parser", e.CacheParser = "cache-parser", e.DetectionParser = "detection-parser", e.MaskEffect = "mask-effect", e.BlendMode = "blend-mode", e.TextureSource = "texture-source", e.TextureUploaderWebGL = "texture-uploader-webgl", e.TextureUploaderWebGPU = "texture-uploader-webgpu", e.Environment = "environment", e.ShapeBuilder = "shape-builder", e.Batcher = "batcher", e))(n || {}), r = (e) => {
4
4
  if (typeof e == "function" || typeof e == "object" && e.extension) {