u-space 0.0.9 → 0.0.11
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileLoader, Scene, OrthographicCamera, Mesh, PlaneGeometry, MeshBasicNodeMaterial, Matrix4, Loader, LoadingManager, Group,
|
|
1
|
+
import { FileLoader, Scene, OrthographicCamera, Mesh, PlaneGeometry, MeshBasicNodeMaterial, Matrix4, Loader, LoadingManager, Group, EventDispatcher, Vector3, Euler } from "three/webgpu";
|
|
2
2
|
import { TextureLoaderManager, Model, ShapeMesh, CircleMesh, ExtrudeMesh, tweenAnimation, Topology, MaterialEffects as MaterialEffects$1 } from "u-space";
|
|
3
3
|
import { pass } from "three/tsl";
|
|
4
4
|
import { MaterialEffects } from "../../index.js";
|
|
@@ -20643,7 +20643,7 @@ class SceneParser {
|
|
|
20643
20643
|
const { name: h, renderType: f, path: p, visible: r, matrix: u, shape: o, extra: t } = a;
|
|
20644
20644
|
let n = null;
|
|
20645
20645
|
if (f === "3D" && p) {
|
|
20646
|
-
const e =
|
|
20646
|
+
const e = this.path + p, s = new Model();
|
|
20647
20647
|
this.manager.itemStart(e), await s.loadAsync({
|
|
20648
20648
|
url: e
|
|
20649
20649
|
}), this.manager.itemEnd(e), n = s;
|
|
@@ -20659,9 +20659,9 @@ class SceneParser {
|
|
|
20659
20659
|
}
|
|
20660
20660
|
});
|
|
20661
20661
|
e.material.color.set("blue"), e.material.transparent = !0, e.material.opacity = 0.5, n = e;
|
|
20662
|
-
} else if (
|
|
20663
|
-
const e = ExtrudeMesh.createFromPoints(o
|
|
20664
|
-
geometryParameters: { options: { depth: o
|
|
20662
|
+
} else if (f === "AREA" || f === "FLOOR" || f === "ROOM") {
|
|
20663
|
+
const e = ExtrudeMesh.createFromPoints(o?.points, {
|
|
20664
|
+
geometryParameters: { options: { depth: o?.depth, bevelEnabled: !1 } }
|
|
20665
20665
|
});
|
|
20666
20666
|
e.material.color.set(t?.color ?? "blue"), e.material.transparent = !0, e.material.opacity = t?.opacity ?? 0.5, n = e;
|
|
20667
20667
|
}
|
|
@@ -13,5 +13,5 @@ export declare class ExtrudeMesh extends BaseMesh<ExtrudeGeometry, MeshStandardN
|
|
|
13
13
|
readonly isExtrudeMesh = true;
|
|
14
14
|
type: string;
|
|
15
15
|
constructor({ geometryParameters, materialParameters }?: ExtrudeMeshParameters);
|
|
16
|
-
static createFromPoints(points
|
|
16
|
+
static createFromPoints(points?: IPlaneVector2[], parameters?: ExtrudeMeshParameters): ExtrudeMesh;
|
|
17
17
|
}
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "u-space",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"docs:build": "vitepress build docs",
|
|
30
30
|
"docs:preview": "vitepress preview docs",
|
|
31
31
|
"docs:deploy": "pnpm docs:build && vercel --prod",
|
|
32
|
-
"release": "npm version patch && npm publish --access=public"
|
|
32
|
+
"release": "npm version patch && pnpm build && npm publish --access=public"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|