@kolkrabbi/design-editor 0.23.0 → 0.26.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/TreePicker-nMf17QGH.js +68 -0
- package/dist/core-CfGqY4VB.js +17504 -0
- package/dist/core.js +4 -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-B4SRaN9h.js → host-CRsCCafL.js} +429 -370
- package/dist/{host-be1CWhN1.js → host-ZLJKCZ54.js} +137 -136
- package/dist/motion-BJ8xqUKI.js +3096 -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/{labels-B5qkocWy.js → timelinePinned-BwYq1Msi.js} +321 -164
- package/dist/{useLayerEdit-ieOjHx6x.js → useLayerEdit-BFcZhiNX.js} +20992 -12580
- package/package.json +11 -9
- package/dist/RuleRow-BXkjpTyN.js +0 -650
- package/dist/TreePicker-DLmMl0aU.js +0 -68
- package/dist/core-CTI1YRJD.js +0 -12335
- package/dist/effectCategories-BcaQSD_V.js +0 -4216
- package/dist/effects-pCd8YTdQ.js +0 -469
- package/dist/generators-B8_StNAy.js +0 -2517
- package/dist/motion-DFnAar_2.js +0 -2263
package/dist/motion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./motion-
|
|
1
|
+
import { t as e } from "./motion-BJ8xqUKI.js";
|
|
2
2
|
export { e as motion };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { gn as e, yn as t } from "./rolls-BGtqxVYq.js";
|
|
2
|
+
import { useSyncExternalStore as n } from "react";
|
|
3
|
+
//#region src/editor/lib/previewScale.js
|
|
4
|
+
var r = 0, i = /* @__PURE__ */ new Set(), a = () => i.forEach((e) => e()), o = (e) => (i.add(e), () => i.delete(e));
|
|
5
|
+
function s() {
|
|
6
|
+
let t = Math.min(2, window.devicePixelRatio || 1);
|
|
7
|
+
return r > 0 || e().previewRes !== "half" ? t : t / 2;
|
|
8
|
+
}
|
|
9
|
+
function c() {
|
|
10
|
+
return t(), n(o, () => r), s();
|
|
11
|
+
}
|
|
12
|
+
var l = () => new Promise((e) => requestAnimationFrame(() => e()));
|
|
13
|
+
async function u(t) {
|
|
14
|
+
let n = r === 0 && e().previewRes === "half";
|
|
15
|
+
r++, n && (a(), await l(), await l());
|
|
16
|
+
try {
|
|
17
|
+
return await t();
|
|
18
|
+
} finally {
|
|
19
|
+
r--, n && a();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function d() {
|
|
23
|
+
return r > 0 || e().previewRes !== "half" ? 1 : .5;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as i, s as n, d as r, u as t };
|