@mavonengine/editor 0.0.4 → 0.0.5
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.
|
@@ -1185,7 +1185,7 @@ class Ce extends rt {
|
|
|
1185
1185
|
var n, s;
|
|
1186
1186
|
t instanceof o && ((n = t.geometry) == null || n.dispose(), Array.isArray(t.material) ? t.material.forEach((r) => r.dispose()) : (s = t.material) == null || s.dispose());
|
|
1187
1187
|
}), c.instance().scene.clear(), this.initEditorScene(), c.instance().contextMenuAbort.abort(), c.instance().uiRoot.innerHTML = "", c.instance().uiRoot.style.opacity = "1", document.title = "MavonEngine | Editor", document.getElementsByTagName("body")[0].removeAttribute("onContextMenu"), Promise.all([
|
|
1188
|
-
import("./mount-
|
|
1188
|
+
import("./mount-CUUpNaC9.mjs"),
|
|
1189
1189
|
Promise.resolve({ })
|
|
1190
1190
|
]).then(([{ mountEditorUI: t }]) => {
|
|
1191
1191
|
this.reactRoot = t(c.instance().uiRoot);
|
package/dist/Editor.mjs
CHANGED
|
@@ -6,8 +6,8 @@ var o0 = (s, l, o) => (KC(s, l, "read from private field"), o ? o.call(s) : l.ge
|
|
|
6
6
|
import B_, { useSyncExternalStore as MT, useMemo as fs, useRef as Ee, useCallback as or, useLayoutEffect as AT, useEffect as Bn, useId as PM, useState as Ae, useImperativeHandle as RT, createContext as QM, useContext as ZM, memo as OT, PureComponent as UT, createElement as Xw } from "react";
|
|
7
7
|
import j_, { flushSync as NT, createPortal as KM } from "react-dom";
|
|
8
8
|
import { jsx as $, jsxs as Rt, Fragment as df } from "react/jsx-runtime";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
9
|
+
import "@mavonengine/core/Particles/Effects/Smoke";
|
|
10
|
+
import "@mavonengine/core/Particles/Effects/Rain";
|
|
11
11
|
import { Controls as JM, Vector3 as ha, MOUSE as $m, TOUCH as Zm, Quaternion as WC, Spherical as FC, Vector2 as ul, Ray as $M, Plane as y0, MathUtils as WM, Mesh as Wm, Scene as LT, DirectionalLight as IC, AmbientLight as FM, Box3 as IM, PerspectiveCamera as HT, WebGLRenderer as BT, AnimationMixer as tA, LoopRepeat as eA, LoopOnce as nA, Texture as d_, PlaneGeometry as s0 } from "three";
|
|
12
12
|
import vf from "@mavonengine/core/Game";
|
|
13
13
|
import { getPreviewMap as a2, spawnParticle as aA } from "@mavonengine/core/Particles/System/ParticlePreviewRegistry";
|
|
@@ -18,7 +18,7 @@ import lA from "@mavonengine/core/Prefab/Water/Water";
|
|
|
18
18
|
import of from "@mavonengine/core/Prefab/Water/WaterManager";
|
|
19
19
|
import iA from "@mavonengine/core/Renderer/AssetRenderer";
|
|
20
20
|
import jT from "@mavonengine/core/Editor/EditorHelper";
|
|
21
|
-
import { a as oA } from "./Editor-
|
|
21
|
+
import { a as oA } from "./Editor-D7WM9ico.mjs";
|
|
22
22
|
/* empty css */
|
|
23
23
|
const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_ = new $M(), lx = new y0(), sA = Math.cos(70 * WM.DEG2RAD), Sa = new ha(), ai = 2 * Math.PI, Ie = {
|
|
24
24
|
NONE: -1,
|