@maptalks/vt 0.105.0 → 0.105.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.vt.d.ts +1 -1
- package/dist/maptalks.vt.es.js +11 -9
- package/dist/maptalks.vt.es.js.map +1 -1
- package/dist/maptalks.vt.js +276 -274
- package/dist/maptalks.vt.js.map +1 -1
- package/package.json +3 -3
package/dist/maptalks.vt.d.ts
CHANGED
package/dist/maptalks.vt.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/vt v0.105.
|
|
2
|
+
* @maptalks/vt v0.105.2
|
|
3
3
|
* LICENSE : undefined
|
|
4
4
|
* (c) 2016-2025 maptalks.org
|
|
5
5
|
*/
|
|
@@ -6411,11 +6411,12 @@ function D(e) {
|
|
|
6411
6411
|
E && (pe = 255 * (E(this.options.zoom, d) || 0));
|
|
6412
6412
|
const ge = Y && Y.length || 0;
|
|
6413
6413
|
this.ensureDataCapacity(4 * (ge + (Z && Z.length || 0)), l.length);
|
|
6414
|
-
const me = this.options.EXTENT, {altitudeScale: ye, altitudeProperty: xe, defaultAltitude: _e} = this.options, {altitude: ve} = S(e.feature, ye, xe, _e), be = (e, t, n, i, r, s, o) => {
|
|
6414
|
+
const me = this.options.EXTENT, {altitudeScale: ye, altitudeProperty: xe, defaultAltitude: _e} = this.options, {altitude: ve} = S(e.feature, ye, xe, _e), be = this.needAltitudeAttribute(), Ae = (e, t, n, i, r, s, o) => {
|
|
6415
6415
|
if (!t) return;
|
|
6416
6416
|
const a = e ? ge : 1;
|
|
6417
6417
|
for (let l = 0; l < t.length; l++) {
|
|
6418
6418
|
const c = t[l], {tl: f, tr: d, bl: g, br: m, tex: x} = c;
|
|
6419
|
+
let _;
|
|
6419
6420
|
this._fillPos(h, n, i, r, 10 * f.x, 10 * f.y, x.x, x.y + x.h, e, o), this._fillTextData(h, p, a, c.glyphOffset, s, y, s.axis, s.angleR),
|
|
6420
6421
|
this._fillFnTypeData(h, $, J, K, Q, ee, te, ne, re, se, oe, ae, q, pe, le, he, ce, ue, fe, de, W, X),
|
|
6421
6422
|
this._fillPos(h, n, i, r, 10 * d.x, 10 * d.y, x.x + x.w, x.y + x.h, e, o), this._fillTextData(h, p, a, c.glyphOffset, s, y, s.axis, s.angleR),
|
|
@@ -6424,16 +6425,16 @@ function D(e) {
|
|
|
6424
6425
|
this._fillFnTypeData(h, $, J, K, Q, ee, te, ne, re, se, oe, ae, q, pe, le, he, ce, ue, fe, de, W, X),
|
|
6425
6426
|
this._fillPos(h, n, i, r, 10 * m.x, 10 * m.y, x.x + x.w, x.y, e, o), this._fillTextData(h, p, a, c.glyphOffset, s, y, s.axis, s.angleR),
|
|
6426
6427
|
this._fillFnTypeData(h, $, J, K, Q, ee, te, ne, re, se, oe, ae, q, pe, le, he, ce, ue, fe, de, W, X),
|
|
6427
|
-
this.addElements(u, u + 1, u + 2), this.addElements(u + 1, u + 2, u + 3), u += 4
|
|
6428
|
-
|
|
6428
|
+
this.addElements(u, u + 1, u + 2), this.addElements(u + 1, u + 2, u + 3), u += 4,
|
|
6429
|
+
_ = be ? Math.max(Math.abs(n), Math.abs(i)) : Math.max(Math.abs(n), Math.abs(i), Math.abs(r)),
|
|
6429
6430
|
_ > this.maxPos && (this.maxPos = _);
|
|
6430
6431
|
}
|
|
6431
|
-
},
|
|
6432
|
+
}, Te = "text" === this.options.pluginType;
|
|
6432
6433
|
for (let e = 0; e < l.length; e++) {
|
|
6433
6434
|
const t = l[e], n = t.z || ve || 0;
|
|
6434
6435
|
if (me !== 1 / 0 && w(t, me)) continue;
|
|
6435
6436
|
const i = t.x, r = t.y;
|
|
6436
|
-
m &&
|
|
6437
|
+
m && Ae(!1, Z, i, r, n, t), g && (Te || Ae(!0, Y, i, r, n, t, !0), Ae(!0, Y, i, r, n, t, !1));
|
|
6437
6438
|
}
|
|
6438
6439
|
}
|
|
6439
6440
|
_fillPos(e, t, n, i, r, s, o, a, l, h) {
|
|
@@ -8081,7 +8082,7 @@ function D(e) {
|
|
|
8081
8082
|
let i;
|
|
8082
8083
|
n && (i = n(this.options.zoom, t) || [ 255, 255, 255, 255 ], ie(i) ? (this.dynamicAttrs.aColor = 1,
|
|
8083
8084
|
i = [ 0, 0, 0, 0 ]) : i = ht([], i));
|
|
8084
|
-
const r = this.data, s = this.symbol.markerSpacing || 250, o = this.symbol.markerPlacement || "point", a = "line" === this.symbol.markerRotationAlignment, l = this._getAnchors(e, s, o, a);
|
|
8085
|
+
const r = this.data, s = this.symbol.markerSpacing || 250, o = this.symbol.markerPlacement || "point", a = "line" === this.symbol.markerRotationAlignment, l = this._getAnchors(e, s, o, a), h = this.needAltitudeAttribute();
|
|
8085
8086
|
for (let e = 0; e < l.length; e++) {
|
|
8086
8087
|
const t = l[e];
|
|
8087
8088
|
if (this.fillPosition(this.data, t.x, t.y, t.z), a) {
|
|
@@ -8094,7 +8095,8 @@ function D(e) {
|
|
|
8094
8095
|
r.aColor[e++] = i[0], r.aColor[e++] = i[1], r.aColor[e++] = i[2], r.aColor[e++] = i[3],
|
|
8095
8096
|
r.aColor.currentIndex = e;
|
|
8096
8097
|
}
|
|
8097
|
-
|
|
8098
|
+
let n;
|
|
8099
|
+
n = h ? Math.max(Math.abs(t.x), Math.abs(t.y)) : Math.max(Math.abs(t.x), Math.abs(t.y), Math.abs(t.z)),
|
|
8098
8100
|
n > this.maxPos && (this.maxPos = n);
|
|
8099
8101
|
}
|
|
8100
8102
|
}
|
|
@@ -19989,5 +19991,5 @@ if (i.transcoders) {
|
|
|
19989
19991
|
|
|
19990
19992
|
export { Tl as ExtrudePolygonLayer, In as FillPainter, _o as FillPlugin, Il as FilterUtil, Co as GLTFPhongPlugin, ko as GLTFStandardPlugin, Do as GeoJSONVectorTileLayer, Oo as HeatmapPlugin, Mr as IconPainter, Ao as IconPlugin, bo as LineGradientPlugin, Fn as LinePainter, vo as LinePlugin, ca as LineStringLayer, Po as LitPlugin, Ro as MapboxVectorTileLayer, ws as NativeLinePainter, So as NativeLinePlugin, As as NativePointPainter, Pl as PackUtil, zs as PhongPainter, wo as PhongPlugin, la as PointLayer, da as PolygonLayer, kl as SYMBOLS_NEED_REBUILD_IN_VECTOR, Cl as SYMBOLS_NEED_REBUILD_IN_VT, ys as TextPainter, To as TextPlugin, Io as TubePlugin, gt as Vector3DLayer, lt as VectorTileLayer, qe as VectorTileLayerRenderer, Fo as WaterPlugin, Us as WireframePainter, Mo as WireframePlugin };
|
|
19991
19993
|
|
|
19992
|
-
"undefined" != typeof console && console.log("@maptalks/vt v0.105.
|
|
19994
|
+
"undefined" != typeof console && console.log("@maptalks/vt v0.105.2");
|
|
19993
19995
|
//# sourceMappingURL=maptalks.vt.es.js.map
|