vis-core 0.21.68 → 0.21.69

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.
@@ -89,7 +89,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
89
89
  ).toString(CryptoJS.enc.Utf8), Jt = JSON.parse(Tt), $t = Date.now();
90
90
  return !Jt.s || Jt.s > $t ? (this.token = void 0, "") : Jt.e && Jt.e < $t ? (this.token = void 0, "") : (Jt.isValid = Yt, Jt);
91
91
  }
92
- }, version = "0.21.68";
92
+ }, version = "0.21.69";
93
93
  /**
94
94
  * @license
95
95
  * Copyright 2010-2024 Three.js Authors
@@ -93218,12 +93218,12 @@ let PlaneMap$1 = class extends C$1 {
93218
93218
  }
93219
93219
  addPlane(s, r) {
93220
93220
  return ti(this, null, function* () {
93221
- var Xe, Qe, Ke;
93221
+ var Qe, Ke, de;
93222
93222
  const { material: f } = r, st = this.geojson2Meta({
93223
93223
  type: "FeatureCollection",
93224
93224
  features: [s]
93225
93225
  }), ct = this.pencil.getPlugin("worker"), Zt = this.pencil.getPlugin("draw");
93226
- (Xe = r.topSegments) != null || this.options.topSegments;
93226
+ (Qe = r.topSegments) != null || this.options.topSegments;
93227
93227
  const { coords: Wt, properties: Yt } = st[0], vt = this.findGroup(this.getPropertiesKey(Yt)), Tt = yield Zt.draw("Group", {
93228
93228
  target: vt
93229
93229
  });
@@ -93238,7 +93238,7 @@ let PlaneMap$1 = class extends C$1 {
93238
93238
  hasBottom: !1,
93239
93239
  hasSide: !1,
93240
93240
  useGroups: 0,
93241
- splitPolygons: ((Qe = this.options.projection.rotate) == null ? void 0 : Qe[0]) === -160 ? 300 : 0
93241
+ splitPolygons: ((Ke = this.options.projection.rotate) == null ? void 0 : Ke[0]) === -160 ? 300 : 0
93242
93242
  }
93243
93243
  }),
93244
93244
  ct.geoGeometry("line", {
@@ -93246,17 +93246,21 @@ let PlaneMap$1 = class extends C$1 {
93246
93246
  coordinatesArr: Wt,
93247
93247
  lineWidth: [1],
93248
93248
  projection: this.options.projection,
93249
- splitPolygons: ((Ke = this.options.projection.rotate) == null ? void 0 : Ke[0]) === -160 ? 300 : 0
93249
+ splitPolygons: ((de = this.options.projection.rotate) == null ? void 0 : de[0]) === -160 ? 300 : 0
93250
93250
  }
93251
93251
  })
93252
- ]);
93252
+ ]), Xe = Math.max(
93253
+ this.options.onTop,
93254
+ ...this.extrudelineArr ? this.extrudelineArr.map((Je) => Je.object3d.renderOrder) : [],
93255
+ ...this.lineArr.map((Je) => Je.object3d.renderOrder)
93256
+ );
93253
93257
  return yield Promise.all([
93254
93258
  Zt.draw(
93255
93259
  "ExtrudePolygon",
93256
93260
  {
93257
93261
  geometry: Jt,
93258
93262
  material: f,
93259
- onTop: this.options.onTop
93263
+ onTop: Xe
93260
93264
  },
93261
93265
  Tt
93262
93266
  ),
@@ -93265,7 +93269,7 @@ let PlaneMap$1 = class extends C$1 {
93265
93269
  {
93266
93270
  geometry: $t,
93267
93271
  material: r.lineMaterial,
93268
- onTop: this.options.onTop + 2
93272
+ onTop: Xe + 1
93269
93273
  },
93270
93274
  Tt
93271
93275
  )
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.68";
1
+ declare const _default: "0.21.69";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.68",
3
+ "version": "0.21.69",
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",