@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.
- package/dist/maptalks.3dtiles.js +12 -10
- package/package.json +1 -1
package/dist/maptalks.3dtiles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/3dtiles v0.11.
|
|
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 =
|
|
5112
|
-
if (!
|
|
5113
|
-
const
|
|
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
|
|
5118
|
-
o[2] = b(
|
|
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
|
|
5121
|
-
i[0] = o.x, i[1] = o.y, 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
|
-
|
|
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.
|
|
5908
|
+
})), i.Map.VERSION, o.GroupGLLayer.VERSION, "undefined" != typeof console && console.log("@maptalks/3dtiles v0.11.2");
|
|
5907
5909
|
}));
|