view3d-core 1.1.5 → 1.1.8
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/dist/{SceneConfigPlugin-DZg33RSn.js → SceneConfigPlugin-B56mqeGd.js} +5 -5
- package/dist/SceneConfigPlugin-B56mqeGd.js.map +1 -0
- package/dist/{SceneConfigPlugin-DOTHJSki.cjs → SceneConfigPlugin-DDYDHSPw.cjs} +645 -645
- package/dist/SceneConfigPlugin-DDYDHSPw.cjs.map +1 -0
- package/dist/img/snow.png +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/json/cn1.json +1 -0
- package/dist/json/guangdong.json +1 -0
- package/dist/plugins/index.cjs +1 -1
- package/dist/plugins/index.js +1 -1
- package/package.json +1 -1
- package/dist/SceneConfigPlugin-DOTHJSki.cjs.map +0 -1
- package/dist/SceneConfigPlugin-DZg33RSn.js.map +0 -1
|
@@ -1648,7 +1648,7 @@ class oo extends it {
|
|
|
1648
1648
|
super({ ...so, ...e4 }), this.name = "loader", this.fontCache = /* @__PURE__ */ new Map();
|
|
1649
1649
|
}
|
|
1650
1650
|
onInstall() {
|
|
1651
|
-
this.dracoLoader = new Le(), this.dracoLoader.setDecoderPath(this.config.dracoPath), this.dracoLoader.setDecoderConfig({ type: "js" }), this.dracoLoader.preload(), this.gltfLoader = new Be(), this.config.useDraco && this.gltfLoader.setDRACOLoader(this.dracoLoader), this.fbxLoader = new ke(), this.objLoader = new Oe(), this.mtlLoader = new je(), this.textureLoader = new x(), this.cubeTextureLoader = new _(), this.fontLoader = new ze();
|
|
1651
|
+
this.dracoLoader = new Le(), this.dracoLoader.setDecoderPath(this.config.dracoPath), this.dracoLoader.setDecoderConfig({ type: "js" }), this.dracoLoader.setWorkerLimit(0), this.dracoLoader.preload(), this.gltfLoader = new Be(), this.config.useDraco && this.gltfLoader.setDRACOLoader(this.dracoLoader), this.fbxLoader = new ke(), this.objLoader = new Oe(), this.mtlLoader = new je(), this.textureLoader = new x(), this.cubeTextureLoader = new _(), this.fontLoader = new ze();
|
|
1652
1652
|
}
|
|
1653
1653
|
onUninstall() {
|
|
1654
1654
|
this.dracoLoader.dispose(), this.fontCache.clear();
|
|
@@ -2917,7 +2917,7 @@ var vi = ii;
|
|
|
2917
2917
|
const bi = { autoPlace: true, width: 300, useProxy: false, closed: false }, wi = ["立方体", "球体", "圆柱体", "圆锥体", "圆环", "平面", "圆环结", "十二面体", "二十面体", "八面体", "四面体"], xi = ["基础材质", "标准材质", "Lambert材质", "Phong材质", "物理材质", "Toon材质"], _i = ["AmbientLight", "DirectionalLight", "PointLight", "SpotLight", "HemisphereLight", "RectAreaLight"], Ci = ["围栏物体", "平面绘制", "曲线路径", "直线路径"], Mi = ["场景交点", "地图区域中心", "地图行政中心"];
|
|
2918
2918
|
class Pi extends it {
|
|
2919
2919
|
constructor(e4) {
|
|
2920
|
-
super({ ...bi, ...e4 }), this.name = "gui", this._gui = null, this.sceneFolder = null, this.controlFolder = null, this.meshFolder = null, this.animationFolder = null, this.selectPanel = null, this.modelListFolder = null, this.innerMeshListFolder = null, this.drawMeshListFolder = null, this.geoMapListFolder = null, this.particleListFolder = null, this.borderGroupListFolder = null, this.textMeshListFolder = null, this.designMeshListFolder = null, this.lightListFolder = null, this.handlerParams = { mode: "变换", isTransformChildren: false, openKey: false }, this.innerMeshParams = { geometryType: "立方体", materialType: "标准材质" }, this.drawParams = { mode: "围栏物体", pointMode: "场景交点", materialType: "标准材质" }, this.geoMapParams = { url: "", materialType: "标准材质" }, this.particleParams = { particlesSum: 1e5, inner: 0, outer: 2e3, maxVelocity: 50, mapUrl: "
|
|
2920
|
+
super({ ...bi, ...e4 }), this.name = "gui", this._gui = null, this.sceneFolder = null, this.controlFolder = null, this.meshFolder = null, this.animationFolder = null, this.selectPanel = null, this.modelListFolder = null, this.innerMeshListFolder = null, this.drawMeshListFolder = null, this.geoMapListFolder = null, this.particleListFolder = null, this.borderGroupListFolder = null, this.textMeshListFolder = null, this.designMeshListFolder = null, this.lightListFolder = null, this.handlerParams = { mode: "变换", isTransformChildren: false, openKey: false }, this.innerMeshParams = { geometryType: "立方体", materialType: "标准材质" }, this.drawParams = { mode: "围栏物体", pointMode: "场景交点", materialType: "标准材质" }, this.geoMapParams = { url: "", materialType: "标准材质" }, this.particleParams = { particlesSum: 1e5, inner: 0, outer: 2e3, maxVelocity: 50, mapUrl: "/img/snow.png", sportType: "全随机", shaderCodeName: "水波纹" }, this.borderGroupParams = { url: "https://geo.datav.aliyun.com/areas_v3/bound/100000.json", materialType: "基础材质", dlength: 0 }, this.textMeshParams = { fontLink: "/json/cn1.json", text: "", materialType: "标准材质" }, this.designMeshParams = { type: "镜面" }, this.lightParams = { lightType: "AmbientLight" };
|
|
2921
2921
|
}
|
|
2922
2922
|
onInstall() {
|
|
2923
2923
|
this.createGUI();
|
|
@@ -3240,7 +3240,7 @@ class Pi extends it {
|
|
|
3240
3240
|
if (!this.meshFolder) return;
|
|
3241
3241
|
const e4 = this.meshFolder.addFolder("三维地图");
|
|
3242
3242
|
this.geoMapListFolder = e4.addFolder("地图列表"), e4.add(this.geoMapParams, "url").name("地图数据地址"), e4.add(this.geoMapParams, "materialType", xi).name("地图材质类型"), e4.add({ fn: () => {
|
|
3243
|
-
const e5 = this.geoMapParams.url || "
|
|
3243
|
+
const e5 = this.geoMapParams.url || "/json/guangdong.json";
|
|
3244
3244
|
this.events.emit("geomap:load", { url: e5, materialType: this.geoMapParams.materialType });
|
|
3245
3245
|
} }, "fn").name("添加地图");
|
|
3246
3246
|
}
|
|
@@ -4419,7 +4419,7 @@ class er extends it {
|
|
|
4419
4419
|
return this.bodies;
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
|
-
const tr = { defaultFontUrl: "
|
|
4422
|
+
const tr = { defaultFontUrl: "/json/cn1.json", defaultSize: 1, defaultHeight: 0.2 };
|
|
4423
4423
|
class nr extends it {
|
|
4424
4424
|
constructor(e4) {
|
|
4425
4425
|
super({ ...tr, ...e4 }), this.name = "text", this.fontLoader = new ze(), this.fontCache = /* @__PURE__ */ new Map(), this.textMeshes = [];
|
|
@@ -6299,4 +6299,4 @@ export {
|
|
|
6299
6299
|
Xi as y,
|
|
6300
6300
|
$i as z
|
|
6301
6301
|
};
|
|
6302
|
-
//# sourceMappingURL=SceneConfigPlugin-
|
|
6302
|
+
//# sourceMappingURL=SceneConfigPlugin-B56mqeGd.js.map
|