@maptalks/vt 0.120.0 → 0.121.0

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.120.0
2
+ * @maptalks/vt v0.121.0
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2026 maptalks.org
5
5
  */
@@ -163,7 +163,7 @@ declare class VectorTileLayer extends maptalks.TileLayer {
163
163
  * @return feature state
164
164
  */
165
165
  getFeatureState(source: any): unknown;
166
- protected _prepareOptions(): void;
166
+ _prepareOptions(): void;
167
167
  forceReload(): this;
168
168
  onWorkerReady(): void;
169
169
  /**
@@ -502,8 +502,7 @@ declare class GeoJSONVectorTileLayer extends VectorTileLayer {
502
502
  options: GeoJSONVectorTileLayerOptionsType;
503
503
  features: Record<string, any>;
504
504
  constructor(id: string, options: GeoJSONVectorTileLayerParamOptionsType);
505
- onAdd(): void;
506
- protected _prepareOptions(): void;
505
+ _prepareOptions(): void;
507
506
  getWorkerOptions(): Record<string, any>;
508
507
  setData(data: any): this;
509
508
  getExtent(): maptalks.Extent;
@@ -793,7 +792,7 @@ declare class TileStencilRenderer {
793
792
  _runFilter(m: any): any;
794
793
  getMeshCommand(device: any, mesh: any, renderProps: any): any;
795
794
  _cmdKeys: {};
796
- getShaderCommandKey(device: any, mesh: any, renderProps: any): any;
795
+ getShaderCommandKey(device: any, mesh: any, renderProps: any): string;
797
796
  createMeshCommand(device: any, mesh: reshader.Mesh, commandProps: any, renderProps: any): any;
798
797
  _compileWGSLSource(defines: any): {
799
798
  vert: any;
@@ -824,7 +823,6 @@ declare class TileStencilRenderer {
824
823
  options: any;
825
824
  width: number;
826
825
  height: number;
827
- _destroyed: boolean;
828
826
  readonly color: {
829
827
  texture: GPUTexture;
830
828
  device: any;
@@ -837,7 +835,12 @@ declare class TileStencilRenderer {
837
835
  resize(width: any, height: any): void;
838
836
  update(config: any): void;
839
837
  _updateTexture(): void;
840
- getMipLevelCount(): any;
838
+ _isDirty(newConfig: any): boolean;
839
+ _getSize(config: any): {
840
+ width: any;
841
+ height: any;
842
+ };
843
+ getMipLevelCount(data?: any): any;
841
844
  fillData(texture: any, width: any, height: any): void;
842
845
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
843
846
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -848,6 +851,7 @@ declare class TileStencilRenderer {
848
851
  destroy(): void;
849
852
  }[];
850
853
  resize(width: any, height: any): void;
854
+ getCommandKey(): string;
851
855
  _update(): void;
852
856
  getRenderPassDescriptor(): GPURenderPassDescriptor;
853
857
  setClearOptions(options: any): void;
@@ -860,7 +864,6 @@ declare class TileStencilRenderer {
860
864
  options: any;
861
865
  width: number;
862
866
  height: number;
863
- _destroyed: boolean;
864
867
  readonly color: {
865
868
  texture: GPUTexture;
866
869
  device: any;
@@ -873,7 +876,12 @@ declare class TileStencilRenderer {
873
876
  resize(width: any, height: any): void;
874
877
  update(config: any): void;
875
878
  _updateTexture(): void;
876
- getMipLevelCount(): any;
879
+ _isDirty(newConfig: any): boolean;
880
+ _getSize(config: any): {
881
+ width: any;
882
+ height: any;
883
+ };
884
+ getMipLevelCount(data?: any): any;
877
885
  fillData(texture: any, width: any, height: any): void;
878
886
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
879
887
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -884,6 +892,7 @@ declare class TileStencilRenderer {
884
892
  destroy(): void;
885
893
  }[];
886
894
  resize(width: any, height: any): void;
895
+ getCommandKey(): string;
887
896
  _update(): void;
888
897
  getRenderPassDescriptor(): GPURenderPassDescriptor;
889
898
  setClearOptions(options: any): void;
@@ -902,7 +911,6 @@ declare class TileStencilRenderer {
902
911
  options: any;
903
912
  width: number;
904
913
  height: number;
905
- _destroyed: boolean;
906
914
  readonly color: {
907
915
  texture: GPUTexture;
908
916
  device: any;
@@ -915,7 +923,12 @@ declare class TileStencilRenderer {
915
923
  resize(width: any, height: any): void;
916
924
  update(config: any): void;
917
925
  _updateTexture(): void;
918
- getMipLevelCount(): any;
926
+ _isDirty(newConfig: any): boolean;
927
+ _getSize(config: any): {
928
+ width: any;
929
+ height: any;
930
+ };
931
+ getMipLevelCount(data?: any): any;
919
932
  fillData(texture: any, width: any, height: any): void;
920
933
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
921
934
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -926,6 +939,7 @@ declare class TileStencilRenderer {
926
939
  destroy(): void;
927
940
  }[];
928
941
  resize(width: any, height: any): void;
942
+ getCommandKey(): string;
929
943
  _update(): void;
930
944
  getRenderPassDescriptor(): GPURenderPassDescriptor;
931
945
  setClearOptions(options: any): void;
@@ -945,7 +959,12 @@ declare class TileStencilRenderer {
945
959
  resize(width: any, height: any): void;
946
960
  update(config: any): void;
947
961
  _updateTexture(): void;
948
- getMipLevelCount(): any;
962
+ _isDirty(newConfig: any): boolean;
963
+ _getSize(config: any): {
964
+ width: any;
965
+ height: any;
966
+ };
967
+ getMipLevelCount(data?: any): any;
949
968
  fillData(texture: any, width: any, height: any): void;
950
969
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
951
970
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -969,6 +988,11 @@ declare class TileStencilRenderer {
969
988
  resize(width: any, height: any): void;
970
989
  update(config: any): void;
971
990
  _updateTexture(): void;
991
+ _isDirty(newConfig: any): boolean;
992
+ _getSize(config: any): {
993
+ width: any;
994
+ height: any;
995
+ };
972
996
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
973
997
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
974
998
  _fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
@@ -1123,9 +1147,9 @@ declare class TileStencilRenderer {
1123
1147
  options: any;
1124
1148
  width: number;
1125
1149
  height: number;
1126
- _destroyed: boolean;
1127
1150
  readonly color: any[];
1128
1151
  resize(width: any, height: any): void;
1152
+ getCommandKey(): string;
1129
1153
  _update(): void;
1130
1154
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1131
1155
  setClearOptions(options: any): void;
@@ -1138,9 +1162,9 @@ declare class TileStencilRenderer {
1138
1162
  options: any;
1139
1163
  width: number;
1140
1164
  height: number;
1141
- _destroyed: boolean;
1142
1165
  readonly color: any[];
1143
1166
  resize(width: any, height: any): void;
1167
+ getCommandKey(): string;
1144
1168
  _update(): void;
1145
1169
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1146
1170
  setClearOptions(options: any): void;
@@ -1159,9 +1183,9 @@ declare class TileStencilRenderer {
1159
1183
  options: any;
1160
1184
  width: number;
1161
1185
  height: number;
1162
- _destroyed: boolean;
1163
1186
  readonly color: any[];
1164
1187
  resize(width: any, height: any): void;
1188
+ getCommandKey(): string;
1165
1189
  _update(): void;
1166
1190
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1167
1191
  setClearOptions(options: any): void;
@@ -1184,6 +1208,11 @@ declare class TileStencilRenderer {
1184
1208
  resize(width: any, height: any): void;
1185
1209
  update(config: any): void;
1186
1210
  _updateTexture(): void;
1211
+ _isDirty(newConfig: any): boolean;
1212
+ _getSize(config: any): {
1213
+ width: any;
1214
+ height: any;
1215
+ };
1187
1216
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1188
1217
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
1189
1218
  _fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
@@ -1210,7 +1239,12 @@ declare class TileStencilRenderer {
1210
1239
  resize(width: any, height: any): void;
1211
1240
  update(config: any): void;
1212
1241
  _updateTexture(): void;
1213
- getMipLevelCount(): any;
1242
+ _isDirty(newConfig: any): boolean;
1243
+ _getSize(config: any): {
1244
+ width: any;
1245
+ height: any;
1246
+ };
1247
+ getMipLevelCount(data?: any): any;
1214
1248
  fillData(texture: any, width: any, height: any): void;
1215
1249
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1216
1250
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1385,9 +1419,9 @@ declare class TileStencilRenderer {
1385
1419
  options: any;
1386
1420
  width: number;
1387
1421
  height: number;
1388
- _destroyed: boolean;
1389
1422
  readonly color: any[];
1390
1423
  resize(width: any, height: any): void;
1424
+ getCommandKey(): string;
1391
1425
  _update(): void;
1392
1426
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1393
1427
  setClearOptions(options: any): void;
@@ -1400,9 +1434,9 @@ declare class TileStencilRenderer {
1400
1434
  options: any;
1401
1435
  width: number;
1402
1436
  height: number;
1403
- _destroyed: boolean;
1404
1437
  readonly color: any[];
1405
1438
  resize(width: any, height: any): void;
1439
+ getCommandKey(): string;
1406
1440
  _update(): void;
1407
1441
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1408
1442
  setClearOptions(options: any): void;
@@ -1421,9 +1455,9 @@ declare class TileStencilRenderer {
1421
1455
  options: any;
1422
1456
  width: number;
1423
1457
  height: number;
1424
- _destroyed: boolean;
1425
1458
  readonly color: any[];
1426
1459
  resize(width: any, height: any): void;
1460
+ getCommandKey(): string;
1427
1461
  _update(): void;
1428
1462
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1429
1463
  setClearOptions(options: any): void;
@@ -1446,6 +1480,11 @@ declare class TileStencilRenderer {
1446
1480
  resize(width: any, height: any): void;
1447
1481
  update(config: any): void;
1448
1482
  _updateTexture(): void;
1483
+ _isDirty(newConfig: any): boolean;
1484
+ _getSize(config: any): {
1485
+ width: any;
1486
+ height: any;
1487
+ };
1449
1488
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1450
1489
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
1451
1490
  _fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
@@ -1472,7 +1511,12 @@ declare class TileStencilRenderer {
1472
1511
  resize(width: any, height: any): void;
1473
1512
  update(config: any): void;
1474
1513
  _updateTexture(): void;
1475
- getMipLevelCount(): any;
1514
+ _isDirty(newConfig: any): boolean;
1515
+ _getSize(config: any): {
1516
+ width: any;
1517
+ height: any;
1518
+ };
1519
+ getMipLevelCount(data?: any): any;
1476
1520
  fillData(texture: any, width: any, height: any): void;
1477
1521
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1478
1522
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1658,9 +1702,9 @@ declare class TileStencilRenderer {
1658
1702
  options: any;
1659
1703
  width: number;
1660
1704
  height: number;
1661
- _destroyed: boolean;
1662
1705
  readonly color: any[];
1663
1706
  resize(width: any, height: any): void;
1707
+ getCommandKey(): string;
1664
1708
  _update(): void;
1665
1709
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1666
1710
  setClearOptions(options: any): void;
@@ -1673,9 +1717,9 @@ declare class TileStencilRenderer {
1673
1717
  options: any;
1674
1718
  width: number;
1675
1719
  height: number;
1676
- _destroyed: boolean;
1677
1720
  readonly color: any[];
1678
1721
  resize(width: any, height: any): void;
1722
+ getCommandKey(): string;
1679
1723
  _update(): void;
1680
1724
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1681
1725
  setClearOptions(options: any): void;
@@ -1694,9 +1738,9 @@ declare class TileStencilRenderer {
1694
1738
  options: any;
1695
1739
  width: number;
1696
1740
  height: number;
1697
- _destroyed: boolean;
1698
1741
  readonly color: any[];
1699
1742
  resize(width: any, height: any): void;
1743
+ getCommandKey(): string;
1700
1744
  _update(): void;
1701
1745
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1702
1746
  setClearOptions(options: any): void;
@@ -1719,6 +1763,11 @@ declare class TileStencilRenderer {
1719
1763
  resize(width: any, height: any): void;
1720
1764
  update(config: any): void;
1721
1765
  _updateTexture(): void;
1766
+ _isDirty(newConfig: any): boolean;
1767
+ _getSize(config: any): {
1768
+ width: any;
1769
+ height: any;
1770
+ };
1722
1771
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1723
1772
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
1724
1773
  _fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
@@ -1745,7 +1794,12 @@ declare class TileStencilRenderer {
1745
1794
  resize(width: any, height: any): void;
1746
1795
  update(config: any): void;
1747
1796
  _updateTexture(): void;
1748
- getMipLevelCount(): any;
1797
+ _isDirty(newConfig: any): boolean;
1798
+ _getSize(config: any): {
1799
+ width: any;
1800
+ height: any;
1801
+ };
1802
+ getMipLevelCount(data?: any): any;
1749
1803
  fillData(texture: any, width: any, height: any): void;
1750
1804
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1751
1805
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1801,7 +1855,6 @@ declare class TileStencilRenderer {
1801
1855
  options: any;
1802
1856
  width: number;
1803
1857
  height: number;
1804
- _destroyed: boolean;
1805
1858
  readonly color: {
1806
1859
  texture: GPUTexture;
1807
1860
  device: any;
@@ -1814,7 +1867,12 @@ declare class TileStencilRenderer {
1814
1867
  resize(width: any, height: any): void;
1815
1868
  update(config: any): void;
1816
1869
  _updateTexture(): void;
1817
- getMipLevelCount(): any;
1870
+ _isDirty(newConfig: any): boolean;
1871
+ _getSize(config: any): {
1872
+ width: any;
1873
+ height: any;
1874
+ };
1875
+ getMipLevelCount(data?: any): any;
1818
1876
  fillData(texture: any, width: any, height: any): void;
1819
1877
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1820
1878
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1825,6 +1883,7 @@ declare class TileStencilRenderer {
1825
1883
  destroy(): void;
1826
1884
  }[];
1827
1885
  resize(width: any, height: any): void;
1886
+ getCommandKey(): string;
1828
1887
  _update(): void;
1829
1888
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1830
1889
  setClearOptions(options: any): void;
@@ -1837,7 +1896,6 @@ declare class TileStencilRenderer {
1837
1896
  options: any;
1838
1897
  width: number;
1839
1898
  height: number;
1840
- _destroyed: boolean;
1841
1899
  readonly color: {
1842
1900
  texture: GPUTexture;
1843
1901
  device: any;
@@ -1850,7 +1908,12 @@ declare class TileStencilRenderer {
1850
1908
  resize(width: any, height: any): void;
1851
1909
  update(config: any): void;
1852
1910
  _updateTexture(): void;
1853
- getMipLevelCount(): any;
1911
+ _isDirty(newConfig: any): boolean;
1912
+ _getSize(config: any): {
1913
+ width: any;
1914
+ height: any;
1915
+ };
1916
+ getMipLevelCount(data?: any): any;
1854
1917
  fillData(texture: any, width: any, height: any): void;
1855
1918
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1856
1919
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1861,6 +1924,7 @@ declare class TileStencilRenderer {
1861
1924
  destroy(): void;
1862
1925
  }[];
1863
1926
  resize(width: any, height: any): void;
1927
+ getCommandKey(): string;
1864
1928
  _update(): void;
1865
1929
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1866
1930
  setClearOptions(options: any): void;
@@ -1879,7 +1943,6 @@ declare class TileStencilRenderer {
1879
1943
  options: any;
1880
1944
  width: number;
1881
1945
  height: number;
1882
- _destroyed: boolean;
1883
1946
  readonly color: {
1884
1947
  texture: GPUTexture;
1885
1948
  device: any;
@@ -1892,7 +1955,12 @@ declare class TileStencilRenderer {
1892
1955
  resize(width: any, height: any): void;
1893
1956
  update(config: any): void;
1894
1957
  _updateTexture(): void;
1895
- getMipLevelCount(): any;
1958
+ _isDirty(newConfig: any): boolean;
1959
+ _getSize(config: any): {
1960
+ width: any;
1961
+ height: any;
1962
+ };
1963
+ getMipLevelCount(data?: any): any;
1896
1964
  fillData(texture: any, width: any, height: any): void;
1897
1965
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1898
1966
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1903,6 +1971,7 @@ declare class TileStencilRenderer {
1903
1971
  destroy(): void;
1904
1972
  }[];
1905
1973
  resize(width: any, height: any): void;
1974
+ getCommandKey(): string;
1906
1975
  _update(): void;
1907
1976
  getRenderPassDescriptor(): GPURenderPassDescriptor;
1908
1977
  setClearOptions(options: any): void;
@@ -1922,7 +1991,12 @@ declare class TileStencilRenderer {
1922
1991
  resize(width: any, height: any): void;
1923
1992
  update(config: any): void;
1924
1993
  _updateTexture(): void;
1925
- getMipLevelCount(): any;
1994
+ _isDirty(newConfig: any): boolean;
1995
+ _getSize(config: any): {
1996
+ width: any;
1997
+ height: any;
1998
+ };
1999
+ getMipLevelCount(data?: any): any;
1926
2000
  fillData(texture: any, width: any, height: any): void;
1927
2001
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1928
2002
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -1946,6 +2020,11 @@ declare class TileStencilRenderer {
1946
2020
  resize(width: any, height: any): void;
1947
2021
  update(config: any): void;
1948
2022
  _updateTexture(): void;
2023
+ _isDirty(newConfig: any): boolean;
2024
+ _getSize(config: any): {
2025
+ width: any;
2026
+ height: any;
2027
+ };
1949
2028
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
1950
2029
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
1951
2030
  _fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;