@kolkrabbi/design-editor 0.46.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-B0VcuOag.js → BindDot-Cx-M0iQt.js} +9 -8
- package/dist/{BufferResource-BfLgK37S.js → BufferResource-Di5teicy.js} +2 -2
- package/dist/{CanvasPool-YNSF8hsR.js → CanvasPool-JdLj49b-.js} +1 -1
- package/dist/CanvasRenderer-fXDObOOi.js +2 -0
- package/dist/{FederatedEventTarget-BJgROaRQ.js → FederatedEventTarget-CH0bzxx1.js} +1 -1
- package/dist/{FilterSystem-BUrPNXx-.js → FilterSystem-C-ZoyuTO.js} +3 -3
- package/dist/{Geometry-C5s5KpWq.js → Geometry-D4tiuMOr.js} +1 -1
- package/dist/KolboxView-BjYfn_tl.js +21615 -0
- package/dist/{RenderTargetSystem-oFwWv5IW.js → RenderTargetSystem-Bom_vhlS.js} +1 -1
- package/dist/{Timeline-Ck1rBV8S.js → Timeline-CRr43b4B.js} +49 -53
- package/dist/TreePicker-DXsAlHK6.js +209 -0
- package/dist/WebGLRenderer-4hvrGmfW.js +2 -0
- package/dist/WebGPURenderer-BjzMV7Pg.js +2 -0
- package/dist/__vite-browser-external-y2xWjzgx.js +780 -0
- package/dist/browserAll-BFE0MRLW.js +6 -0
- package/dist/{canvasUtils-BoNfkAod.js → canvasUtils-DUNsu3ct.js} +1 -1
- package/dist/{core-BBb9Tk4Q.js → core-BbKj9Svq.js} +5877 -8206
- package/dist/core.js +6 -5
- package/dist/design-editor.css +2 -1
- package/dist/design-editor.js +7 -3644
- package/dist/{effectCategories-Ccye-8LP.js → effectCategories-wHY9ih8L.js} +8966 -4985
- package/dist/effects-D7J0e5xl.js +447 -0
- package/dist/effects.js +1 -1
- package/dist/{generators-BdVXv0jY.js → generators-BtRZ3Stj.js} +2473 -2538
- package/dist/generators.js +1 -1
- package/dist/{getTextureBatchBindGroup-CNWhZRbV.js → getTextureBatchBindGroup-ZMqkwiZS.js} +1 -1
- package/dist/{host-meUhieO9.js → host-0qv2SCjk.js} +1 -1
- package/dist/{host-9pJ7NvnR.js → host-II9SeVCH.js} +50 -50
- package/dist/init-DkGhdexn.js +4 -0
- package/dist/kolbox-sheet.js +0 -0
- package/dist/kolbox.css +3 -0
- package/dist/{morphStore-D6mkLJ-8.js → morphStore-s-rjCe-y.js} +1 -1
- package/dist/{motion-wsc6Qd7S.js → motion-CKtZAccJ.js} +765 -762
- package/dist/motion.js +1 -1
- package/dist/{pipeline-CMpuPUaX.js → pipeline-hZsOKbHd.js} +12 -12
- package/dist/{previewScale-SYKvfhUm.js → previewScale-C6EBx--U.js} +8 -8
- package/dist/{rolls-KpWCAeDv.js → rolls-Cnu6g8th.js} +10671 -4810
- package/dist/src-3UkpFoNW.js +3430 -0
- package/dist/{src-B5o6fGRJ.js → src-D-TQbBo2.js} +1 -2
- package/dist/{store-iBb0I6hk.js → store-YIW6P2zN.js} +289 -269
- package/dist/useLayerEdit-W_Tf3adq.js +455 -0
- package/dist/webworkerAll-0WBQ2FBr.js +2 -0
- package/package.json +16 -13
- package/dist/CanvasRenderer-Bl0rlqNq.js +0 -2
- package/dist/TreePicker-Dv0zpJwe.js +0 -166
- package/dist/WebGLRenderer-CXxpVIx3.js +0 -2
- package/dist/WebGPURenderer-BwLEUYBa.js +0 -2
- package/dist/browserAll-CAzdTUbR.js +0 -6
- package/dist/chunk-3b4jIN3o.js +0 -13
- package/dist/effects-B47bpwGh.js +0 -447
- package/dist/init-jApIMi04.js +0 -4
- package/dist/useLayerEdit-Ba7RA6qX.js +0 -454
- package/dist/webworkerAll-DEZhpG90.js +0 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-Cnu6g8th.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 =
|
|
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,
|
|
31
|
-
if (
|
|
32
|
-
else if (
|
|
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
|
|
47
|
+
} else e(t)?.ensure?.().catch(() => {}), d(l.key, {
|
|
47
48
|
bind: "mod",
|
|
48
|
-
source:
|
|
49
|
+
source: t,
|
|
49
50
|
transform: { range: y() }
|
|
50
51
|
});
|
|
51
|
-
}, x = l.type === "color" ? [] :
|
|
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-
|
|
2
|
-
import { T as o, c as s } from "./RenderTargetSystem-
|
|
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-
|
|
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;
|
|
@@ -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-
|
|
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-
|
|
2
|
-
import { r as ie, t as ae } from "./canvasUtils-
|
|
3
|
-
import { t as oe } from "./CanvasPool-
|
|
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 {
|
|
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) {
|