vis-core 0.12.27 → 0.12.29
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/index.js +2 -2
- package/dist/index.module.js +21 -7
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/MaterialList.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -40955,6 +40955,9 @@ class PM {
|
|
|
40955
40955
|
setObject3d(t, e, i) {
|
|
40956
40956
|
this.objectList.has(t) && console.warn(`ObjectList: ${t.uuid} already exists`), this.objectList.set(t, { name: e, meta: i }), this.emitObject3dChange();
|
|
40957
40957
|
}
|
|
40958
|
+
delObject3d(t) {
|
|
40959
|
+
this.objectList.delete(t), this.emitObject3dChange();
|
|
40960
|
+
}
|
|
40958
40961
|
changeObject3dName(t, e) {
|
|
40959
40962
|
this.objectList.forEach((i, s) => {
|
|
40960
40963
|
var o;
|
|
@@ -41029,7 +41032,7 @@ function Ql(n) {
|
|
|
41029
41032
|
const t = new t0();
|
|
41030
41033
|
return t.color.setScalar(n), t;
|
|
41031
41034
|
}
|
|
41032
|
-
const GX = "0.12.
|
|
41035
|
+
const GX = "0.12.29", a1 = !1;
|
|
41033
41036
|
class pl {
|
|
41034
41037
|
constructor(t, e = {}) {
|
|
41035
41038
|
P(this, "container");
|
|
@@ -41285,7 +41288,7 @@ class pl {
|
|
|
41285
41288
|
}
|
|
41286
41289
|
dispose() {
|
|
41287
41290
|
var t, e, i, s;
|
|
41288
|
-
this.loader.clearLoadObj(), (t = this.pencil) == null || t.dispose(), (e = this.pmremGenerator) == null || e.dispose(), (i = this.re) == null || i.dispose(), this.removeAllListeners(), this.event.removeAllListeners(), (s = this.checkDprTimer) == null || s.stop();
|
|
41291
|
+
this.loader.clearLoadObj(), (t = this.pencil) == null || t.dispose(), (e = this.pmremGenerator) == null || e.dispose(), (i = this.re) == null || i.dispose(), this.removeAllListeners(), this.event.removeAllListeners(), (s = this.checkDprTimer) == null || s.stop(), this.loadObjState && (this.loadObjState.length = 0);
|
|
41289
41292
|
}
|
|
41290
41293
|
}
|
|
41291
41294
|
P(pl, "VisName", "base");
|
|
@@ -42108,14 +42111,18 @@ const jM = {
|
|
|
42108
42111
|
penumbra: 1,
|
|
42109
42112
|
decay: 0
|
|
42110
42113
|
}), i = e.object3d;
|
|
42111
|
-
this.mList.changeObject3dName(i, "Shadow$1"), this.mList.changeObject3dName(i.target, "Shadow$1"), this.shadowMapLight = e, e.object3d.position.set(0.281, 32.487, 43.077), e.object3d.castShadow = !0
|
|
42112
|
-
|
|
42114
|
+
this.mList.changeObject3dName(i, "Shadow$1"), this.mList.changeObject3dName(i.target, "Shadow$1"), this.shadowMapLight = e, e.object3d.position.set(0.281, 32.487, 43.077), e.object3d.castShadow = !0;
|
|
42115
|
+
const s = yield this.drawController.draw("PlaneShadow");
|
|
42116
|
+
this.mList.setObject3d(s.object3d, "PlaneShadow"), this.map && this.map.areaArr.forEach((l) => {
|
|
42117
|
+
l.object3d.castShadow = !0;
|
|
42113
42118
|
});
|
|
42114
42119
|
});
|
|
42115
42120
|
}
|
|
42116
42121
|
shadowMapDisabled() {
|
|
42117
|
-
this.pencil.renderer.shadowMap.enabled = !1, this.shadowMapLight && (this.shadowMapLight.erase(), this.mList.removeObject3d(this.shadowMapLight.object3d))
|
|
42118
|
-
|
|
42122
|
+
this.pencil.renderer.shadowMap.enabled = !1, this.shadowMapLight && (this.shadowMapLight.erase(), this.mList.removeObject3d(this.shadowMapLight.object3d));
|
|
42123
|
+
const e = this.drawController.getObject("PlaneShadow");
|
|
42124
|
+
e && (this.mList.removeObject3d(e.object3d), e.erase()), this.map && this.map.areaArr.forEach((i) => {
|
|
42125
|
+
i.object3d.castShadow = !1;
|
|
42119
42126
|
});
|
|
42120
42127
|
}
|
|
42121
42128
|
getDepth(e) {
|
|
@@ -42390,7 +42397,14 @@ const jM = {
|
|
|
42390
42397
|
if (this.mapHistory.length > 1 && !this.isAnimating) {
|
|
42391
42398
|
this.isAnimating = !0;
|
|
42392
42399
|
const i = this.mapHistory.pop();
|
|
42393
|
-
i != null && i.map &&
|
|
42400
|
+
i != null && i.map && (yield new Promise((a) => {
|
|
42401
|
+
this.tween(i.map.position).to(
|
|
42402
|
+
{ z: this.mapObj.z + (this.mapObj.depth - i.depth) },
|
|
42403
|
+
e
|
|
42404
|
+
).onComplete(() => {
|
|
42405
|
+
a("");
|
|
42406
|
+
}).start();
|
|
42407
|
+
}), this.drawController.eraseWithoutMaterial(i.map));
|
|
42394
42408
|
const { map: s } = this.mapObj, l = s == null ? void 0 : s.findGroup(i == null ? void 0 : i.mapInfo.adcode);
|
|
42395
42409
|
l && l.show(), s && (this.eraseLabels(), this.options.showOneLevel ? s.show() : s.active(), this.options.drillDownHideParent && this.parentBg.forEach((a) => {
|
|
42396
42410
|
a.show();
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.12.
|
|
1
|
+
declare const _default: "0.12.29";
|
|
2
2
|
export default _default;
|
|
@@ -19,6 +19,7 @@ export default class MaterialList {
|
|
|
19
19
|
getShowMaterial(name: string): THREE.Material | THREE.Material[];
|
|
20
20
|
emitObject3dChange(): void;
|
|
21
21
|
setObject3d(object3d: THREE.Object3D, name: string, meta?: any): void;
|
|
22
|
+
delObject3d(object3d: THREE.Object3D): void;
|
|
22
23
|
changeObject3dName(object3d: THREE.Object3D, name: string): void;
|
|
23
24
|
removeObject3d(object3d: THREE.Object3D): void;
|
|
24
25
|
dispose(): void;
|