vis-core 0.21.36 → 0.21.38
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/getVisConfig.d.ts +1 -0
- package/dist/index.js +6 -6
- package/dist/index.module.js +19 -17
- package/dist/version.d.ts +1 -1
- package/dist/vis/city/objects/plane/index.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -48349,7 +48349,7 @@ function createAreaLightMaterial(st) {
|
|
|
48349
48349
|
const e = new MeshBasicMaterial();
|
|
48350
48350
|
return e.color.setScalar(st), e;
|
|
48351
48351
|
}
|
|
48352
|
-
const version = "0.21.
|
|
48352
|
+
const version = "0.21.38";
|
|
48353
48353
|
class Event {
|
|
48354
48354
|
constructor() {
|
|
48355
48355
|
J0(this, "event", new EventEmitter());
|
|
@@ -51168,9 +51168,7 @@ const objs$4 = Bi(bi({}, objs$5), {
|
|
|
51168
51168
|
show() {
|
|
51169
51169
|
return ii(this, null, function* () {
|
|
51170
51170
|
if (this.showState || this.options.disableInitShow) return;
|
|
51171
|
-
|
|
51172
|
-
enableTransition: !1
|
|
51173
|
-
})), dn(pn.prototype, this, "show").call(this);
|
|
51171
|
+
dn(pn.prototype, this, "show").call(this);
|
|
51174
51172
|
const s = this.drawController.group;
|
|
51175
51173
|
this.mapHistory[0] && (s.position.z = -this.mapHistory[0].depth, yield new Promise((c) => {
|
|
51176
51174
|
new Tween(s.position).to(
|
|
@@ -52165,12 +52163,6 @@ class CityPlane extends D$1 {
|
|
|
52165
52163
|
});
|
|
52166
52164
|
this.water = c, c.position.z = 1e-3, this.add(c);
|
|
52167
52165
|
}
|
|
52168
|
-
render() {
|
|
52169
|
-
const { material: s } = this.options;
|
|
52170
|
-
s || this.pencil.installPlugins.get("materialList").setObject3d(this.object3d, "plane", {
|
|
52171
|
-
baseObject: this
|
|
52172
|
-
});
|
|
52173
|
-
}
|
|
52174
52166
|
}
|
|
52175
52167
|
function clipGeojson(st, e) {
|
|
52176
52168
|
const s = flatten$3(st).features, c = flatten$3(e).features, ct = {
|
|
@@ -52290,7 +52282,10 @@ class Building extends D$1 {
|
|
|
52290
52282
|
);
|
|
52291
52283
|
this.building[$e] || (this.building[$e] = []), this.building[$e].push(t0), t0.position.z = Number(_e) * (Zt || 1);
|
|
52292
52284
|
}))
|
|
52293
|
-
), this.options.sideGradient && this.sideGradient(), this.object3d.name = "建筑组", vt.setObject3d(
|
|
52285
|
+
), this.options.sideGradient && this.sideGradient(), this.object3d.name = "建筑组", Wt || vt.setObject3d(
|
|
52286
|
+
this.object3d,
|
|
52287
|
+
`building${$t ? "-grey" : ""}#group`
|
|
52288
|
+
);
|
|
52294
52289
|
});
|
|
52295
52290
|
}
|
|
52296
52291
|
sideGradient(s = "#052438", c = 0.05 / 100) {
|
|
@@ -52513,7 +52508,7 @@ class Road extends D$1 {
|
|
|
52513
52508
|
);
|
|
52514
52509
|
this.linePrimary.push(Ke);
|
|
52515
52510
|
}))
|
|
52516
|
-
), this.object3d.name = "道路组", Wt.setObject3d(this.object3d, `road${Yt ? "-grey" : ""}#group`);
|
|
52511
|
+
), this.object3d.name = "道路组", c || Wt.setObject3d(this.object3d, `road${Yt ? "-grey" : ""}#group`);
|
|
52517
52512
|
});
|
|
52518
52513
|
}
|
|
52519
52514
|
initBaseObjectUserData() {
|
|
@@ -52952,7 +52947,9 @@ const objs$3 = Bi(bi({}, objs$5), {
|
|
|
52952
52947
|
},
|
|
52953
52948
|
st.group
|
|
52954
52949
|
);
|
|
52955
|
-
st.
|
|
52950
|
+
st.mList.setObject3d(Wt.object3d, "plane", {
|
|
52951
|
+
baseObject: Wt
|
|
52952
|
+
}), st.options.bottomPlaneWater && Wt.addWater(), st.mList.changeObject3dKey(Wt.object3d, "map-$1"), Wt.position.copy(ct);
|
|
52956
52953
|
}
|
|
52957
52954
|
});
|
|
52958
52955
|
}, city350000 = (st) => {
|
|
@@ -53224,7 +53221,9 @@ class Map$1 extends Map$2 {
|
|
|
53224
53221
|
},
|
|
53225
53222
|
this.group
|
|
53226
53223
|
);
|
|
53227
|
-
this.
|
|
53224
|
+
this.mList.setObject3d(Yt.object3d, "map-plane", {
|
|
53225
|
+
baseObject: Yt
|
|
53226
|
+
}), this.options.bottomPlaneWater && Yt.addWater(), Yt.position.copy(Zt), Yt.position.z -= 0.1;
|
|
53228
53227
|
}
|
|
53229
53228
|
if (this.options.mapBoundary) {
|
|
53230
53229
|
const Yt = new Box3().setFromObject((Wt = this.map) == null ? void 0 : Wt.object3d);
|
|
@@ -53659,7 +53658,9 @@ class City$1 extends Base {
|
|
|
53659
53658
|
},
|
|
53660
53659
|
Zt ? this.outAreaGroup : this.innerAreaGroup
|
|
53661
53660
|
);
|
|
53662
|
-
qe.position.copy(Je), this.mList.setObject3d(qe.object3d, "city-plane"
|
|
53661
|
+
qe.position.copy(Je), this.options.grey || this.mList.setObject3d(qe.object3d, "city-plane", {
|
|
53662
|
+
baseObject: qe
|
|
53663
|
+
}), yield Promise.all(
|
|
53663
53664
|
[
|
|
53664
53665
|
vt && this.options.showBuilding && this.drawBuilding({
|
|
53665
53666
|
json: vt,
|
|
@@ -54864,7 +54865,7 @@ const getMapConfig = (c, ...ct) => ii(void 0, [c, ...ct], function* (st, e = b,
|
|
|
54864
54865
|
bbox: Wt,
|
|
54865
54866
|
jsonName: ec(Yt, `${st}`)
|
|
54866
54867
|
};
|
|
54867
|
-
}), access = {
|
|
54868
|
+
}), removeCameraHistory = (st) => st.filter((e) => !(e.objectUuid === "camera" && ["SetPosition", "SetTarget"].includes(e.type))), access = {
|
|
54868
54869
|
set token(st) {
|
|
54869
54870
|
accessToken.token = st;
|
|
54870
54871
|
}
|
|
@@ -54884,5 +54885,6 @@ export {
|
|
|
54884
54885
|
getCityConfig,
|
|
54885
54886
|
getMap2Config,
|
|
54886
54887
|
getMap2WithCityConfig,
|
|
54887
|
-
getMapConfig
|
|
54888
|
+
getMapConfig,
|
|
54889
|
+
removeCameraHistory
|
|
54888
54890
|
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.38";
|
|
2
2
|
export default _default;
|