@maptalks/vt 0.118.1 → 0.120.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.
- package/dist/maptalks.vt.d.ts +276 -51
- package/dist/maptalks.vt.es.js +890 -864
- package/dist/maptalks.vt.es.js.map +1 -1
- package/dist/maptalks.vt.gpu.es.js +890 -864
- package/dist/maptalks.vt.js +1490 -1461
- package/dist/maptalks.vt.js.map +1 -1
- package/package.json +5 -5
package/dist/maptalks.vt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/vt v0.
|
|
2
|
+
* @maptalks/vt v0.120.0
|
|
3
3
|
* LICENSE : undefined
|
|
4
|
-
* (c) 2016-
|
|
4
|
+
* (c) 2016-2026 maptalks.org
|
|
5
5
|
*/
|
|
6
6
|
import * as maptalks from 'maptalks';
|
|
7
7
|
import { FillSymbol, LineSymbol, MarkerCommonSymbol, TextSymbol, LayerIdentifyOptionsType, TileLayerOptionsType, LayerJSONType, OverlayLayerOptionsType } from 'maptalks';
|
|
@@ -107,7 +107,6 @@ declare class VectorTileLayer extends maptalks.TileLayer {
|
|
|
107
107
|
VERSION: string;
|
|
108
108
|
ready: boolean;
|
|
109
109
|
isVectorTileLayer: boolean;
|
|
110
|
-
hasTerrainMask: boolean;
|
|
111
110
|
options: VectorTileLayerOptionsType;
|
|
112
111
|
static loadFrom(url: string, fetchOptions: Record<string, any>): Promise<VectorTileLayer>;
|
|
113
112
|
constructor(id: string, options: VectorTileLayerOptionsType);
|
|
@@ -456,6 +455,7 @@ declare class VectorTileLayer extends maptalks.TileLayer {
|
|
|
456
455
|
type VectorTileLayerOptionsType = {
|
|
457
456
|
renderer?: "gl";
|
|
458
457
|
altitudeProperty?: string;
|
|
458
|
+
features?: boolean;
|
|
459
459
|
schema?: boolean;
|
|
460
460
|
collision?: boolean;
|
|
461
461
|
collisionBuffserSize?: number;
|
|
@@ -487,6 +487,7 @@ type VectorTileLayerOptionsType = {
|
|
|
487
487
|
loadTileErrorLogIgnoreCodes?: Array<number>;
|
|
488
488
|
loadTileCachMaxSize?: number;
|
|
489
489
|
loadTileCacheLog?: boolean;
|
|
490
|
+
renderBeforeTerrain?: boolean;
|
|
490
491
|
} & TileLayerOptionsType;
|
|
491
492
|
type AsyncFeatureQueryOptions = {
|
|
492
493
|
countPerTime?: number;
|
|
@@ -823,57 +824,76 @@ declare class TileStencilRenderer {
|
|
|
823
824
|
options: any;
|
|
824
825
|
width: number;
|
|
825
826
|
height: number;
|
|
827
|
+
_destroyed: boolean;
|
|
826
828
|
readonly color: {
|
|
827
829
|
texture: GPUTexture;
|
|
828
830
|
device: any;
|
|
829
831
|
config: any;
|
|
832
|
+
version: number;
|
|
830
833
|
readonly width: any;
|
|
831
834
|
readonly height: any;
|
|
835
|
+
readonly arrayLayers: number;
|
|
832
836
|
updateFilter(): void;
|
|
833
|
-
_clearBindGroups(): void;
|
|
834
837
|
resize(width: any, height: any): void;
|
|
835
838
|
update(config: any): void;
|
|
836
839
|
_updateTexture(): void;
|
|
840
|
+
getMipLevelCount(): any;
|
|
841
|
+
fillData(texture: any, width: any, height: any): void;
|
|
842
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
843
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
844
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
845
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
846
|
+
isArrayData(data: any): boolean;
|
|
837
847
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
838
|
-
addBindGroup(bindGroup: any): void;
|
|
839
848
|
destroy(): void;
|
|
840
849
|
}[];
|
|
841
850
|
resize(width: any, height: any): void;
|
|
842
851
|
_update(): void;
|
|
843
852
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
844
853
|
setClearOptions(options: any): void;
|
|
845
|
-
|
|
854
|
+
resetClearOptions(): void;
|
|
846
855
|
destroy(): void;
|
|
856
|
+
isDestroyed(): boolean;
|
|
847
857
|
};
|
|
848
858
|
getRenderPassEncoder(fbo: {
|
|
849
859
|
device: any;
|
|
850
860
|
options: any;
|
|
851
861
|
width: number;
|
|
852
862
|
height: number;
|
|
863
|
+
_destroyed: boolean;
|
|
853
864
|
readonly color: {
|
|
854
865
|
texture: GPUTexture;
|
|
855
866
|
device: any;
|
|
856
867
|
config: any;
|
|
868
|
+
version: number;
|
|
857
869
|
readonly width: any;
|
|
858
870
|
readonly height: any;
|
|
871
|
+
readonly arrayLayers: number;
|
|
859
872
|
updateFilter(): void;
|
|
860
|
-
_clearBindGroups(): void;
|
|
861
873
|
resize(width: any, height: any): void;
|
|
862
874
|
update(config: any): void;
|
|
863
875
|
_updateTexture(): void;
|
|
876
|
+
getMipLevelCount(): any;
|
|
877
|
+
fillData(texture: any, width: any, height: any): void;
|
|
878
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
879
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
880
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
881
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
882
|
+
isArrayData(data: any): boolean;
|
|
864
883
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
865
|
-
addBindGroup(bindGroup: any): void;
|
|
866
884
|
destroy(): void;
|
|
867
885
|
}[];
|
|
868
886
|
resize(width: any, height: any): void;
|
|
869
887
|
_update(): void;
|
|
870
888
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
871
889
|
setClearOptions(options: any): void;
|
|
872
|
-
|
|
890
|
+
resetClearOptions(): void;
|
|
873
891
|
destroy(): void;
|
|
892
|
+
isDestroyed(): boolean;
|
|
874
893
|
}): GPURenderPassEncoder;
|
|
875
894
|
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
876
895
|
submit(): void;
|
|
896
|
+
addToDestroyList(texture: GPUTexture): void;
|
|
877
897
|
preserveDrawingBuffer(canvas: any): void;
|
|
878
898
|
buffer(options: any): any;
|
|
879
899
|
elements(options: any): any;
|
|
@@ -882,41 +902,79 @@ declare class TileStencilRenderer {
|
|
|
882
902
|
options: any;
|
|
883
903
|
width: number;
|
|
884
904
|
height: number;
|
|
905
|
+
_destroyed: boolean;
|
|
885
906
|
readonly color: {
|
|
886
907
|
texture: GPUTexture;
|
|
887
908
|
device: any;
|
|
888
909
|
config: any;
|
|
910
|
+
version: number;
|
|
889
911
|
readonly width: any;
|
|
890
912
|
readonly height: any;
|
|
913
|
+
readonly arrayLayers: number;
|
|
891
914
|
updateFilter(): void;
|
|
892
|
-
_clearBindGroups(): void;
|
|
893
915
|
resize(width: any, height: any): void;
|
|
894
916
|
update(config: any): void;
|
|
895
917
|
_updateTexture(): void;
|
|
918
|
+
getMipLevelCount(): any;
|
|
919
|
+
fillData(texture: any, width: any, height: any): void;
|
|
920
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
921
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
922
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
923
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
924
|
+
isArrayData(data: any): boolean;
|
|
896
925
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
897
|
-
addBindGroup(bindGroup: any): void;
|
|
898
926
|
destroy(): void;
|
|
899
927
|
}[];
|
|
900
928
|
resize(width: any, height: any): void;
|
|
901
929
|
_update(): void;
|
|
902
930
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
903
931
|
setClearOptions(options: any): void;
|
|
904
|
-
|
|
932
|
+
resetClearOptions(): void;
|
|
905
933
|
destroy(): void;
|
|
934
|
+
isDestroyed(): boolean;
|
|
906
935
|
};
|
|
907
936
|
texture(width: any, height?: any): {
|
|
908
937
|
texture: GPUTexture;
|
|
909
938
|
device: any;
|
|
910
939
|
config: any;
|
|
940
|
+
version: number;
|
|
911
941
|
readonly width: any;
|
|
912
942
|
readonly height: any;
|
|
943
|
+
readonly arrayLayers: number;
|
|
913
944
|
updateFilter(): void;
|
|
914
|
-
_clearBindGroups(): void;
|
|
915
945
|
resize(width: any, height: any): void;
|
|
916
946
|
update(config: any): void;
|
|
917
947
|
_updateTexture(): void;
|
|
948
|
+
getMipLevelCount(): any;
|
|
949
|
+
fillData(texture: any, width: any, height: any): void;
|
|
950
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
951
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
952
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
953
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
954
|
+
isArrayData(data: any): boolean;
|
|
955
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
956
|
+
destroy(): void;
|
|
957
|
+
};
|
|
958
|
+
cube(options: _______________gl_node_modules__maptalks_regl_dist_regl.TextureCubeOptions): {
|
|
959
|
+
readonly arrayLayers: number;
|
|
960
|
+
getMipLevelCount(): any;
|
|
961
|
+
fillData(texture: any, width: any, height: any): void;
|
|
962
|
+
texture: GPUTexture;
|
|
963
|
+
device: any;
|
|
964
|
+
config: any;
|
|
965
|
+
version: number;
|
|
966
|
+
readonly width: any;
|
|
967
|
+
readonly height: any;
|
|
968
|
+
updateFilter(): void;
|
|
969
|
+
resize(width: any, height: any): void;
|
|
970
|
+
update(config: any): void;
|
|
971
|
+
_updateTexture(): void;
|
|
972
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
973
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
974
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
975
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
976
|
+
isArrayData(data: any): boolean;
|
|
918
977
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
919
|
-
addBindGroup(bindGroup: any): void;
|
|
920
978
|
destroy(): void;
|
|
921
979
|
};
|
|
922
980
|
clear(options: any): void;
|
|
@@ -926,7 +984,7 @@ declare class TileStencilRenderer {
|
|
|
926
984
|
resetDrawCalls(): void;
|
|
927
985
|
getDrawCalls(): 0;
|
|
928
986
|
_renderToClear(fbo: any): void;
|
|
929
|
-
|
|
987
|
+
_getClearPipeline(fbo: any): GPURenderPipeline;
|
|
930
988
|
}, mesh: reshader.Mesh, shaderUniforms: {
|
|
931
989
|
meshConfig?: {
|
|
932
990
|
transparent?: boolean;
|
|
@@ -1065,29 +1123,34 @@ declare class TileStencilRenderer {
|
|
|
1065
1123
|
options: any;
|
|
1066
1124
|
width: number;
|
|
1067
1125
|
height: number;
|
|
1126
|
+
_destroyed: boolean;
|
|
1068
1127
|
readonly color: any[];
|
|
1069
1128
|
resize(width: any, height: any): void;
|
|
1070
1129
|
_update(): void;
|
|
1071
1130
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1072
1131
|
setClearOptions(options: any): void;
|
|
1073
|
-
|
|
1132
|
+
resetClearOptions(): void;
|
|
1074
1133
|
destroy(): void;
|
|
1134
|
+
isDestroyed(): boolean;
|
|
1075
1135
|
};
|
|
1076
1136
|
getRenderPassEncoder(fbo: {
|
|
1077
1137
|
device: any;
|
|
1078
1138
|
options: any;
|
|
1079
1139
|
width: number;
|
|
1080
1140
|
height: number;
|
|
1141
|
+
_destroyed: boolean;
|
|
1081
1142
|
readonly color: any[];
|
|
1082
1143
|
resize(width: any, height: any): void;
|
|
1083
1144
|
_update(): void;
|
|
1084
1145
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1085
1146
|
setClearOptions(options: any): void;
|
|
1086
|
-
|
|
1147
|
+
resetClearOptions(): void;
|
|
1087
1148
|
destroy(): void;
|
|
1149
|
+
isDestroyed(): boolean;
|
|
1088
1150
|
}): GPURenderPassEncoder;
|
|
1089
1151
|
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1090
1152
|
submit(): void;
|
|
1153
|
+
addToDestroyList(texture: GPUTexture): void;
|
|
1091
1154
|
preserveDrawingBuffer(canvas: any): void;
|
|
1092
1155
|
buffer(options: any): any;
|
|
1093
1156
|
elements(options: any): any;
|
|
@@ -1096,15 +1159,39 @@ declare class TileStencilRenderer {
|
|
|
1096
1159
|
options: any;
|
|
1097
1160
|
width: number;
|
|
1098
1161
|
height: number;
|
|
1162
|
+
_destroyed: boolean;
|
|
1099
1163
|
readonly color: any[];
|
|
1100
1164
|
resize(width: any, height: any): void;
|
|
1101
1165
|
_update(): void;
|
|
1102
1166
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1103
1167
|
setClearOptions(options: any): void;
|
|
1104
|
-
|
|
1168
|
+
resetClearOptions(): void;
|
|
1105
1169
|
destroy(): void;
|
|
1170
|
+
isDestroyed(): boolean;
|
|
1106
1171
|
};
|
|
1107
1172
|
texture(width: any, height?: any): any;
|
|
1173
|
+
cube(options: _______________gl_node_modules__maptalks_regl_dist_regl.TextureCubeOptions): {
|
|
1174
|
+
readonly arrayLayers: number;
|
|
1175
|
+
getMipLevelCount(): any;
|
|
1176
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1177
|
+
texture: GPUTexture;
|
|
1178
|
+
device: any;
|
|
1179
|
+
config: any;
|
|
1180
|
+
version: number;
|
|
1181
|
+
readonly width: any;
|
|
1182
|
+
readonly height: any;
|
|
1183
|
+
updateFilter(): void;
|
|
1184
|
+
resize(width: any, height: any): void;
|
|
1185
|
+
update(config: any): void;
|
|
1186
|
+
_updateTexture(): void;
|
|
1187
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1188
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1189
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1190
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1191
|
+
isArrayData(data: any): boolean;
|
|
1192
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1193
|
+
destroy(): void;
|
|
1194
|
+
};
|
|
1108
1195
|
clear(options: any): void;
|
|
1109
1196
|
read(options: any): any;
|
|
1110
1197
|
destroy(): void;
|
|
@@ -1112,18 +1199,25 @@ declare class TileStencilRenderer {
|
|
|
1112
1199
|
resetDrawCalls(): void;
|
|
1113
1200
|
getDrawCalls(): 0;
|
|
1114
1201
|
_renderToClear(fbo: any): void;
|
|
1115
|
-
|
|
1202
|
+
_getClearPipeline(fbo: any): GPURenderPipeline;
|
|
1116
1203
|
};
|
|
1117
1204
|
config: any;
|
|
1205
|
+
version: number;
|
|
1118
1206
|
readonly width: any;
|
|
1119
1207
|
readonly height: any;
|
|
1208
|
+
readonly arrayLayers: number;
|
|
1120
1209
|
updateFilter(): void;
|
|
1121
|
-
_clearBindGroups(): void;
|
|
1122
1210
|
resize(width: any, height: any): void;
|
|
1123
1211
|
update(config: any): void;
|
|
1124
1212
|
_updateTexture(): void;
|
|
1213
|
+
getMipLevelCount(): any;
|
|
1214
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1215
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1216
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1217
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1218
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1219
|
+
isArrayData(data: any): boolean;
|
|
1125
1220
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1126
|
-
addBindGroup(bindGroup: any): void;
|
|
1127
1221
|
destroy(): void;
|
|
1128
1222
|
});
|
|
1129
1223
|
}, layout: GPUBindGroupLayout, shaderBuffer: {
|
|
@@ -1291,29 +1385,34 @@ declare class TileStencilRenderer {
|
|
|
1291
1385
|
options: any;
|
|
1292
1386
|
width: number;
|
|
1293
1387
|
height: number;
|
|
1388
|
+
_destroyed: boolean;
|
|
1294
1389
|
readonly color: any[];
|
|
1295
1390
|
resize(width: any, height: any): void;
|
|
1296
1391
|
_update(): void;
|
|
1297
1392
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1298
1393
|
setClearOptions(options: any): void;
|
|
1299
|
-
|
|
1394
|
+
resetClearOptions(): void;
|
|
1300
1395
|
destroy(): void;
|
|
1396
|
+
isDestroyed(): boolean;
|
|
1301
1397
|
};
|
|
1302
1398
|
getRenderPassEncoder(fbo: {
|
|
1303
1399
|
device: any;
|
|
1304
1400
|
options: any;
|
|
1305
1401
|
width: number;
|
|
1306
1402
|
height: number;
|
|
1403
|
+
_destroyed: boolean;
|
|
1307
1404
|
readonly color: any[];
|
|
1308
1405
|
resize(width: any, height: any): void;
|
|
1309
1406
|
_update(): void;
|
|
1310
1407
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1311
1408
|
setClearOptions(options: any): void;
|
|
1312
|
-
|
|
1409
|
+
resetClearOptions(): void;
|
|
1313
1410
|
destroy(): void;
|
|
1411
|
+
isDestroyed(): boolean;
|
|
1314
1412
|
}): GPURenderPassEncoder;
|
|
1315
1413
|
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1316
1414
|
submit(): void;
|
|
1415
|
+
addToDestroyList(texture: GPUTexture): void;
|
|
1317
1416
|
preserveDrawingBuffer(canvas: any): void;
|
|
1318
1417
|
buffer(options: any): any;
|
|
1319
1418
|
elements(options: any): any;
|
|
@@ -1322,15 +1421,39 @@ declare class TileStencilRenderer {
|
|
|
1322
1421
|
options: any;
|
|
1323
1422
|
width: number;
|
|
1324
1423
|
height: number;
|
|
1424
|
+
_destroyed: boolean;
|
|
1325
1425
|
readonly color: any[];
|
|
1326
1426
|
resize(width: any, height: any): void;
|
|
1327
1427
|
_update(): void;
|
|
1328
1428
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1329
1429
|
setClearOptions(options: any): void;
|
|
1330
|
-
|
|
1430
|
+
resetClearOptions(): void;
|
|
1331
1431
|
destroy(): void;
|
|
1432
|
+
isDestroyed(): boolean;
|
|
1332
1433
|
};
|
|
1333
1434
|
texture(width: any, height?: any): any;
|
|
1435
|
+
cube(options: _______________gl_node_modules__maptalks_regl_dist_regl.TextureCubeOptions): {
|
|
1436
|
+
readonly arrayLayers: number;
|
|
1437
|
+
getMipLevelCount(): any;
|
|
1438
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1439
|
+
texture: GPUTexture;
|
|
1440
|
+
device: any;
|
|
1441
|
+
config: any;
|
|
1442
|
+
version: number;
|
|
1443
|
+
readonly width: any;
|
|
1444
|
+
readonly height: any;
|
|
1445
|
+
updateFilter(): void;
|
|
1446
|
+
resize(width: any, height: any): void;
|
|
1447
|
+
update(config: any): void;
|
|
1448
|
+
_updateTexture(): void;
|
|
1449
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1450
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1451
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1452
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1453
|
+
isArrayData(data: any): boolean;
|
|
1454
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1455
|
+
destroy(): void;
|
|
1456
|
+
};
|
|
1334
1457
|
clear(options: any): void;
|
|
1335
1458
|
read(options: any): any;
|
|
1336
1459
|
destroy(): void;
|
|
@@ -1338,18 +1461,25 @@ declare class TileStencilRenderer {
|
|
|
1338
1461
|
resetDrawCalls(): void;
|
|
1339
1462
|
getDrawCalls(): 0;
|
|
1340
1463
|
_renderToClear(fbo: any): void;
|
|
1341
|
-
|
|
1464
|
+
_getClearPipeline(fbo: any): GPURenderPipeline;
|
|
1342
1465
|
};
|
|
1343
1466
|
config: any;
|
|
1467
|
+
version: number;
|
|
1344
1468
|
readonly width: any;
|
|
1345
1469
|
readonly height: any;
|
|
1470
|
+
readonly arrayLayers: number;
|
|
1346
1471
|
updateFilter(): void;
|
|
1347
|
-
_clearBindGroups(): void;
|
|
1348
1472
|
resize(width: any, height: any): void;
|
|
1349
1473
|
update(config: any): void;
|
|
1350
1474
|
_updateTexture(): void;
|
|
1475
|
+
getMipLevelCount(): any;
|
|
1476
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1477
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1478
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1479
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1480
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1481
|
+
isArrayData(data: any): boolean;
|
|
1351
1482
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1352
|
-
addBindGroup(bindGroup: any): void;
|
|
1353
1483
|
destroy(): void;
|
|
1354
1484
|
})>, dynamicOffsets: {
|
|
1355
1485
|
items: any[];
|
|
@@ -1528,29 +1658,34 @@ declare class TileStencilRenderer {
|
|
|
1528
1658
|
options: any;
|
|
1529
1659
|
width: number;
|
|
1530
1660
|
height: number;
|
|
1661
|
+
_destroyed: boolean;
|
|
1531
1662
|
readonly color: any[];
|
|
1532
1663
|
resize(width: any, height: any): void;
|
|
1533
1664
|
_update(): void;
|
|
1534
1665
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1535
1666
|
setClearOptions(options: any): void;
|
|
1536
|
-
|
|
1667
|
+
resetClearOptions(): void;
|
|
1537
1668
|
destroy(): void;
|
|
1669
|
+
isDestroyed(): boolean;
|
|
1538
1670
|
};
|
|
1539
1671
|
getRenderPassEncoder(fbo: {
|
|
1540
1672
|
device: any;
|
|
1541
1673
|
options: any;
|
|
1542
1674
|
width: number;
|
|
1543
1675
|
height: number;
|
|
1676
|
+
_destroyed: boolean;
|
|
1544
1677
|
readonly color: any[];
|
|
1545
1678
|
resize(width: any, height: any): void;
|
|
1546
1679
|
_update(): void;
|
|
1547
1680
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1548
1681
|
setClearOptions(options: any): void;
|
|
1549
|
-
|
|
1682
|
+
resetClearOptions(): void;
|
|
1550
1683
|
destroy(): void;
|
|
1684
|
+
isDestroyed(): boolean;
|
|
1551
1685
|
}): GPURenderPassEncoder;
|
|
1552
1686
|
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1553
1687
|
submit(): void;
|
|
1688
|
+
addToDestroyList(texture: GPUTexture): void;
|
|
1554
1689
|
preserveDrawingBuffer(canvas: any): void;
|
|
1555
1690
|
buffer(options: any): any;
|
|
1556
1691
|
elements(options: any): any;
|
|
@@ -1559,15 +1694,39 @@ declare class TileStencilRenderer {
|
|
|
1559
1694
|
options: any;
|
|
1560
1695
|
width: number;
|
|
1561
1696
|
height: number;
|
|
1697
|
+
_destroyed: boolean;
|
|
1562
1698
|
readonly color: any[];
|
|
1563
1699
|
resize(width: any, height: any): void;
|
|
1564
1700
|
_update(): void;
|
|
1565
1701
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1566
1702
|
setClearOptions(options: any): void;
|
|
1567
|
-
|
|
1703
|
+
resetClearOptions(): void;
|
|
1568
1704
|
destroy(): void;
|
|
1705
|
+
isDestroyed(): boolean;
|
|
1569
1706
|
};
|
|
1570
1707
|
texture(width: any, height?: any): any;
|
|
1708
|
+
cube(options: _______________gl_node_modules__maptalks_regl_dist_regl.TextureCubeOptions): {
|
|
1709
|
+
readonly arrayLayers: number;
|
|
1710
|
+
getMipLevelCount(): any;
|
|
1711
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1712
|
+
texture: GPUTexture;
|
|
1713
|
+
device: any;
|
|
1714
|
+
config: any;
|
|
1715
|
+
version: number;
|
|
1716
|
+
readonly width: any;
|
|
1717
|
+
readonly height: any;
|
|
1718
|
+
updateFilter(): void;
|
|
1719
|
+
resize(width: any, height: any): void;
|
|
1720
|
+
update(config: any): void;
|
|
1721
|
+
_updateTexture(): void;
|
|
1722
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1723
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1724
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1725
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1726
|
+
isArrayData(data: any): boolean;
|
|
1727
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1728
|
+
destroy(): void;
|
|
1729
|
+
};
|
|
1571
1730
|
clear(options: any): void;
|
|
1572
1731
|
read(options: any): any;
|
|
1573
1732
|
destroy(): void;
|
|
@@ -1575,18 +1734,25 @@ declare class TileStencilRenderer {
|
|
|
1575
1734
|
resetDrawCalls(): void;
|
|
1576
1735
|
getDrawCalls(): 0;
|
|
1577
1736
|
_renderToClear(fbo: any): void;
|
|
1578
|
-
|
|
1737
|
+
_getClearPipeline(fbo: any): GPURenderPipeline;
|
|
1579
1738
|
};
|
|
1580
1739
|
config: any;
|
|
1740
|
+
version: number;
|
|
1581
1741
|
readonly width: any;
|
|
1582
1742
|
readonly height: any;
|
|
1743
|
+
readonly arrayLayers: number;
|
|
1583
1744
|
updateFilter(): void;
|
|
1584
|
-
_clearBindGroups(): void;
|
|
1585
1745
|
resize(width: any, height: any): void;
|
|
1586
1746
|
update(config: any): void;
|
|
1587
1747
|
_updateTexture(): void;
|
|
1748
|
+
getMipLevelCount(): any;
|
|
1749
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1750
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1751
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1752
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1753
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1754
|
+
isArrayData(data: any): boolean;
|
|
1588
1755
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1589
|
-
addBindGroup(bindGroup: any): void;
|
|
1590
1756
|
destroy(): void;
|
|
1591
1757
|
})>, dynamicOffsets: {
|
|
1592
1758
|
items: any[];
|
|
@@ -1602,12 +1768,10 @@ declare class TileStencilRenderer {
|
|
|
1602
1768
|
dispose(): void;
|
|
1603
1769
|
}): {
|
|
1604
1770
|
bindGroup: GPUBindGroup;
|
|
1605
|
-
outdated: boolean;
|
|
1606
1771
|
uniformTextures?: any;
|
|
1607
1772
|
};
|
|
1608
1773
|
copyTextures(bindGroup: {
|
|
1609
1774
|
bindGroup: GPUBindGroup;
|
|
1610
|
-
outdated: boolean;
|
|
1611
1775
|
uniformTextures?: any;
|
|
1612
1776
|
}, props: any): void;
|
|
1613
1777
|
dispose(): void;
|
|
@@ -1620,9 +1784,8 @@ declare class TileStencilRenderer {
|
|
|
1620
1784
|
key: string;
|
|
1621
1785
|
};
|
|
1622
1786
|
}, props: any): any;
|
|
1623
|
-
|
|
1787
|
+
_checkBindGroupOutdated(bindGroup: {
|
|
1624
1788
|
bindGroup: GPUBindGroup;
|
|
1625
|
-
outdated: boolean;
|
|
1626
1789
|
uniformTextures?: any;
|
|
1627
1790
|
}, props: any): boolean;
|
|
1628
1791
|
_getCurrentRenderPassEncoder(device: {
|
|
@@ -1638,57 +1801,76 @@ declare class TileStencilRenderer {
|
|
|
1638
1801
|
options: any;
|
|
1639
1802
|
width: number;
|
|
1640
1803
|
height: number;
|
|
1804
|
+
_destroyed: boolean;
|
|
1641
1805
|
readonly color: {
|
|
1642
1806
|
texture: GPUTexture;
|
|
1643
1807
|
device: any;
|
|
1644
1808
|
config: any;
|
|
1809
|
+
version: number;
|
|
1645
1810
|
readonly width: any;
|
|
1646
1811
|
readonly height: any;
|
|
1812
|
+
readonly arrayLayers: number;
|
|
1647
1813
|
updateFilter(): void;
|
|
1648
|
-
_clearBindGroups(): void;
|
|
1649
1814
|
resize(width: any, height: any): void;
|
|
1650
1815
|
update(config: any): void;
|
|
1651
1816
|
_updateTexture(): void;
|
|
1817
|
+
getMipLevelCount(): any;
|
|
1818
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1819
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1820
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1821
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1822
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1823
|
+
isArrayData(data: any): boolean;
|
|
1652
1824
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1653
|
-
addBindGroup(bindGroup: any): void;
|
|
1654
1825
|
destroy(): void;
|
|
1655
1826
|
}[];
|
|
1656
1827
|
resize(width: any, height: any): void;
|
|
1657
1828
|
_update(): void;
|
|
1658
1829
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1659
1830
|
setClearOptions(options: any): void;
|
|
1660
|
-
|
|
1831
|
+
resetClearOptions(): void;
|
|
1661
1832
|
destroy(): void;
|
|
1833
|
+
isDestroyed(): boolean;
|
|
1662
1834
|
};
|
|
1663
1835
|
getRenderPassEncoder(fbo: {
|
|
1664
1836
|
device: any;
|
|
1665
1837
|
options: any;
|
|
1666
1838
|
width: number;
|
|
1667
1839
|
height: number;
|
|
1840
|
+
_destroyed: boolean;
|
|
1668
1841
|
readonly color: {
|
|
1669
1842
|
texture: GPUTexture;
|
|
1670
1843
|
device: any;
|
|
1671
1844
|
config: any;
|
|
1845
|
+
version: number;
|
|
1672
1846
|
readonly width: any;
|
|
1673
1847
|
readonly height: any;
|
|
1848
|
+
readonly arrayLayers: number;
|
|
1674
1849
|
updateFilter(): void;
|
|
1675
|
-
_clearBindGroups(): void;
|
|
1676
1850
|
resize(width: any, height: any): void;
|
|
1677
1851
|
update(config: any): void;
|
|
1678
1852
|
_updateTexture(): void;
|
|
1853
|
+
getMipLevelCount(): any;
|
|
1854
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1855
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1856
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1857
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1858
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1859
|
+
isArrayData(data: any): boolean;
|
|
1679
1860
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1680
|
-
addBindGroup(bindGroup: any): void;
|
|
1681
1861
|
destroy(): void;
|
|
1682
1862
|
}[];
|
|
1683
1863
|
resize(width: any, height: any): void;
|
|
1684
1864
|
_update(): void;
|
|
1685
1865
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1686
1866
|
setClearOptions(options: any): void;
|
|
1687
|
-
|
|
1867
|
+
resetClearOptions(): void;
|
|
1688
1868
|
destroy(): void;
|
|
1869
|
+
isDestroyed(): boolean;
|
|
1689
1870
|
}): GPURenderPassEncoder;
|
|
1690
1871
|
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1691
1872
|
submit(): void;
|
|
1873
|
+
addToDestroyList(texture: GPUTexture): void;
|
|
1692
1874
|
preserveDrawingBuffer(canvas: any): void;
|
|
1693
1875
|
buffer(options: any): any;
|
|
1694
1876
|
elements(options: any): any;
|
|
@@ -1697,41 +1879,79 @@ declare class TileStencilRenderer {
|
|
|
1697
1879
|
options: any;
|
|
1698
1880
|
width: number;
|
|
1699
1881
|
height: number;
|
|
1882
|
+
_destroyed: boolean;
|
|
1700
1883
|
readonly color: {
|
|
1701
1884
|
texture: GPUTexture;
|
|
1702
1885
|
device: any;
|
|
1703
1886
|
config: any;
|
|
1887
|
+
version: number;
|
|
1704
1888
|
readonly width: any;
|
|
1705
1889
|
readonly height: any;
|
|
1890
|
+
readonly arrayLayers: number;
|
|
1706
1891
|
updateFilter(): void;
|
|
1707
|
-
_clearBindGroups(): void;
|
|
1708
1892
|
resize(width: any, height: any): void;
|
|
1709
1893
|
update(config: any): void;
|
|
1710
1894
|
_updateTexture(): void;
|
|
1895
|
+
getMipLevelCount(): any;
|
|
1896
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1897
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1898
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1899
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1900
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1901
|
+
isArrayData(data: any): boolean;
|
|
1711
1902
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1712
|
-
addBindGroup(bindGroup: any): void;
|
|
1713
1903
|
destroy(): void;
|
|
1714
1904
|
}[];
|
|
1715
1905
|
resize(width: any, height: any): void;
|
|
1716
1906
|
_update(): void;
|
|
1717
1907
|
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1718
1908
|
setClearOptions(options: any): void;
|
|
1719
|
-
|
|
1909
|
+
resetClearOptions(): void;
|
|
1720
1910
|
destroy(): void;
|
|
1911
|
+
isDestroyed(): boolean;
|
|
1721
1912
|
};
|
|
1722
1913
|
texture(width: any, height?: any): {
|
|
1723
1914
|
texture: GPUTexture;
|
|
1724
1915
|
device: any;
|
|
1725
1916
|
config: any;
|
|
1917
|
+
version: number;
|
|
1918
|
+
readonly width: any;
|
|
1919
|
+
readonly height: any;
|
|
1920
|
+
readonly arrayLayers: number;
|
|
1921
|
+
updateFilter(): void;
|
|
1922
|
+
resize(width: any, height: any): void;
|
|
1923
|
+
update(config: any): void;
|
|
1924
|
+
_updateTexture(): void;
|
|
1925
|
+
getMipLevelCount(): any;
|
|
1926
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1927
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1928
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1929
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1930
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1931
|
+
isArrayData(data: any): boolean;
|
|
1932
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1933
|
+
destroy(): void;
|
|
1934
|
+
};
|
|
1935
|
+
cube(options: _______________gl_node_modules__maptalks_regl_dist_regl.TextureCubeOptions): {
|
|
1936
|
+
readonly arrayLayers: number;
|
|
1937
|
+
getMipLevelCount(): any;
|
|
1938
|
+
fillData(texture: any, width: any, height: any): void;
|
|
1939
|
+
texture: GPUTexture;
|
|
1940
|
+
device: any;
|
|
1941
|
+
config: any;
|
|
1942
|
+
version: number;
|
|
1726
1943
|
readonly width: any;
|
|
1727
1944
|
readonly height: any;
|
|
1728
1945
|
updateFilter(): void;
|
|
1729
|
-
_clearBindGroups(): void;
|
|
1730
1946
|
resize(width: any, height: any): void;
|
|
1731
1947
|
update(config: any): void;
|
|
1732
1948
|
_updateTexture(): void;
|
|
1949
|
+
fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1950
|
+
fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
|
|
1951
|
+
_fillMipmap(texture: any, mipLevel: any, data: any, width: any, height: any, origin: any): void;
|
|
1952
|
+
formatTextureArray(data: any, arrayBuffer: any, width: any, height: any): any;
|
|
1953
|
+
isArrayData(data: any): boolean;
|
|
1733
1954
|
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1734
|
-
addBindGroup(bindGroup: any): void;
|
|
1735
1955
|
destroy(): void;
|
|
1736
1956
|
};
|
|
1737
1957
|
clear(options: any): void;
|
|
@@ -1741,7 +1961,7 @@ declare class TileStencilRenderer {
|
|
|
1741
1961
|
resetDrawCalls(): void;
|
|
1742
1962
|
getDrawCalls(): 0;
|
|
1743
1963
|
_renderToClear(fbo: any): void;
|
|
1744
|
-
|
|
1964
|
+
_getClearPipeline(fbo: any): GPURenderPipeline;
|
|
1745
1965
|
}): GPURenderPassEncoder;
|
|
1746
1966
|
setFramebuffer(framebuffer: any): any;
|
|
1747
1967
|
dispose(): void;
|
|
@@ -1866,6 +2086,7 @@ declare const VectorTileLayerRenderer_base: (new (...args: any[]) => {
|
|
|
1866
2086
|
isTileCached(tileId: string): boolean;
|
|
1867
2087
|
isTileFadingIn(tileImage: maptalks_dist_renderer_layer_tilelayer_TileLayerRendererable.TileImage): boolean;
|
|
1868
2088
|
_drawTiles(tiles: any, parentTiles: any, childTiles: any, placeholders: any, parentContext: any, missedTiles: any, incompleteTiles: any): void;
|
|
2089
|
+
_drawCurrentTiles(tiles: any, parentContext: any): void;
|
|
1869
2090
|
_drawChildTiles(childTiles: any, parentContext: any): void;
|
|
1870
2091
|
_drawParentTiles(parentTiles: any, parentContext: any): void;
|
|
1871
2092
|
onDrawTileStart(context: any, parentContext: any): void;
|
|
@@ -2263,7 +2484,11 @@ declare class VectorTileLayerRenderer extends VectorTileLayerRenderer_base {
|
|
|
2263
2484
|
isTileNearCamera(mesh: any): boolean;
|
|
2264
2485
|
isBackTile(id: any): boolean;
|
|
2265
2486
|
loadTileQueue(tileQueue: any): void;
|
|
2266
|
-
loadTile(tileInfo: any): {
|
|
2487
|
+
loadTile(tileInfo: any): {
|
|
2488
|
+
_empty: boolean;
|
|
2489
|
+
} | {
|
|
2490
|
+
_empty?: undefined;
|
|
2491
|
+
};
|
|
2267
2492
|
getTileGLScale(z: any): number;
|
|
2268
2493
|
getCentimeterToPoint(z: any): number;
|
|
2269
2494
|
getRenderedFeatures(): {
|
|
@@ -2350,7 +2575,7 @@ declare class VectorTileLayerRenderer extends VectorTileLayerRenderer_base {
|
|
|
2350
2575
|
renderTerrainSkin(terrainRegl: any, terrainLayer: any, skinImages: any): void;
|
|
2351
2576
|
isRenderingTerrainSkin: boolean;
|
|
2352
2577
|
_drawTerrainTile(tile: any): void;
|
|
2353
|
-
_endTerrainFrame(
|
|
2578
|
+
_endTerrainFrame(skinImage: any): void;
|
|
2354
2579
|
drawTile(tileInfo: any, tileData: any, filter: any): void;
|
|
2355
2580
|
_createOneTile(tileInfo: any, tileData: any): void;
|
|
2356
2581
|
checkTileInQueue(tileData: any): boolean;
|