@maptalks/vt 0.106.0 → 0.106.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/vt v0.106.0
2
+ * @maptalks/vt v0.106.2
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2025 maptalks.org
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/vt v0.106.0
2
+ * @maptalks/vt v0.106.2
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2025 maptalks.org
5
5
  */
@@ -17230,18 +17230,24 @@ const {PackUtil: qs} = H(), $s = [], Js = [], Ks = [], Qs = [], eo = [], to = []
17230
17230
  direction: this.dataConfig.direction || 0,
17231
17231
  scaleVertex: !0
17232
17232
  }, u = this._gltfPack[0][0], {aPosition: f, aAltitude: d, aPickingId: p} = s, g = new i(0, 0, 0), m = new i(0, 0, 0), y = [], x = d ? [] : y, _ = [], v = [], b = [], A = [], T = [], S = this.layer.getTileSize().width / n * this.layer.getRenderer().getTileGLScale(r), w = this.layer.getRenderer().getZScale();
17233
+ let M = p[0];
17233
17234
  for (let e = 0; e < f.length - a; e += a) {
17235
+ const t = p[e / a + 1];
17236
+ if (t !== M) {
17237
+ M = t;
17238
+ continue;
17239
+ }
17234
17240
  d ? o.set(A, f[e], f[e + 1], d[e / a]) : qs.unpackPosition(A, f[e], f[e + 1], f[e + 2]);
17235
- const [t, n, i] = A;
17236
- let r = e + a;
17237
- d ? o.set(T, f[r], f[r + 1], d[r / a]) : qs.unpackPosition(T, f[r], f[r + 1], f[r + 2]);
17238
- const [s, h, M] = T, P = p[e / a], I = g.set(t * S, n * S, i * w), C = m.set(s * S, h * S, M * w), k = I.distanceTo(C), F = u.arrangeAlongLine(I, C, k, l, 1, c);
17239
- for (let e = 0; e < F.length; e++) {
17240
- const r = F[e];
17241
- g.set(t, n, i), m.set(s, h, M);
17242
- const o = co(g, m, r.t);
17243
- y.push(o.x, o.y), x.push(o.z), _.push(P), v.push(-r.rotationZ * Math.PI / 180),
17244
- b.push(r.rotationXY * Math.PI / 180);
17241
+ const [n, i, r] = A;
17242
+ let s = e + a;
17243
+ d ? o.set(T, f[s], f[s + 1], d[s / a]) : qs.unpackPosition(T, f[s], f[s + 1], f[s + 2]);
17244
+ const [h, P, I] = T, C = p[e / a], k = g.set(n * S, i * S, r * w), F = m.set(h * S, P * S, I * w), O = k.distanceTo(F), R = u.arrangeAlongLine(k, F, O, l, 1, c);
17245
+ for (let e = 0; e < R.length; e++) {
17246
+ const t = R[e];
17247
+ g.set(n, i, r), m.set(h, P, I);
17248
+ const s = co(g, m, t.t);
17249
+ y.push(s.x, s.y), x.push(s.z), _.push(C), v.push(-t.rotationZ * Math.PI / 180),
17250
+ b.push(t.rotationXY * Math.PI / 180);
17245
17251
  }
17246
17252
  }
17247
17253
  t.data = {
@@ -20044,5 +20050,5 @@ if (r.transcoders) {
20044
20050
 
20045
20051
  export { Pl as ExtrudePolygonLayer, Cn as FillPainter, To as FillPlugin, Ol as FilterUtil, Ro as GLTFPhongPlugin, Eo as GLTFStandardPlugin, zo as GeoJSONVectorTileLayer, Do as HeatmapPlugin, Pr as IconPainter, Mo as IconPlugin, wo as LineGradientPlugin, Rn as LinePainter, So as LinePlugin, pa as LineStringLayer, Fo as LitPlugin, Ho as MapboxVectorTileLayer, Ms as NativeLinePainter, Io as NativeLinePlugin, Ts as NativePointPainter, Fl as PackUtil, Vs as PhongPainter, Co as PhongPlugin, fa as PointLayer, ya as PolygonLayer, El as SYMBOLS_NEED_REBUILD_IN_VECTOR, Rl as SYMBOLS_NEED_REBUILD_IN_VT, xs as TextPainter, Po as TextPlugin, Oo as TubePlugin, mt as Vector3DLayer, ht as VectorTileLayer, $e as VectorTileLayerRenderer, Lo as WaterPlugin, Bs as WireframePainter, ko as WireframePlugin };
20046
20052
 
20047
- "undefined" != typeof console && console.log("@maptalks/vt v0.106.0");
20053
+ "undefined" != typeof console && console.log("@maptalks/vt v0.106.2");
20048
20054
  //# sourceMappingURL=maptalks.vt.es.js.map