vis-core 0.21.37 → 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.
@@ -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.37";
48352
+ const version = "0.21.38";
48353
48353
  class Event {
48354
48354
  constructor() {
48355
48355
  J0(this, "event", new EventEmitter());
@@ -52163,12 +52163,6 @@ class CityPlane extends D$1 {
52163
52163
  });
52164
52164
  this.water = c, c.position.z = 1e-3, this.add(c);
52165
52165
  }
52166
- render() {
52167
- const { material: s } = this.options;
52168
- s || this.pencil.installPlugins.get("materialList").setObject3d(this.object3d, "plane", {
52169
- baseObject: this
52170
- });
52171
- }
52172
52166
  }
52173
52167
  function clipGeojson(st, e) {
52174
52168
  const s = flatten$3(st).features, c = flatten$3(e).features, ct = {
@@ -52288,7 +52282,10 @@ class Building extends D$1 {
52288
52282
  );
52289
52283
  this.building[$e] || (this.building[$e] = []), this.building[$e].push(t0), t0.position.z = Number(_e) * (Zt || 1);
52290
52284
  }))
52291
- ), this.options.sideGradient && this.sideGradient(), this.object3d.name = "建筑组", vt.setObject3d(this.object3d, `building${$t ? "-grey" : ""}#group`);
52285
+ ), this.options.sideGradient && this.sideGradient(), this.object3d.name = "建筑组", Wt || vt.setObject3d(
52286
+ this.object3d,
52287
+ `building${$t ? "-grey" : ""}#group`
52288
+ );
52292
52289
  });
52293
52290
  }
52294
52291
  sideGradient(s = "#052438", c = 0.05 / 100) {
@@ -52511,7 +52508,7 @@ class Road extends D$1 {
52511
52508
  );
52512
52509
  this.linePrimary.push(Ke);
52513
52510
  }))
52514
- ), this.object3d.name = "道路组", Wt.setObject3d(this.object3d, `road${Yt ? "-grey" : ""}#group`);
52511
+ ), this.object3d.name = "道路组", c || Wt.setObject3d(this.object3d, `road${Yt ? "-grey" : ""}#group`);
52515
52512
  });
52516
52513
  }
52517
52514
  initBaseObjectUserData() {
@@ -52950,7 +52947,9 @@ const objs$3 = Bi(bi({}, objs$5), {
52950
52947
  },
52951
52948
  st.group
52952
52949
  );
52953
- st.options.bottomPlaneWater && Wt.addWater(), st.mList.changeObject3dKey(Wt.object3d, "map-$1"), Wt.position.copy(ct);
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);
52954
52953
  }
52955
52954
  });
52956
52955
  }, city350000 = (st) => {
@@ -53222,7 +53221,9 @@ class Map$1 extends Map$2 {
53222
53221
  },
53223
53222
  this.group
53224
53223
  );
53225
- this.options.bottomPlaneWater && Yt.addWater(), this.mList.changeObject3dKey(Yt.object3d, "map-$1"), Yt.position.copy(Zt), Yt.position.z -= 0.1;
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;
53226
53227
  }
53227
53228
  if (this.options.mapBoundary) {
53228
53229
  const Yt = new Box3().setFromObject((Wt = this.map) == null ? void 0 : Wt.object3d);
@@ -53657,7 +53658,9 @@ class City$1 extends Base {
53657
53658
  },
53658
53659
  Zt ? this.outAreaGroup : this.innerAreaGroup
53659
53660
  );
53660
- qe.position.copy(Je), this.mList.setObject3d(qe.object3d, "city-plane"), yield Promise.all(
53661
+ qe.position.copy(Je), this.options.grey || this.mList.setObject3d(qe.object3d, "city-plane", {
53662
+ baseObject: qe
53663
+ }), yield Promise.all(
53661
53664
  [
53662
53665
  vt && this.options.showBuilding && this.drawBuilding({
53663
53666
  json: vt,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.37";
1
+ declare const _default: "0.21.38";
2
2
  export default _default;
@@ -15,6 +15,5 @@ export default class extends BaseObject {
15
15
  water?: Water;
16
16
  create(): Promise<void>;
17
17
  addWater(): void;
18
- render(): void;
19
18
  }
20
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.37",
3
+ "version": "0.21.38",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",