@maptalks/vt 0.117.1 → 0.118.1
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/LICENSE +21 -21
- package/README.md +1 -1
- package/dist/maptalks.vt.d.ts +855 -23
- package/dist/maptalks.vt.es.js +3094 -2895
- package/dist/maptalks.vt.es.js.map +1 -1
- package/dist/maptalks.vt.gpu.es.js +3094 -2895
- package/dist/maptalks.vt.js +2440 -2245
- package/dist/maptalks.vt.js.map +1 -1
- package/package.json +11 -9
package/dist/maptalks.vt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/vt v0.
|
|
2
|
+
* @maptalks/vt v0.118.1
|
|
3
3
|
* LICENSE : undefined
|
|
4
4
|
* (c) 2016-2025 maptalks.org
|
|
5
5
|
*/
|
|
@@ -443,7 +443,7 @@ declare class VectorTileLayer extends maptalks.TileLayer {
|
|
|
443
443
|
*/
|
|
444
444
|
getDataSchema(z: number): object;
|
|
445
445
|
onRemove(): void;
|
|
446
|
-
|
|
446
|
+
clearData(): this;
|
|
447
447
|
static fromJSON(layerJSON: object): VectorTileLayer;
|
|
448
448
|
static registerPlugin(Plugin: {
|
|
449
449
|
type: string;
|
|
@@ -456,7 +456,6 @@ declare class VectorTileLayer extends maptalks.TileLayer {
|
|
|
456
456
|
type VectorTileLayerOptionsType = {
|
|
457
457
|
renderer?: "gl";
|
|
458
458
|
altitudeProperty?: string;
|
|
459
|
-
features?: boolean;
|
|
460
459
|
schema?: boolean;
|
|
461
460
|
collision?: boolean;
|
|
462
461
|
collisionBuffserSize?: number;
|
|
@@ -510,7 +509,7 @@ declare class GeoJSONVectorTileLayer extends VectorTileLayer {
|
|
|
510
509
|
onWorkerReady(err?: any, params?: any): void;
|
|
511
510
|
getData(): Record<string, any>;
|
|
512
511
|
getTileUrl(x: number, y: number, z: number): string;
|
|
513
|
-
getFeature(id: string): any;
|
|
512
|
+
getFeature(id: number | string): any;
|
|
514
513
|
static fromJSON(layerJSON: LayerJSONType): GeoJSONVectorTileLayer | null;
|
|
515
514
|
getGeometryById(id: number): any;
|
|
516
515
|
}
|
|
@@ -725,6 +724,7 @@ declare class TileStencilRenderer {
|
|
|
725
724
|
key: string;
|
|
726
725
|
}, disableVAO: boolean): any;
|
|
727
726
|
generateBuffers(device: any): void;
|
|
727
|
+
isBufferGenerated(): boolean;
|
|
728
728
|
getVertexCount(): number;
|
|
729
729
|
getColor0Size(): number;
|
|
730
730
|
deleteData(name: string): any;
|
|
@@ -798,13 +798,838 @@ declare class TileStencilRenderer {
|
|
|
798
798
|
vert: any;
|
|
799
799
|
frag: any;
|
|
800
800
|
};
|
|
801
|
-
run(deviceOrRegl: any, command:
|
|
801
|
+
run(deviceOrRegl: any, command: {
|
|
802
|
+
uid: string;
|
|
803
|
+
layout: GPUBindGroupLayout;
|
|
804
|
+
pipeline: GPURenderPipeline;
|
|
805
|
+
vertexInfo: any;
|
|
806
|
+
bindGroupFormat: {
|
|
807
|
+
bytes: number;
|
|
808
|
+
uuid: number;
|
|
809
|
+
name: string;
|
|
810
|
+
getShaderUniforms(): any;
|
|
811
|
+
getMeshUniforms(): any;
|
|
812
|
+
_parse(bindGroupMapping: any): void;
|
|
813
|
+
createFormatBindGroup(device: {
|
|
814
|
+
wgpu: GPUDevice;
|
|
815
|
+
context: GPUCanvasContext;
|
|
816
|
+
adapter: GPUAdapter;
|
|
817
|
+
gltfManager?: any;
|
|
818
|
+
hasExtension(extension: any): boolean;
|
|
819
|
+
getCommandEncoder(): GPUCommandEncoder;
|
|
820
|
+
endCommandEncoder(): void;
|
|
821
|
+
getDefaultFramebuffer(): {
|
|
822
|
+
device: any;
|
|
823
|
+
options: any;
|
|
824
|
+
width: number;
|
|
825
|
+
height: number;
|
|
826
|
+
readonly color: {
|
|
827
|
+
texture: GPUTexture;
|
|
828
|
+
device: any;
|
|
829
|
+
config: any;
|
|
830
|
+
readonly width: any;
|
|
831
|
+
readonly height: any;
|
|
832
|
+
updateFilter(): void;
|
|
833
|
+
_clearBindGroups(): void;
|
|
834
|
+
resize(width: any, height: any): void;
|
|
835
|
+
update(config: any): void;
|
|
836
|
+
_updateTexture(): void;
|
|
837
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
838
|
+
addBindGroup(bindGroup: any): void;
|
|
839
|
+
destroy(): void;
|
|
840
|
+
}[];
|
|
841
|
+
resize(width: any, height: any): void;
|
|
842
|
+
_update(): void;
|
|
843
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
844
|
+
setClearOptions(options: any): void;
|
|
845
|
+
_resetClearOptions(): void;
|
|
846
|
+
destroy(): void;
|
|
847
|
+
};
|
|
848
|
+
getRenderPassEncoder(fbo: {
|
|
849
|
+
device: any;
|
|
850
|
+
options: any;
|
|
851
|
+
width: number;
|
|
852
|
+
height: number;
|
|
853
|
+
readonly color: {
|
|
854
|
+
texture: GPUTexture;
|
|
855
|
+
device: any;
|
|
856
|
+
config: any;
|
|
857
|
+
readonly width: any;
|
|
858
|
+
readonly height: any;
|
|
859
|
+
updateFilter(): void;
|
|
860
|
+
_clearBindGroups(): void;
|
|
861
|
+
resize(width: any, height: any): void;
|
|
862
|
+
update(config: any): void;
|
|
863
|
+
_updateTexture(): void;
|
|
864
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
865
|
+
addBindGroup(bindGroup: any): void;
|
|
866
|
+
destroy(): void;
|
|
867
|
+
}[];
|
|
868
|
+
resize(width: any, height: any): void;
|
|
869
|
+
_update(): void;
|
|
870
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
871
|
+
setClearOptions(options: any): void;
|
|
872
|
+
_resetClearOptions(): void;
|
|
873
|
+
destroy(): void;
|
|
874
|
+
}): GPURenderPassEncoder;
|
|
875
|
+
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
876
|
+
submit(): void;
|
|
877
|
+
preserveDrawingBuffer(canvas: any): void;
|
|
878
|
+
buffer(options: any): any;
|
|
879
|
+
elements(options: any): any;
|
|
880
|
+
framebuffer(width: any, height: any): {
|
|
881
|
+
device: any;
|
|
882
|
+
options: any;
|
|
883
|
+
width: number;
|
|
884
|
+
height: number;
|
|
885
|
+
readonly color: {
|
|
886
|
+
texture: GPUTexture;
|
|
887
|
+
device: any;
|
|
888
|
+
config: any;
|
|
889
|
+
readonly width: any;
|
|
890
|
+
readonly height: any;
|
|
891
|
+
updateFilter(): void;
|
|
892
|
+
_clearBindGroups(): void;
|
|
893
|
+
resize(width: any, height: any): void;
|
|
894
|
+
update(config: any): void;
|
|
895
|
+
_updateTexture(): void;
|
|
896
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
897
|
+
addBindGroup(bindGroup: any): void;
|
|
898
|
+
destroy(): void;
|
|
899
|
+
}[];
|
|
900
|
+
resize(width: any, height: any): void;
|
|
901
|
+
_update(): void;
|
|
902
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
903
|
+
setClearOptions(options: any): void;
|
|
904
|
+
_resetClearOptions(): void;
|
|
905
|
+
destroy(): void;
|
|
906
|
+
};
|
|
907
|
+
texture(width: any, height?: any): {
|
|
908
|
+
texture: GPUTexture;
|
|
909
|
+
device: any;
|
|
910
|
+
config: any;
|
|
911
|
+
readonly width: any;
|
|
912
|
+
readonly height: any;
|
|
913
|
+
updateFilter(): void;
|
|
914
|
+
_clearBindGroups(): void;
|
|
915
|
+
resize(width: any, height: any): void;
|
|
916
|
+
update(config: any): void;
|
|
917
|
+
_updateTexture(): void;
|
|
918
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
919
|
+
addBindGroup(bindGroup: any): void;
|
|
920
|
+
destroy(): void;
|
|
921
|
+
};
|
|
922
|
+
clear(options: any): void;
|
|
923
|
+
read(options: any): any;
|
|
924
|
+
destroy(): void;
|
|
925
|
+
incrDrawCall(): void;
|
|
926
|
+
resetDrawCalls(): void;
|
|
927
|
+
getDrawCalls(): 0;
|
|
928
|
+
_renderToClear(fbo: any): void;
|
|
929
|
+
_getEmptyPipeline(fbo: any): any;
|
|
930
|
+
}, mesh: reshader.Mesh, shaderUniforms: {
|
|
931
|
+
meshConfig?: {
|
|
932
|
+
transparent?: boolean;
|
|
933
|
+
bloom?: boolean;
|
|
934
|
+
ssr?: boolean;
|
|
935
|
+
castShadow?: boolean;
|
|
936
|
+
picking?: boolean;
|
|
937
|
+
disableVAO?: boolean;
|
|
938
|
+
};
|
|
939
|
+
primitive?: _______________gl_node_modules__maptalks_regl_dist_regl.PrimitiveType;
|
|
940
|
+
} & {
|
|
941
|
+
[_: string]: string | number | boolean | (number[] | (Uint16Array | Uint32Array | Uint8Array | Int8Array | Int16Array | Float32Array)) | ({
|
|
942
|
+
config: {
|
|
943
|
+
url?: string;
|
|
944
|
+
image?: {
|
|
945
|
+
array: _______________gl_node_modules__maptalks_regl_dist_regl.TextureImageData;
|
|
946
|
+
width: number;
|
|
947
|
+
height: number;
|
|
948
|
+
};
|
|
949
|
+
hdr?: boolean;
|
|
950
|
+
maxRange?: number;
|
|
951
|
+
promise?: Promise<any>;
|
|
952
|
+
persistent?: boolean;
|
|
953
|
+
compare?: GPUCompareFunction;
|
|
954
|
+
} & _______________gl_node_modules__maptalks_regl_dist_regl.Texture2DOptions;
|
|
955
|
+
promise?: Promise<any>;
|
|
956
|
+
resLoader: {
|
|
957
|
+
_events: Record<string, {
|
|
958
|
+
[propName: string]: any;
|
|
959
|
+
type?: string;
|
|
960
|
+
target?: any;
|
|
961
|
+
}>;
|
|
962
|
+
on(type: string, handler: (result?: {
|
|
963
|
+
[propName: string]: any;
|
|
964
|
+
type: string;
|
|
965
|
+
target: any;
|
|
966
|
+
}) => boolean | void): any;
|
|
967
|
+
once(type: string, handler: (result?: {
|
|
968
|
+
[propName: string]: any;
|
|
969
|
+
type: string;
|
|
970
|
+
target: any;
|
|
971
|
+
}) => boolean | void): any;
|
|
972
|
+
off(type: string, handler: (result?: {
|
|
973
|
+
[propName: string]: any;
|
|
974
|
+
type: string;
|
|
975
|
+
target: any;
|
|
976
|
+
}) => boolean | void): any;
|
|
977
|
+
fire(type: string, params?: {
|
|
978
|
+
[propName: string]: any;
|
|
979
|
+
type?: string;
|
|
980
|
+
target?: any;
|
|
981
|
+
}): any;
|
|
982
|
+
_wrapOnce(type: string, handler: (result?: {
|
|
983
|
+
[propName: string]: any;
|
|
984
|
+
type: string;
|
|
985
|
+
target: any;
|
|
986
|
+
}) => boolean | void): (params: any) => void;
|
|
987
|
+
defaultTexture?: Uint8Array;
|
|
988
|
+
defaultCubeTexture: number[];
|
|
989
|
+
urlModifier?: (url: string) => string;
|
|
990
|
+
resources: Record<string, {
|
|
991
|
+
image: any;
|
|
992
|
+
count: number;
|
|
993
|
+
}>;
|
|
994
|
+
setURLModifier(urlModifier: (url: string) => string): void;
|
|
995
|
+
get(url: string | string[]): Promise<{
|
|
996
|
+
url: string;
|
|
997
|
+
data: any;
|
|
998
|
+
}[]> | Promise<{
|
|
999
|
+
url: string;
|
|
1000
|
+
data: any;
|
|
1001
|
+
}>;
|
|
1002
|
+
getArrayBuffer(url: string | string[]): Promise<{
|
|
1003
|
+
url: string;
|
|
1004
|
+
data: any;
|
|
1005
|
+
} | {
|
|
1006
|
+
url: string;
|
|
1007
|
+
data: any;
|
|
1008
|
+
}[]>;
|
|
1009
|
+
disposeRes(url: string | string[]): any;
|
|
1010
|
+
isLoading(): boolean;
|
|
1011
|
+
getDefaultTexture(url: string | string[]): number[] | Uint8Array;
|
|
1012
|
+
};
|
|
1013
|
+
dirty?: boolean;
|
|
1014
|
+
onLoad(data: any): void;
|
|
1015
|
+
isReady(): boolean;
|
|
1016
|
+
set(k: string, v: any): any;
|
|
1017
|
+
get(k: string): any;
|
|
1018
|
+
createREGLTexture(regl: _______________gl_node_modules__maptalks_regl_dist_regl.Regl): _______________gl_node_modules__maptalks_regl_dist_regl.Texture2D;
|
|
1019
|
+
getREGLTexture(regl: any): any;
|
|
1020
|
+
getMemorySize(): number;
|
|
1021
|
+
_update(): void;
|
|
1022
|
+
dispose(): void;
|
|
1023
|
+
_events: Record<string, {
|
|
1024
|
+
[propName: string]: any;
|
|
1025
|
+
type?: string;
|
|
1026
|
+
target?: any;
|
|
1027
|
+
}>;
|
|
1028
|
+
on(type: string, handler: (result?: {
|
|
1029
|
+
[propName: string]: any;
|
|
1030
|
+
type: string;
|
|
1031
|
+
target: any;
|
|
1032
|
+
}) => boolean | void): any;
|
|
1033
|
+
once(type: string, handler: (result?: {
|
|
1034
|
+
[propName: string]: any;
|
|
1035
|
+
type: string;
|
|
1036
|
+
target: any;
|
|
1037
|
+
}) => boolean | void): any;
|
|
1038
|
+
off(type: string, handler: (result?: {
|
|
1039
|
+
[propName: string]: any;
|
|
1040
|
+
type: string;
|
|
1041
|
+
target: any;
|
|
1042
|
+
}) => boolean | void): any;
|
|
1043
|
+
fire(type: string, params?: {
|
|
1044
|
+
[propName: string]: any;
|
|
1045
|
+
type?: string;
|
|
1046
|
+
target?: any;
|
|
1047
|
+
}): any;
|
|
1048
|
+
_wrapOnce(type: string, handler: (result?: {
|
|
1049
|
+
[propName: string]: any;
|
|
1050
|
+
type: string;
|
|
1051
|
+
target: any;
|
|
1052
|
+
}) => boolean | void): (params: any) => void;
|
|
1053
|
+
} | _______________gl_node_modules__maptalks_regl_dist_regl.Texture | {
|
|
1054
|
+
texture: GPUTexture;
|
|
1055
|
+
device: {
|
|
1056
|
+
wgpu: GPUDevice;
|
|
1057
|
+
context: GPUCanvasContext;
|
|
1058
|
+
adapter: GPUAdapter;
|
|
1059
|
+
gltfManager?: any;
|
|
1060
|
+
hasExtension(extension: any): boolean;
|
|
1061
|
+
getCommandEncoder(): GPUCommandEncoder;
|
|
1062
|
+
endCommandEncoder(): void;
|
|
1063
|
+
getDefaultFramebuffer(): {
|
|
1064
|
+
device: any;
|
|
1065
|
+
options: any;
|
|
1066
|
+
width: number;
|
|
1067
|
+
height: number;
|
|
1068
|
+
readonly color: any[];
|
|
1069
|
+
resize(width: any, height: any): void;
|
|
1070
|
+
_update(): void;
|
|
1071
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1072
|
+
setClearOptions(options: any): void;
|
|
1073
|
+
_resetClearOptions(): void;
|
|
1074
|
+
destroy(): void;
|
|
1075
|
+
};
|
|
1076
|
+
getRenderPassEncoder(fbo: {
|
|
1077
|
+
device: any;
|
|
1078
|
+
options: any;
|
|
1079
|
+
width: number;
|
|
1080
|
+
height: number;
|
|
1081
|
+
readonly color: any[];
|
|
1082
|
+
resize(width: any, height: any): void;
|
|
1083
|
+
_update(): void;
|
|
1084
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1085
|
+
setClearOptions(options: any): void;
|
|
1086
|
+
_resetClearOptions(): void;
|
|
1087
|
+
destroy(): void;
|
|
1088
|
+
}): GPURenderPassEncoder;
|
|
1089
|
+
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1090
|
+
submit(): void;
|
|
1091
|
+
preserveDrawingBuffer(canvas: any): void;
|
|
1092
|
+
buffer(options: any): any;
|
|
1093
|
+
elements(options: any): any;
|
|
1094
|
+
framebuffer(width: any, height: any): {
|
|
1095
|
+
device: any;
|
|
1096
|
+
options: any;
|
|
1097
|
+
width: number;
|
|
1098
|
+
height: number;
|
|
1099
|
+
readonly color: any[];
|
|
1100
|
+
resize(width: any, height: any): void;
|
|
1101
|
+
_update(): void;
|
|
1102
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1103
|
+
setClearOptions(options: any): void;
|
|
1104
|
+
_resetClearOptions(): void;
|
|
1105
|
+
destroy(): void;
|
|
1106
|
+
};
|
|
1107
|
+
texture(width: any, height?: any): any;
|
|
1108
|
+
clear(options: any): void;
|
|
1109
|
+
read(options: any): any;
|
|
1110
|
+
destroy(): void;
|
|
1111
|
+
incrDrawCall(): void;
|
|
1112
|
+
resetDrawCalls(): void;
|
|
1113
|
+
getDrawCalls(): 0;
|
|
1114
|
+
_renderToClear(fbo: any): void;
|
|
1115
|
+
_getEmptyPipeline(fbo: any): any;
|
|
1116
|
+
};
|
|
1117
|
+
config: any;
|
|
1118
|
+
readonly width: any;
|
|
1119
|
+
readonly height: any;
|
|
1120
|
+
updateFilter(): void;
|
|
1121
|
+
_clearBindGroups(): void;
|
|
1122
|
+
resize(width: any, height: any): void;
|
|
1123
|
+
update(config: any): void;
|
|
1124
|
+
_updateTexture(): void;
|
|
1125
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1126
|
+
addBindGroup(bindGroup: any): void;
|
|
1127
|
+
destroy(): void;
|
|
1128
|
+
});
|
|
1129
|
+
}, layout: GPUBindGroupLayout, shaderBuffer: {
|
|
1130
|
+
bindgroupMapping: any;
|
|
1131
|
+
dynamicOffsets: number[];
|
|
1132
|
+
pool: {
|
|
1133
|
+
bufferSize: number;
|
|
1134
|
+
poolBuffers: {
|
|
1135
|
+
storage?: ArrayBuffer;
|
|
1136
|
+
gpuBuffer?: GPUBuffer;
|
|
1137
|
+
offset?: number;
|
|
1138
|
+
size?: number;
|
|
1139
|
+
}[];
|
|
1140
|
+
usedBuffers: {
|
|
1141
|
+
storage?: ArrayBuffer;
|
|
1142
|
+
gpuBuffer?: GPUBuffer;
|
|
1143
|
+
offset?: number;
|
|
1144
|
+
size?: number;
|
|
1145
|
+
}[];
|
|
1146
|
+
activeBuffer: {
|
|
1147
|
+
storage?: ArrayBuffer;
|
|
1148
|
+
gpuBuffer?: GPUBuffer;
|
|
1149
|
+
offset?: number;
|
|
1150
|
+
size?: number;
|
|
1151
|
+
};
|
|
1152
|
+
device: GPUDevice;
|
|
1153
|
+
bufferAlignment: number;
|
|
1154
|
+
destroy(): void;
|
|
1155
|
+
alloc(allocation: any, size: any): void;
|
|
1156
|
+
createBuffer(device: GPUDevice, size: number): GPUBuffer;
|
|
1157
|
+
scheduleSubmit(): void;
|
|
1158
|
+
submit(): void;
|
|
1159
|
+
};
|
|
1160
|
+
allocation: {
|
|
1161
|
+
storage?: ArrayBuffer;
|
|
1162
|
+
gpuBuffer?: GPUBuffer;
|
|
1163
|
+
offset?: number;
|
|
1164
|
+
size?: number;
|
|
1165
|
+
};
|
|
1166
|
+
version: number;
|
|
1167
|
+
writeBuffer(uniformValues: Record<string, string | number | boolean | (number[] | (Uint16Array | Uint32Array | Uint8Array | Int8Array | Int16Array | Float32Array)) | ({
|
|
1168
|
+
config: {
|
|
1169
|
+
url?: string;
|
|
1170
|
+
image?: {
|
|
1171
|
+
array: _______________gl_node_modules__maptalks_regl_dist_regl.TextureImageData;
|
|
1172
|
+
width: number;
|
|
1173
|
+
height: number;
|
|
1174
|
+
};
|
|
1175
|
+
hdr?: boolean;
|
|
1176
|
+
maxRange?: number;
|
|
1177
|
+
promise?: Promise<any>;
|
|
1178
|
+
persistent?: boolean;
|
|
1179
|
+
compare?: GPUCompareFunction;
|
|
1180
|
+
} & _______________gl_node_modules__maptalks_regl_dist_regl.Texture2DOptions;
|
|
1181
|
+
promise?: Promise<any>;
|
|
1182
|
+
resLoader: {
|
|
1183
|
+
_events: Record<string, {
|
|
1184
|
+
[propName: string]: any;
|
|
1185
|
+
type?: string;
|
|
1186
|
+
target?: any;
|
|
1187
|
+
}>;
|
|
1188
|
+
on(type: string, handler: (result?: {
|
|
1189
|
+
[propName: string]: any;
|
|
1190
|
+
type: string;
|
|
1191
|
+
target: any;
|
|
1192
|
+
}) => boolean | void): any;
|
|
1193
|
+
once(type: string, handler: (result?: {
|
|
1194
|
+
[propName: string]: any;
|
|
1195
|
+
type: string;
|
|
1196
|
+
target: any;
|
|
1197
|
+
}) => boolean | void): any;
|
|
1198
|
+
off(type: string, handler: (result?: {
|
|
1199
|
+
[propName: string]: any;
|
|
1200
|
+
type: string;
|
|
1201
|
+
target: any;
|
|
1202
|
+
}) => boolean | void): any;
|
|
1203
|
+
fire(type: string, params?: {
|
|
1204
|
+
[propName: string]: any;
|
|
1205
|
+
type?: string;
|
|
1206
|
+
target?: any;
|
|
1207
|
+
}): any;
|
|
1208
|
+
_wrapOnce(type: string, handler: (result?: {
|
|
1209
|
+
[propName: string]: any;
|
|
1210
|
+
type: string;
|
|
1211
|
+
target: any;
|
|
1212
|
+
}) => boolean | void): (params: any) => void;
|
|
1213
|
+
defaultTexture?: Uint8Array;
|
|
1214
|
+
defaultCubeTexture: number[];
|
|
1215
|
+
urlModifier?: (url: string) => string;
|
|
1216
|
+
resources: Record<string, {
|
|
1217
|
+
image: any;
|
|
1218
|
+
count: number;
|
|
1219
|
+
}>;
|
|
1220
|
+
setURLModifier(urlModifier: (url: string) => string): void;
|
|
1221
|
+
get(url: string | string[]): Promise<{
|
|
1222
|
+
url: string;
|
|
1223
|
+
data: any;
|
|
1224
|
+
}[]> | Promise<{
|
|
1225
|
+
url: string;
|
|
1226
|
+
data: any;
|
|
1227
|
+
}>;
|
|
1228
|
+
getArrayBuffer(url: string | string[]): Promise<{
|
|
1229
|
+
url: string;
|
|
1230
|
+
data: any;
|
|
1231
|
+
} | {
|
|
1232
|
+
url: string;
|
|
1233
|
+
data: any;
|
|
1234
|
+
}[]>;
|
|
1235
|
+
disposeRes(url: string | string[]): any;
|
|
1236
|
+
isLoading(): boolean;
|
|
1237
|
+
getDefaultTexture(url: string | string[]): number[] | Uint8Array;
|
|
1238
|
+
};
|
|
1239
|
+
dirty?: boolean;
|
|
1240
|
+
onLoad(data: any): void;
|
|
1241
|
+
isReady(): boolean;
|
|
1242
|
+
set(k: string, v: any): any;
|
|
1243
|
+
get(k: string): any;
|
|
1244
|
+
createREGLTexture(regl: _______________gl_node_modules__maptalks_regl_dist_regl.Regl): _______________gl_node_modules__maptalks_regl_dist_regl.Texture2D;
|
|
1245
|
+
getREGLTexture(regl: any): any;
|
|
1246
|
+
getMemorySize(): number;
|
|
1247
|
+
_update(): void;
|
|
1248
|
+
dispose(): void;
|
|
1249
|
+
_events: Record<string, {
|
|
1250
|
+
[propName: string]: any;
|
|
1251
|
+
type?: string;
|
|
1252
|
+
target?: any;
|
|
1253
|
+
}>;
|
|
1254
|
+
on(type: string, handler: (result?: {
|
|
1255
|
+
[propName: string]: any;
|
|
1256
|
+
type: string;
|
|
1257
|
+
target: any;
|
|
1258
|
+
}) => boolean | void): any;
|
|
1259
|
+
once(type: string, handler: (result?: {
|
|
1260
|
+
[propName: string]: any;
|
|
1261
|
+
type: string;
|
|
1262
|
+
target: any;
|
|
1263
|
+
}) => boolean | void): any;
|
|
1264
|
+
off(type: string, handler: (result?: {
|
|
1265
|
+
[propName: string]: any;
|
|
1266
|
+
type: string;
|
|
1267
|
+
target: any;
|
|
1268
|
+
}) => boolean | void): any;
|
|
1269
|
+
fire(type: string, params?: {
|
|
1270
|
+
[propName: string]: any;
|
|
1271
|
+
type?: string;
|
|
1272
|
+
target?: any;
|
|
1273
|
+
}): any;
|
|
1274
|
+
_wrapOnce(type: string, handler: (result?: {
|
|
1275
|
+
[propName: string]: any;
|
|
1276
|
+
type: string;
|
|
1277
|
+
target: any;
|
|
1278
|
+
}) => boolean | void): (params: any) => void;
|
|
1279
|
+
} | _______________gl_node_modules__maptalks_regl_dist_regl.Texture | {
|
|
1280
|
+
texture: GPUTexture;
|
|
1281
|
+
device: {
|
|
1282
|
+
wgpu: GPUDevice;
|
|
1283
|
+
context: GPUCanvasContext;
|
|
1284
|
+
adapter: GPUAdapter;
|
|
1285
|
+
gltfManager?: any;
|
|
1286
|
+
hasExtension(extension: any): boolean;
|
|
1287
|
+
getCommandEncoder(): GPUCommandEncoder;
|
|
1288
|
+
endCommandEncoder(): void;
|
|
1289
|
+
getDefaultFramebuffer(): {
|
|
1290
|
+
device: any;
|
|
1291
|
+
options: any;
|
|
1292
|
+
width: number;
|
|
1293
|
+
height: number;
|
|
1294
|
+
readonly color: any[];
|
|
1295
|
+
resize(width: any, height: any): void;
|
|
1296
|
+
_update(): void;
|
|
1297
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1298
|
+
setClearOptions(options: any): void;
|
|
1299
|
+
_resetClearOptions(): void;
|
|
1300
|
+
destroy(): void;
|
|
1301
|
+
};
|
|
1302
|
+
getRenderPassEncoder(fbo: {
|
|
1303
|
+
device: any;
|
|
1304
|
+
options: any;
|
|
1305
|
+
width: number;
|
|
1306
|
+
height: number;
|
|
1307
|
+
readonly color: any[];
|
|
1308
|
+
resize(width: any, height: any): void;
|
|
1309
|
+
_update(): void;
|
|
1310
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1311
|
+
setClearOptions(options: any): void;
|
|
1312
|
+
_resetClearOptions(): void;
|
|
1313
|
+
destroy(): void;
|
|
1314
|
+
}): GPURenderPassEncoder;
|
|
1315
|
+
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1316
|
+
submit(): void;
|
|
1317
|
+
preserveDrawingBuffer(canvas: any): void;
|
|
1318
|
+
buffer(options: any): any;
|
|
1319
|
+
elements(options: any): any;
|
|
1320
|
+
framebuffer(width: any, height: any): {
|
|
1321
|
+
device: any;
|
|
1322
|
+
options: any;
|
|
1323
|
+
width: number;
|
|
1324
|
+
height: number;
|
|
1325
|
+
readonly color: any[];
|
|
1326
|
+
resize(width: any, height: any): void;
|
|
1327
|
+
_update(): void;
|
|
1328
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1329
|
+
setClearOptions(options: any): void;
|
|
1330
|
+
_resetClearOptions(): void;
|
|
1331
|
+
destroy(): void;
|
|
1332
|
+
};
|
|
1333
|
+
texture(width: any, height?: any): any;
|
|
1334
|
+
clear(options: any): void;
|
|
1335
|
+
read(options: any): any;
|
|
1336
|
+
destroy(): void;
|
|
1337
|
+
incrDrawCall(): void;
|
|
1338
|
+
resetDrawCalls(): void;
|
|
1339
|
+
getDrawCalls(): 0;
|
|
1340
|
+
_renderToClear(fbo: any): void;
|
|
1341
|
+
_getEmptyPipeline(fbo: any): any;
|
|
1342
|
+
};
|
|
1343
|
+
config: any;
|
|
1344
|
+
readonly width: any;
|
|
1345
|
+
readonly height: any;
|
|
1346
|
+
updateFilter(): void;
|
|
1347
|
+
_clearBindGroups(): void;
|
|
1348
|
+
resize(width: any, height: any): void;
|
|
1349
|
+
update(config: any): void;
|
|
1350
|
+
_updateTexture(): void;
|
|
1351
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1352
|
+
addBindGroup(bindGroup: any): void;
|
|
1353
|
+
destroy(): void;
|
|
1354
|
+
})>, dynamicOffsets: {
|
|
1355
|
+
items: any[];
|
|
1356
|
+
offsets: number[];
|
|
1357
|
+
index: number;
|
|
1358
|
+
reset(): void;
|
|
1359
|
+
addItem(binding: any, offset: any): void;
|
|
1360
|
+
addItems(items: any[]): void;
|
|
1361
|
+
getItems(): any[];
|
|
1362
|
+
getDynamicOffsets(): number[];
|
|
1363
|
+
}): void;
|
|
1364
|
+
_fillValue(type: any, buffer: any, offset: any, size: any, value: any): void;
|
|
1365
|
+
dispose(): void;
|
|
1366
|
+
}, meshBuffer: {
|
|
1367
|
+
bindgroupMapping: any;
|
|
1368
|
+
dynamicOffsets: number[];
|
|
1369
|
+
pool: {
|
|
1370
|
+
bufferSize: number;
|
|
1371
|
+
poolBuffers: {
|
|
1372
|
+
storage?: ArrayBuffer;
|
|
1373
|
+
gpuBuffer?: GPUBuffer;
|
|
1374
|
+
offset?: number;
|
|
1375
|
+
size?: number;
|
|
1376
|
+
}[];
|
|
1377
|
+
usedBuffers: {
|
|
1378
|
+
storage?: ArrayBuffer;
|
|
1379
|
+
gpuBuffer?: GPUBuffer;
|
|
1380
|
+
offset?: number;
|
|
1381
|
+
size?: number;
|
|
1382
|
+
}[];
|
|
1383
|
+
activeBuffer: {
|
|
1384
|
+
storage?: ArrayBuffer;
|
|
1385
|
+
gpuBuffer?: GPUBuffer;
|
|
1386
|
+
offset?: number;
|
|
1387
|
+
size?: number;
|
|
1388
|
+
};
|
|
1389
|
+
device: GPUDevice;
|
|
1390
|
+
bufferAlignment: number;
|
|
1391
|
+
destroy(): void;
|
|
1392
|
+
alloc(allocation: any, size: any): void;
|
|
1393
|
+
createBuffer(device: GPUDevice, size: number): GPUBuffer;
|
|
1394
|
+
scheduleSubmit(): void;
|
|
1395
|
+
submit(): void;
|
|
1396
|
+
};
|
|
1397
|
+
allocation: {
|
|
1398
|
+
storage?: ArrayBuffer;
|
|
1399
|
+
gpuBuffer?: GPUBuffer;
|
|
1400
|
+
offset?: number;
|
|
1401
|
+
size?: number;
|
|
1402
|
+
};
|
|
1403
|
+
version: number;
|
|
1404
|
+
writeBuffer(uniformValues: Record<string, string | number | boolean | (number[] | (Uint16Array | Uint32Array | Uint8Array | Int8Array | Int16Array | Float32Array)) | ({
|
|
1405
|
+
config: {
|
|
1406
|
+
url?: string;
|
|
1407
|
+
image?: {
|
|
1408
|
+
array: _______________gl_node_modules__maptalks_regl_dist_regl.TextureImageData;
|
|
1409
|
+
width: number;
|
|
1410
|
+
height: number;
|
|
1411
|
+
};
|
|
1412
|
+
hdr?: boolean;
|
|
1413
|
+
maxRange?: number;
|
|
1414
|
+
promise?: Promise<any>;
|
|
1415
|
+
persistent?: boolean;
|
|
1416
|
+
compare?: GPUCompareFunction;
|
|
1417
|
+
} & _______________gl_node_modules__maptalks_regl_dist_regl.Texture2DOptions;
|
|
1418
|
+
promise?: Promise<any>;
|
|
1419
|
+
resLoader: {
|
|
1420
|
+
_events: Record<string, {
|
|
1421
|
+
[propName: string]: any;
|
|
1422
|
+
type?: string;
|
|
1423
|
+
target?: any;
|
|
1424
|
+
}>;
|
|
1425
|
+
on(type: string, handler: (result?: {
|
|
1426
|
+
[propName: string]: any;
|
|
1427
|
+
type: string;
|
|
1428
|
+
target: any;
|
|
1429
|
+
}) => boolean | void): any;
|
|
1430
|
+
once(type: string, handler: (result?: {
|
|
1431
|
+
[propName: string]: any;
|
|
1432
|
+
type: string;
|
|
1433
|
+
target: any;
|
|
1434
|
+
}) => boolean | void): any;
|
|
1435
|
+
off(type: string, handler: (result?: {
|
|
1436
|
+
[propName: string]: any;
|
|
1437
|
+
type: string;
|
|
1438
|
+
target: any;
|
|
1439
|
+
}) => boolean | void): any;
|
|
1440
|
+
fire(type: string, params?: {
|
|
1441
|
+
[propName: string]: any;
|
|
1442
|
+
type?: string;
|
|
1443
|
+
target?: any;
|
|
1444
|
+
}): any;
|
|
1445
|
+
_wrapOnce(type: string, handler: (result?: {
|
|
1446
|
+
[propName: string]: any;
|
|
1447
|
+
type: string;
|
|
1448
|
+
target: any;
|
|
1449
|
+
}) => boolean | void): (params: any) => void;
|
|
1450
|
+
defaultTexture?: Uint8Array;
|
|
1451
|
+
defaultCubeTexture: number[];
|
|
1452
|
+
urlModifier?: (url: string) => string;
|
|
1453
|
+
resources: Record<string, {
|
|
1454
|
+
image: any;
|
|
1455
|
+
count: number;
|
|
1456
|
+
}>;
|
|
1457
|
+
setURLModifier(urlModifier: (url: string) => string): void;
|
|
1458
|
+
get(url: string | string[]): Promise<{
|
|
1459
|
+
url: string;
|
|
1460
|
+
data: any;
|
|
1461
|
+
}[]> | Promise<{
|
|
1462
|
+
url: string;
|
|
1463
|
+
data: any;
|
|
1464
|
+
}>;
|
|
1465
|
+
getArrayBuffer(url: string | string[]): Promise<{
|
|
1466
|
+
url: string;
|
|
1467
|
+
data: any;
|
|
1468
|
+
} | {
|
|
1469
|
+
url: string;
|
|
1470
|
+
data: any;
|
|
1471
|
+
}[]>;
|
|
1472
|
+
disposeRes(url: string | string[]): any;
|
|
1473
|
+
isLoading(): boolean;
|
|
1474
|
+
getDefaultTexture(url: string | string[]): number[] | Uint8Array;
|
|
1475
|
+
};
|
|
1476
|
+
dirty?: boolean;
|
|
1477
|
+
onLoad(data: any): void;
|
|
1478
|
+
isReady(): boolean;
|
|
1479
|
+
set(k: string, v: any): any;
|
|
1480
|
+
get(k: string): any;
|
|
1481
|
+
createREGLTexture(regl: _______________gl_node_modules__maptalks_regl_dist_regl.Regl): _______________gl_node_modules__maptalks_regl_dist_regl.Texture2D;
|
|
1482
|
+
getREGLTexture(regl: any): any;
|
|
1483
|
+
getMemorySize(): number;
|
|
1484
|
+
_update(): void;
|
|
1485
|
+
dispose(): void;
|
|
1486
|
+
_events: Record<string, {
|
|
1487
|
+
[propName: string]: any;
|
|
1488
|
+
type?: string;
|
|
1489
|
+
target?: any;
|
|
1490
|
+
}>;
|
|
1491
|
+
on(type: string, handler: (result?: {
|
|
1492
|
+
[propName: string]: any;
|
|
1493
|
+
type: string;
|
|
1494
|
+
target: any;
|
|
1495
|
+
}) => boolean | void): any;
|
|
1496
|
+
once(type: string, handler: (result?: {
|
|
1497
|
+
[propName: string]: any;
|
|
1498
|
+
type: string;
|
|
1499
|
+
target: any;
|
|
1500
|
+
}) => boolean | void): any;
|
|
1501
|
+
off(type: string, handler: (result?: {
|
|
1502
|
+
[propName: string]: any;
|
|
1503
|
+
type: string;
|
|
1504
|
+
target: any;
|
|
1505
|
+
}) => boolean | void): any;
|
|
1506
|
+
fire(type: string, params?: {
|
|
1507
|
+
[propName: string]: any;
|
|
1508
|
+
type?: string;
|
|
1509
|
+
target?: any;
|
|
1510
|
+
}): any;
|
|
1511
|
+
_wrapOnce(type: string, handler: (result?: {
|
|
1512
|
+
[propName: string]: any;
|
|
1513
|
+
type: string;
|
|
1514
|
+
target: any;
|
|
1515
|
+
}) => boolean | void): (params: any) => void;
|
|
1516
|
+
} | _______________gl_node_modules__maptalks_regl_dist_regl.Texture | {
|
|
1517
|
+
texture: GPUTexture;
|
|
1518
|
+
device: {
|
|
1519
|
+
wgpu: GPUDevice;
|
|
1520
|
+
context: GPUCanvasContext;
|
|
1521
|
+
adapter: GPUAdapter;
|
|
1522
|
+
gltfManager?: any;
|
|
1523
|
+
hasExtension(extension: any): boolean;
|
|
1524
|
+
getCommandEncoder(): GPUCommandEncoder;
|
|
1525
|
+
endCommandEncoder(): void;
|
|
1526
|
+
getDefaultFramebuffer(): {
|
|
1527
|
+
device: any;
|
|
1528
|
+
options: any;
|
|
1529
|
+
width: number;
|
|
1530
|
+
height: number;
|
|
1531
|
+
readonly color: any[];
|
|
1532
|
+
resize(width: any, height: any): void;
|
|
1533
|
+
_update(): void;
|
|
1534
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1535
|
+
setClearOptions(options: any): void;
|
|
1536
|
+
_resetClearOptions(): void;
|
|
1537
|
+
destroy(): void;
|
|
1538
|
+
};
|
|
1539
|
+
getRenderPassEncoder(fbo: {
|
|
1540
|
+
device: any;
|
|
1541
|
+
options: any;
|
|
1542
|
+
width: number;
|
|
1543
|
+
height: number;
|
|
1544
|
+
readonly color: any[];
|
|
1545
|
+
resize(width: any, height: any): void;
|
|
1546
|
+
_update(): void;
|
|
1547
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1548
|
+
setClearOptions(options: any): void;
|
|
1549
|
+
_resetClearOptions(): void;
|
|
1550
|
+
destroy(): void;
|
|
1551
|
+
}): GPURenderPassEncoder;
|
|
1552
|
+
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
1553
|
+
submit(): void;
|
|
1554
|
+
preserveDrawingBuffer(canvas: any): void;
|
|
1555
|
+
buffer(options: any): any;
|
|
1556
|
+
elements(options: any): any;
|
|
1557
|
+
framebuffer(width: any, height: any): {
|
|
1558
|
+
device: any;
|
|
1559
|
+
options: any;
|
|
1560
|
+
width: number;
|
|
1561
|
+
height: number;
|
|
1562
|
+
readonly color: any[];
|
|
1563
|
+
resize(width: any, height: any): void;
|
|
1564
|
+
_update(): void;
|
|
1565
|
+
getRenderPassDescriptor(): GPURenderPassDescriptor;
|
|
1566
|
+
setClearOptions(options: any): void;
|
|
1567
|
+
_resetClearOptions(): void;
|
|
1568
|
+
destroy(): void;
|
|
1569
|
+
};
|
|
1570
|
+
texture(width: any, height?: any): any;
|
|
1571
|
+
clear(options: any): void;
|
|
1572
|
+
read(options: any): any;
|
|
1573
|
+
destroy(): void;
|
|
1574
|
+
incrDrawCall(): void;
|
|
1575
|
+
resetDrawCalls(): void;
|
|
1576
|
+
getDrawCalls(): 0;
|
|
1577
|
+
_renderToClear(fbo: any): void;
|
|
1578
|
+
_getEmptyPipeline(fbo: any): any;
|
|
1579
|
+
};
|
|
1580
|
+
config: any;
|
|
1581
|
+
readonly width: any;
|
|
1582
|
+
readonly height: any;
|
|
1583
|
+
updateFilter(): void;
|
|
1584
|
+
_clearBindGroups(): void;
|
|
1585
|
+
resize(width: any, height: any): void;
|
|
1586
|
+
update(config: any): void;
|
|
1587
|
+
_updateTexture(): void;
|
|
1588
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
1589
|
+
addBindGroup(bindGroup: any): void;
|
|
1590
|
+
destroy(): void;
|
|
1591
|
+
})>, dynamicOffsets: {
|
|
1592
|
+
items: any[];
|
|
1593
|
+
offsets: number[];
|
|
1594
|
+
index: number;
|
|
1595
|
+
reset(): void;
|
|
1596
|
+
addItem(binding: any, offset: any): void;
|
|
1597
|
+
addItems(items: any[]): void;
|
|
1598
|
+
getItems(): any[];
|
|
1599
|
+
getDynamicOffsets(): number[];
|
|
1600
|
+
}): void;
|
|
1601
|
+
_fillValue(type: any, buffer: any, offset: any, size: any, value: any): void;
|
|
1602
|
+
dispose(): void;
|
|
1603
|
+
}): {
|
|
1604
|
+
bindGroup: GPUBindGroup;
|
|
1605
|
+
outdated: boolean;
|
|
1606
|
+
uniformTextures?: any;
|
|
1607
|
+
};
|
|
1608
|
+
copyTextures(bindGroup: {
|
|
1609
|
+
bindGroup: GPUBindGroup;
|
|
1610
|
+
outdated: boolean;
|
|
1611
|
+
uniformTextures?: any;
|
|
1612
|
+
}, props: any): void;
|
|
1613
|
+
dispose(): void;
|
|
1614
|
+
};
|
|
1615
|
+
bindGroupMapping: any;
|
|
1616
|
+
activeAttributes: {
|
|
1617
|
+
name: string;
|
|
1618
|
+
type: number;
|
|
1619
|
+
}[] & {
|
|
1620
|
+
key: string;
|
|
1621
|
+
};
|
|
1622
|
+
}, props: any): any;
|
|
1623
|
+
_checkBindGroupTextures(bindGroup: {
|
|
1624
|
+
bindGroup: GPUBindGroup;
|
|
1625
|
+
outdated: boolean;
|
|
1626
|
+
uniformTextures?: any;
|
|
1627
|
+
}, props: any): boolean;
|
|
802
1628
|
_getCurrentRenderPassEncoder(device: {
|
|
803
1629
|
wgpu: GPUDevice;
|
|
804
1630
|
context: GPUCanvasContext;
|
|
805
1631
|
adapter: GPUAdapter;
|
|
806
1632
|
gltfManager?: any;
|
|
807
|
-
_supportedFormats: any;
|
|
808
1633
|
hasExtension(extension: any): boolean;
|
|
809
1634
|
getCommandEncoder(): GPUCommandEncoder;
|
|
810
1635
|
endCommandEncoder(): void;
|
|
@@ -824,7 +1649,7 @@ declare class TileStencilRenderer {
|
|
|
824
1649
|
resize(width: any, height: any): void;
|
|
825
1650
|
update(config: any): void;
|
|
826
1651
|
_updateTexture(): void;
|
|
827
|
-
getView(): GPUTextureView;
|
|
1652
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
828
1653
|
addBindGroup(bindGroup: any): void;
|
|
829
1654
|
destroy(): void;
|
|
830
1655
|
}[];
|
|
@@ -851,7 +1676,7 @@ declare class TileStencilRenderer {
|
|
|
851
1676
|
resize(width: any, height: any): void;
|
|
852
1677
|
update(config: any): void;
|
|
853
1678
|
_updateTexture(): void;
|
|
854
|
-
getView(): GPUTextureView;
|
|
1679
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
855
1680
|
addBindGroup(bindGroup: any): void;
|
|
856
1681
|
destroy(): void;
|
|
857
1682
|
}[];
|
|
@@ -864,7 +1689,9 @@ declare class TileStencilRenderer {
|
|
|
864
1689
|
}): GPURenderPassEncoder;
|
|
865
1690
|
addCommandBuffer(commandBuffer: GPUCommandBuffer, front: boolean): void;
|
|
866
1691
|
submit(): void;
|
|
1692
|
+
preserveDrawingBuffer(canvas: any): void;
|
|
867
1693
|
buffer(options: any): any;
|
|
1694
|
+
elements(options: any): any;
|
|
868
1695
|
framebuffer(width: any, height: any): {
|
|
869
1696
|
device: any;
|
|
870
1697
|
options: any;
|
|
@@ -881,7 +1708,7 @@ declare class TileStencilRenderer {
|
|
|
881
1708
|
resize(width: any, height: any): void;
|
|
882
1709
|
update(config: any): void;
|
|
883
1710
|
_updateTexture(): void;
|
|
884
|
-
getView(): GPUTextureView;
|
|
1711
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
885
1712
|
addBindGroup(bindGroup: any): void;
|
|
886
1713
|
destroy(): void;
|
|
887
1714
|
}[];
|
|
@@ -892,7 +1719,7 @@ declare class TileStencilRenderer {
|
|
|
892
1719
|
_resetClearOptions(): void;
|
|
893
1720
|
destroy(): void;
|
|
894
1721
|
};
|
|
895
|
-
texture(
|
|
1722
|
+
texture(width: any, height?: any): {
|
|
896
1723
|
texture: GPUTexture;
|
|
897
1724
|
device: any;
|
|
898
1725
|
config: any;
|
|
@@ -903,13 +1730,18 @@ declare class TileStencilRenderer {
|
|
|
903
1730
|
resize(width: any, height: any): void;
|
|
904
1731
|
update(config: any): void;
|
|
905
1732
|
_updateTexture(): void;
|
|
906
|
-
getView(): GPUTextureView;
|
|
1733
|
+
getView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
907
1734
|
addBindGroup(bindGroup: any): void;
|
|
908
1735
|
destroy(): void;
|
|
909
1736
|
};
|
|
910
1737
|
clear(options: any): void;
|
|
911
1738
|
read(options: any): any;
|
|
912
1739
|
destroy(): void;
|
|
1740
|
+
incrDrawCall(): void;
|
|
1741
|
+
resetDrawCalls(): void;
|
|
1742
|
+
getDrawCalls(): 0;
|
|
1743
|
+
_renderToClear(fbo: any): void;
|
|
1744
|
+
_getEmptyPipeline(fbo: any): any;
|
|
913
1745
|
}): GPURenderPassEncoder;
|
|
914
1746
|
setFramebuffer(framebuffer: any): any;
|
|
915
1747
|
dispose(): void;
|
|
@@ -918,6 +1750,7 @@ declare class TileStencilRenderer {
|
|
|
918
1750
|
wgslVert: string;
|
|
919
1751
|
wgslFrag: string;
|
|
920
1752
|
uid: number;
|
|
1753
|
+
commandId: number;
|
|
921
1754
|
version: number;
|
|
922
1755
|
extraCommandProps: any;
|
|
923
1756
|
name: string;
|
|
@@ -1485,23 +2318,19 @@ declare class VectorTileLayerRenderer extends VectorTileLayerRenderer_base {
|
|
|
1485
2318
|
_getAllPlugins(): any[];
|
|
1486
2319
|
_getStylePlugins(styleCounter: any): any;
|
|
1487
2320
|
_getFeaturePlugins(styleCounter: any): any;
|
|
1488
|
-
|
|
1489
|
-
_endFrame(timestamp: any): void;
|
|
1490
|
-
getPolygonOffsetCount(): number;
|
|
1491
|
-
_drawDebug(): void;
|
|
1492
|
-
_isVisitable(plugin: any): true | 1 | 0 | 2;
|
|
1493
|
-
_getPluginContext(plugin: any, polygonOffsetIndex: any, cameraPosition: any, timestamp: any): {
|
|
2321
|
+
_createTempRenderContext(timestamp: any, isRenderingTerrain: any): {
|
|
1494
2322
|
regl: any;
|
|
1495
2323
|
layer: any;
|
|
1496
2324
|
gl: WebGL2RenderingContext | WebGLRenderingContext;
|
|
1497
2325
|
isRenderingTerrain: any;
|
|
1498
|
-
isRenderingTerrainSkin: any;
|
|
1499
|
-
sceneConfig: any;
|
|
1500
|
-
pluginIndex: any;
|
|
1501
|
-
polygonOffsetIndex: any;
|
|
1502
|
-
cameraPosition: any;
|
|
1503
2326
|
timestamp: any;
|
|
1504
2327
|
};
|
|
2328
|
+
_startFrame(timestamp: any, filter: any): void;
|
|
2329
|
+
_endFrame(timestamp: any): void;
|
|
2330
|
+
getPolygonOffsetCount(): number;
|
|
2331
|
+
_drawDebug(): void;
|
|
2332
|
+
_isVisitable(plugin: any): true | 1 | 0 | 2;
|
|
2333
|
+
_getPluginContext(plugin: any, polygonOffsetIndex: any, cameraPosition: any, timestamp: any, renderContext: any): any;
|
|
1505
2334
|
_hasMesh(meshes: any): boolean;
|
|
1506
2335
|
_drawTileStencil(fbo: any, painter: any): void;
|
|
1507
2336
|
_stencilRenderer: TileStencilRenderer;
|
|
@@ -1812,8 +2641,11 @@ declare class Vector3DLayerRenderer extends Vector3DLayerRenderer_base {
|
|
|
1812
2641
|
_linePainter: any;
|
|
1813
2642
|
rebuildGeometries(): void;
|
|
1814
2643
|
getCurrentNeedRenderGeos(): any;
|
|
1815
|
-
_defineSymbolBloom(symbol: any, keys: any): void;
|
|
2644
|
+
_defineSymbolBloom(symbol: any, keys: any, name: any): void;
|
|
1816
2645
|
updateBloom(enableBloom: any): void;
|
|
2646
|
+
updateMarkerBloom(enableBloom: any): void;
|
|
2647
|
+
updateLineBloom(enableBloom: any): void;
|
|
2648
|
+
updatePolygonBloom(enableBloom: any): void;
|
|
1817
2649
|
_updatePainterBloom(painter: any, targetSymbol: any, enableBloom: any): void;
|
|
1818
2650
|
createPainter(): void;
|
|
1819
2651
|
resizeCanvas(canvasSize: any): void;
|