@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
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { F as e, L as t } from "./rolls-BGtqxVYq.js";
|
|
2
|
+
import { Dropdown as n, LabeledControl as r, SettingsRow as i } from "@kolkrabbi/kol-component";
|
|
3
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
//#region src/editor/compose/inspectors/TreePicker.jsx
|
|
5
|
+
function c(e) {
|
|
6
|
+
return /* @__PURE__ */ o(n, {
|
|
7
|
+
variant: "subtle",
|
|
8
|
+
size: t(),
|
|
9
|
+
className: "w-full",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function l({ label: t, options: n, value: a, onChange: s, children: l, inline: u = !0 }) {
|
|
14
|
+
let d = l ?? /* @__PURE__ */ o(c, {
|
|
15
|
+
options: n,
|
|
16
|
+
value: a,
|
|
17
|
+
onChange: s
|
|
18
|
+
});
|
|
19
|
+
return u ? /* @__PURE__ */ o(i, {
|
|
20
|
+
label: t,
|
|
21
|
+
align: "fill",
|
|
22
|
+
labelWidth: e,
|
|
23
|
+
children: d
|
|
24
|
+
}) : /* @__PURE__ */ o(r, {
|
|
25
|
+
label: t,
|
|
26
|
+
children: d
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function u({ tree: e, presets: t, current: n, onPick: r, inline: i = !0, subLabel: c = (e) => e }) {
|
|
30
|
+
let u = e.find((e) => e.label === n.typeLabel) ?? e.find((e) => e.subs.includes(n.sub)) ?? e[0], d = t.filter((e) => e.sub === n.sub), f = (e) => t.find((t) => t.sub === e);
|
|
31
|
+
return /* @__PURE__ */ s(a, { children: [
|
|
32
|
+
/* @__PURE__ */ o(l, {
|
|
33
|
+
inline: i,
|
|
34
|
+
label: "Type",
|
|
35
|
+
options: e.map((e) => ({
|
|
36
|
+
value: e.label,
|
|
37
|
+
label: e.label
|
|
38
|
+
})),
|
|
39
|
+
value: u.label,
|
|
40
|
+
onChange: (t) => {
|
|
41
|
+
let n = e.find((e) => e.label === t);
|
|
42
|
+
n && r(f(n.subs[0]));
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ o(l, {
|
|
46
|
+
inline: i,
|
|
47
|
+
label: "Category",
|
|
48
|
+
options: u.subs.map((e) => ({
|
|
49
|
+
value: e,
|
|
50
|
+
label: c(e)
|
|
51
|
+
})),
|
|
52
|
+
value: n.sub,
|
|
53
|
+
onChange: (e) => r(f(e))
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ o(l, {
|
|
56
|
+
inline: i,
|
|
57
|
+
label: "Preset",
|
|
58
|
+
options: d.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 { l as n, u as r, c as t };
|