@kolkrabbi/design-editor 0.24.0 → 0.27.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/README.md +2 -2
- package/dist/BindDot-CMUtpJPX.js +84 -0
- package/dist/BufferGeometryUtils-Cc8LNd5v.js +150 -0
- package/dist/ColorModesWindow-CWhL6nfm.js +1493 -0
- package/dist/GLTFLoader-BFir8PCc.js +1361 -0
- package/dist/OBJLoader-BgqC_-Jn.js +287 -0
- package/dist/{OrbitControls-Cql8Rn2i.js → OrbitControls-DVpLgmKv.js} +2755 -2202
- package/dist/STLLoader-C6DGLf6r.js +83 -0
- package/dist/Timeline-BObvcdXF.js +3014 -0
- package/dist/TreePicker-nMf17QGH.js +68 -0
- package/dist/core-EWu8GfXL.js +17504 -0
- package/dist/core.js +5 -3
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +2114 -916
- package/dist/effects-DZEmfY7a.js +444 -0
- package/dist/effects.js +1 -1
- package/dist/generators-D1tFSZgG.js +2961 -0
- package/dist/generators.js +1 -1
- package/dist/{host-qtFVROOD.js → host-CRsCCafL.js} +429 -370
- package/dist/{host-be1CWhN1.js → host-ZLJKCZ54.js} +137 -136
- package/dist/motion-C_u7tsis.js +2295 -0
- package/dist/motion.js +1 -1
- package/dist/previewScale-BMkeLc6w.js +26 -0
- package/dist/{rolls-Bg1XHuvJ.js → rolls-BGtqxVYq.js} +2621 -1522
- package/dist/{src-B5fQgAVE.js → src-BpTckTDZ.js} +1 -1
- package/dist/{useLayerEdit-ieOjHx6x.js → useLayerEdit-BFcZhiNX.js} +20992 -12580
- package/package.json +9 -7
- package/dist/RuleRow-DIbuUt37.js +0 -650
- package/dist/TreePicker-DLmMl0aU.js +0 -68
- package/dist/core-CNI8b_83.js +0 -12314
- package/dist/effectCategories-0PnGZvjd.js +0 -4210
- package/dist/effects-BujxwoNY.js +0 -469
- package/dist/generators-SpRHQDMq.js +0 -2517
- package/dist/labels-B5qkocWy.js +0 -2007
- package/dist/motion-Bn3FVkCS.js +0 -2260
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { S as e } from "./rolls-Bg1XHuvJ.js";
|
|
2
|
-
import { Dropdown as t, LabeledControl as n, SettingsRow as r } from "@kolkrabbi/kol-component";
|
|
3
|
-
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
-
//#region src/editor/compose/inspectors/TreePicker.jsx
|
|
5
|
-
function s(n) {
|
|
6
|
-
return /* @__PURE__ */ a(t, {
|
|
7
|
-
variant: "subtle",
|
|
8
|
-
size: e(),
|
|
9
|
-
className: "w-full",
|
|
10
|
-
...n
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function c({ label: e, options: t, value: i, onChange: o, children: c, inline: l = !1 }) {
|
|
14
|
-
let u = c ?? /* @__PURE__ */ a(s, {
|
|
15
|
-
options: t,
|
|
16
|
-
value: i,
|
|
17
|
-
onChange: o
|
|
18
|
-
});
|
|
19
|
-
return l ? /* @__PURE__ */ a(r, {
|
|
20
|
-
label: e,
|
|
21
|
-
align: "fill",
|
|
22
|
-
labelWidth: 112,
|
|
23
|
-
children: u
|
|
24
|
-
}) : /* @__PURE__ */ a(n, {
|
|
25
|
-
label: e,
|
|
26
|
-
children: u
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function l({ tree: e, presets: t, current: n, onPick: r, inline: s = !1 }) {
|
|
30
|
-
let l = e.find((e) => e.subs.includes(n.sub)) ?? e[0], u = t.filter((e) => e.sub === n.sub), d = (e) => t.find((t) => t.sub === e);
|
|
31
|
-
return /* @__PURE__ */ o(i, { children: [
|
|
32
|
-
/* @__PURE__ */ a(c, {
|
|
33
|
-
inline: s,
|
|
34
|
-
label: "Type",
|
|
35
|
-
options: e.map((e) => ({
|
|
36
|
-
value: e.label,
|
|
37
|
-
label: e.label
|
|
38
|
-
})),
|
|
39
|
-
value: l.label,
|
|
40
|
-
onChange: (t) => {
|
|
41
|
-
let n = e.find((e) => e.label === t);
|
|
42
|
-
n && r(d(n.subs[0]));
|
|
43
|
-
}
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ a(c, {
|
|
46
|
-
inline: s,
|
|
47
|
-
label: "Category",
|
|
48
|
-
options: l.subs.map((e) => ({
|
|
49
|
-
value: e,
|
|
50
|
-
label: e
|
|
51
|
-
})),
|
|
52
|
-
value: n.sub,
|
|
53
|
-
onChange: (e) => r(d(e))
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ a(c, {
|
|
56
|
-
inline: s,
|
|
57
|
-
label: "Preset",
|
|
58
|
-
options: u.map((e) => ({
|
|
59
|
-
value: e.id,
|
|
60
|
-
label: e.label
|
|
61
|
-
})),
|
|
62
|
-
value: n.id,
|
|
63
|
-
onChange: (e) => r(t.find((t) => t.id === e))
|
|
64
|
-
})
|
|
65
|
-
] });
|
|
66
|
-
}
|
|
67
|
-
//#endregion
|
|
68
|
-
export { c as n, l as r, s as t };
|