@maptalks/3dtiles 0.11.1 → 0.11.2

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/3dtiles v0.11.1
2
+ * @maptalks/3dtiles v0.11.2
3
3
  * LICENSE : UNLICENSED
4
4
  * (c) 2016-2022 maptalks.com
5
5
  */
@@ -5108,19 +5108,21 @@
5108
5108
  this.An(t));
5109
5109
  }
5110
5110
  An(t) {
5111
- const e = this.options.services[t.te].heightOffset || 0, r = this.options.offset, s = y(r) || r[0] || r[1];
5112
- if (!t.boundingVolume || !e && n.mat4.exactEquals(t.matrix, Nn) && !s) return;
5113
- const i = t.boundingVolume, {region: o, box: a, sphere: c} = i;
5111
+ const e = t.boundingVolume;
5112
+ if (!e || e.in) return;
5113
+ const r = this.options.services[t.te].heightOffset || 0, s = this.options.offset, i = y(s) || s[0] || s[1];
5114
+ if (!t.boundingVolume || !r && n.mat4.exactEquals(t.matrix, Nn) && !i) return;
5115
+ const {region: o, box: a, sphere: c} = e;
5114
5116
  if (o) {
5115
5117
  const t = this.On([ p(o[0]), p(o[1]) ]);
5116
5118
  o[0] = b(t.x), o[1] = b(t.y);
5117
- const n = this.On([ p(o[2]), p(o[3]) ]);
5118
- o[2] = b(n.x), o[3] = b(n.y), o[4] += e, o[5] += e;
5119
+ const e = this.On([ p(o[2]), p(o[3]) ]);
5120
+ o[2] = b(e.x), o[3] = b(e.y), o[4] += r, o[5] += r;
5119
5121
  } else if (a || c) {
5120
- const r = a || c, s = n.vec3.transformMat4(Sn, r, t.matrix), i = Wt(xn, s), o = this.On([ i[0], i[1] ]);
5121
- i[0] = o.x, i[1] = o.y, i[2] += e, $t(r, b(i[0]), b(i[1]), i[2]);
5122
+ const e = a || c, s = n.vec3.transformMat4(Sn, e, t.matrix), i = Wt(xn, s), o = this.On([ i[0], i[1] ]);
5123
+ i[0] = o.x, i[1] = o.y, i[2] += r, $t(e, b(i[0]), b(i[1]), i[2]);
5122
5124
  }
5123
- i.in = !0;
5125
+ e.in = !0;
5124
5126
  }
5125
5127
  Tn(t) {
5126
5128
  return void 0 === t.geometricError || !t.boundingVolume;
@@ -5903,5 +5905,5 @@
5903
5905
  t.Geo3DTransform = re, Object.defineProperty(t, "t", {
5904
5906
  value: !0
5905
5907
  });
5906
- })), i.Map.VERSION, o.GroupGLLayer.VERSION, "undefined" != typeof console && console.log("@maptalks/3dtiles v0.11.1");
5908
+ })), i.Map.VERSION, o.GroupGLLayer.VERSION, "undefined" != typeof console && console.log("@maptalks/3dtiles v0.11.2");
5907
5909
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptalks/3dtiles",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "3d tiles layer for maptalks",
5
5
  "main": "dist/maptalks.3dtiles.js",
6
6
  "module": "dist/maptalks.3dtiles.es.js",