@maptalks/vt 0.108.4 → 0.108.5
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 +21 -14
- package/dist/maptalks.vt.es.js.map +1 -1
- package/dist/maptalks.vt.js +21 -14
- 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.108.
|
|
2
|
+
* @maptalks/vt v0.108.5
|
|
3
3
|
* LICENSE : undefined
|
|
4
4
|
* (c) 2016-2025 maptalks.org
|
|
5
5
|
*/
|
|
@@ -12745,23 +12745,27 @@ class Gn extends xn {
|
|
|
12745
12745
|
} ];
|
|
12746
12746
|
}
|
|
12747
12747
|
paint(e) {
|
|
12748
|
-
|
|
12748
|
+
if (this.isShadowIncludeChanged(e)) {
|
|
12749
|
+
this.shader.dispose();
|
|
12750
|
+
const t = this._getExtraCommandProps();
|
|
12751
|
+
this._createShader(e, t);
|
|
12752
|
+
}
|
|
12749
12753
|
super.paint(e);
|
|
12750
12754
|
}
|
|
12751
12755
|
isEnableTileStencil(t) {
|
|
12752
12756
|
const n = "VectorTileLayer" === this.layer.getJSONType(), i = this.layer instanceof e.TileLayer;
|
|
12753
12757
|
return !!!(t && t.isRenderingTerrain && this.isTerrainSkin()) && (n || i && this.isOnly2D());
|
|
12754
12758
|
}
|
|
12755
|
-
|
|
12756
|
-
const
|
|
12759
|
+
_getExtraCommandProps() {
|
|
12760
|
+
const e = this.regl, t = this.canvas, n = {
|
|
12757
12761
|
x: (e, t) => t.viewport ? t.viewport.x : 0,
|
|
12758
12762
|
y: (e, t) => t.viewport ? t.viewport.y : 0,
|
|
12759
|
-
width: (e,
|
|
12760
|
-
height: (e,
|
|
12763
|
+
width: (e, n) => n.viewport ? n.viewport.width : t ? t.width : 1,
|
|
12764
|
+
height: (e, n) => n.viewport ? n.viewport.height : t ? t.height : 1
|
|
12761
12765
|
};
|
|
12762
|
-
this.renderer = new o.Renderer(
|
|
12763
|
-
|
|
12764
|
-
viewport:
|
|
12766
|
+
this.renderer = new o.Renderer(e);
|
|
12767
|
+
return {
|
|
12768
|
+
viewport: n,
|
|
12765
12769
|
stencil: {
|
|
12766
12770
|
enable: (e, t) => t.geometryProperties.is2D && this.isEnableTileStencil(t.painterContext),
|
|
12767
12771
|
func: {
|
|
@@ -12799,8 +12803,11 @@ class Gn extends xn {
|
|
|
12799
12803
|
offset: this.getPolygonOffset()
|
|
12800
12804
|
}
|
|
12801
12805
|
};
|
|
12802
|
-
|
|
12803
|
-
|
|
12806
|
+
}
|
|
12807
|
+
init(t) {
|
|
12808
|
+
const n = this._getExtraCommandProps();
|
|
12809
|
+
if (this._createShader(t, n), this.pickingFBO) {
|
|
12810
|
+
const t = [], i = this.layer instanceof e.TileLayer;
|
|
12804
12811
|
this.picking = [ new o.FBORayPicking(this.renderer, {
|
|
12805
12812
|
name: "fill-picking",
|
|
12806
12813
|
vert: _n,
|
|
@@ -12815,8 +12822,8 @@ class Gn extends xn {
|
|
|
12815
12822
|
return a.multiply(t, n.projViewMatrix, n.modelMatrix), t;
|
|
12816
12823
|
}
|
|
12817
12824
|
} ],
|
|
12818
|
-
extraCommandProps:
|
|
12819
|
-
enableStencil: () =>
|
|
12825
|
+
extraCommandProps: n,
|
|
12826
|
+
enableStencil: () => i && this.isOnly2D()
|
|
12820
12827
|
}, this.pickingFBO, this.getMap()) ];
|
|
12821
12828
|
}
|
|
12822
12829
|
}
|
|
@@ -20764,5 +20771,5 @@ if (r.transcoders) {
|
|
|
20764
20771
|
|
|
20765
20772
|
export { ia as BillBoardPainter, Aa as BillBoardPlugin, ph as ExtrudePolygonLayer, Gn as FillPainter, aa as FillPlugin, _h as FilterUtil, ya as GLTFPhongPlugin, xa as GLTFStandardPlugin, wa as GeoJSONVectorTileLayer, _a as HeatmapPlugin, Gr as IconPainter, ca as IconPlugin, ha as LineGradientPlugin, $n as LinePainter, la as LinePlugin, tl as LineStringLayer, ga as LitPlugin, ba as MapboxVectorTileLayer, Bo as NativeLinePainter, fa as NativeLinePlugin, zo as NativePointPainter, xh as PackUtil, os as PhongPainter, da as PhongPlugin, Qa as PointLayer, rl as PolygonLayer, Ah as SYMBOLS_NEED_REBUILD_IN_VECTOR, vh as SYMBOLS_NEED_REBUILD_IN_VT, sa as TerrainFlatMaskPainter, Ta as TerrainFlatMaskPlugin, Eo as TextPainter, ua as TextPlugin, ma as TubePlugin, _t as Vector3DLayer, ft as VectorTileLayer, Qe as VectorTileLayerRenderer, va as WaterPlugin, as as WireframePainter, pa as WireframePlugin };
|
|
20766
20773
|
|
|
20767
|
-
"undefined" != typeof console && console.log("@maptalks/vt v0.108.
|
|
20774
|
+
"undefined" != typeof console && console.log("@maptalks/vt v0.108.5");
|
|
20768
20775
|
//# sourceMappingURL=maptalks.vt.es.js.map
|