@idmwx/idmui-gl4 0.0.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.
Files changed (46) hide show
  1. package/README.md +27 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +12663 -0
  4. package/dist/index.umd.cjs +205 -0
  5. package/dist/loading-blue.gif +0 -0
  6. package/dist/mapbox/index.d.ts +7 -0
  7. package/dist/mapbox/src/components/layer.vue.d.ts +161 -0
  8. package/dist/mapbox/src/components/other/alertZone.vue.d.ts +39 -0
  9. package/dist/mapbox/src/components/other/chinaRoute.vue.d.ts +29 -0
  10. package/dist/mapbox/src/components/other/ecaZone.vue.d.ts +37 -0
  11. package/dist/mapbox/src/components/other/enc.vue.d.ts +59 -0
  12. package/dist/mapbox/src/components/other/gmdssArea.vue.d.ts +33 -0
  13. package/dist/mapbox/src/components/other/latLng.vue.d.ts +73 -0
  14. package/dist/mapbox/src/components/other/loadLines.vue.d.ts +33 -0
  15. package/dist/mapbox/src/components/other/measure.vue.d.ts +53 -0
  16. package/dist/mapbox/src/components/other/point.vue.d.ts +120 -0
  17. package/dist/mapbox/src/components/other/port.vue.d.ts +45 -0
  18. package/dist/mapbox/src/components/other/specialArea.vue.d.ts +33 -0
  19. package/dist/mapbox/src/components/other/terminator.vue.d.ts +28 -0
  20. package/dist/mapbox/src/components/other/timezone.vue.d.ts +33 -0
  21. package/dist/mapbox/src/components/other/vra.vue.d.ts +33 -0
  22. package/dist/mapbox/src/components/other/warZone.vue.d.ts +33 -0
  23. package/dist/mapbox/src/components/other/world12nm.vue.d.ts +58 -0
  24. package/dist/mapbox/src/components/other/worldMarine.vue.d.ts +29 -0
  25. package/dist/mapbox/src/components/weather/current.vue.d.ts +76 -0
  26. package/dist/mapbox/src/components/weather/currentParticle.vue.d.ts +69 -0
  27. package/dist/mapbox/src/components/weather/iceCover.vue.d.ts +49 -0
  28. package/dist/mapbox/src/components/weather/iceEdge.vue.d.ts +49 -0
  29. package/dist/mapbox/src/components/weather/iceThickness.vue.d.ts +50 -0
  30. package/dist/mapbox/src/components/weather/precip3h.vue.d.ts +50 -0
  31. package/dist/mapbox/src/components/weather/prmsl.vue.d.ts +49 -0
  32. package/dist/mapbox/src/components/weather/sigWave.vue.d.ts +50 -0
  33. package/dist/mapbox/src/components/weather/sigWaveHeight.vue.d.ts +39 -0
  34. package/dist/mapbox/src/components/weather/swell.vue.d.ts +45 -0
  35. package/dist/mapbox/src/components/weather/temp.vue.d.ts +50 -0
  36. package/dist/mapbox/src/components/weather/tropical.vue.d.ts +85 -0
  37. package/dist/mapbox/src/components/weather/visibility.vue.d.ts +49 -0
  38. package/dist/mapbox/src/components/weather/waterTemp.vue.d.ts +50 -0
  39. package/dist/mapbox/src/components/weather/wind.vue.d.ts +73 -0
  40. package/dist/mapbox/src/components/weather/windParticle.vue.d.ts +68 -0
  41. package/dist/mapbox/src/helper.d.ts +175 -0
  42. package/dist/mapbox/src/index.vue.d.ts +118 -0
  43. package/dist/night.png +0 -0
  44. package/dist/style.css +1 -0
  45. package/dist/vite.svg +1 -0
  46. package/package.json +80 -0
@@ -0,0 +1,39 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace map {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace sigWaveHeight {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace beforeLayer {
13
+ const type_2: StringConstructor;
14
+ export { type_2 as type };
15
+ }
16
+ namespace activeWeatherLayers {
17
+ const type_3: ArrayConstructor;
18
+ export { type_3 as type };
19
+ }
20
+ }
21
+ function data(): {
22
+ source: string;
23
+ heightLayer: string;
24
+ heightLabelLayer: string;
25
+ empty: turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
26
+ };
27
+ const watch: {
28
+ 'sigWaveHeight.version': {
29
+ handler(): void;
30
+ deep: boolean;
31
+ };
32
+ };
33
+ namespace methods {
34
+ function handleRender(): void;
35
+ function handleMove(): void;
36
+ function handleClear(): void;
37
+ }
38
+ }
39
+ import * as turf from '@turf/turf';
@@ -0,0 +1,45 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace map {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace swell {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace beforeLayer {
13
+ const type_2: StringConstructor;
14
+ export { type_2 as type };
15
+ }
16
+ namespace activeWeatherLayers {
17
+ const type_3: ArrayConstructor;
18
+ export { type_3 as type };
19
+ }
20
+ }
21
+ function data(): {
22
+ source: string;
23
+ directionLayer: string;
24
+ heightLayer: string;
25
+ heightLabelLayer: string;
26
+ empty: turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
27
+ };
28
+ const watch: {
29
+ 'swell.version': {
30
+ handler(): void;
31
+ deep: boolean;
32
+ };
33
+ activeWeatherLayers: {
34
+ handler(): void;
35
+ deep: boolean;
36
+ immediate: boolean;
37
+ };
38
+ };
39
+ namespace methods {
40
+ function handleRender(): void;
41
+ function handleMove(): void;
42
+ function handleClear(): void;
43
+ }
44
+ }
45
+ import * as turf from '@turf/turf';
@@ -0,0 +1,50 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace factor {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace viewport {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace bottom {
13
+ const type_2: StringConstructor;
14
+ export { type_2 as type };
15
+ const _default: string;
16
+ export { _default as default };
17
+ }
18
+ namespace toggleVersion {
19
+ const type_3: NumberConstructor;
20
+ export { type_3 as type };
21
+ }
22
+ }
23
+ function data(): {
24
+ program: undefined;
25
+ context: undefined;
26
+ texture: undefined;
27
+ rampColor: undefined;
28
+ aPositionBuffer: undefined;
29
+ webgl: WebGL;
30
+ etime: undefined;
31
+ right: number;
32
+ };
33
+ const watch: {
34
+ 'factor.version': {
35
+ handler(): void;
36
+ deep: boolean;
37
+ };
38
+ toggleVersion: {
39
+ handler(): void;
40
+ immediate: boolean;
41
+ };
42
+ };
43
+ namespace methods {
44
+ function handleRender(): void;
45
+ function handleClear(): void;
46
+ function handleSetup(): void;
47
+ function handleDraw(): Promise<void>;
48
+ }
49
+ }
50
+ import { WebGL } from '../../helper.ts';
@@ -0,0 +1,85 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace map {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace tropicals {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace date {
13
+ const type_2: StringConstructor;
14
+ export { type_2 as type };
15
+ }
16
+ namespace timeZone {
17
+ const type_3: NumberConstructor;
18
+ export { type_3 as type };
19
+ const _default: number;
20
+ export { _default as default };
21
+ }
22
+ }
23
+ const emits: string[];
24
+ function data(): {
25
+ helper: any;
26
+ source: string;
27
+ clusterSource: string;
28
+ historyLayer: string;
29
+ forecastLayer: string;
30
+ forecastModelLayer: string;
31
+ forecastNameLayer: string;
32
+ pointCircleLayer: string;
33
+ pointLabelLayer: string;
34
+ historyPointCircleLayer: string;
35
+ historyPointLabelLayer: string;
36
+ interpolateData: never[];
37
+ interpolateMarkers: never[];
38
+ interpolateSource: string;
39
+ interpolateLineLayer: string;
40
+ showTropicals: boolean;
41
+ activeTropicals: undefined;
42
+ activeTropicalsMarker: undefined;
43
+ empty: turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
44
+ circleSource: string;
45
+ circleSourceData: turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
46
+ circleLayer: string;
47
+ };
48
+ namespace computed {
49
+ function computeTime(): (time: any) => string;
50
+ function computeTimezone(): any;
51
+ function computeBF(): (kts: any) => number;
52
+ function computeMovement(): (activeTropicals: any) => any;
53
+ }
54
+ const watch: {
55
+ 'tropicals.active': {
56
+ handler(): void;
57
+ immediate: boolean;
58
+ };
59
+ showTropicals: {
60
+ handler(): void;
61
+ immediate: boolean;
62
+ };
63
+ 'tropicals.version': {
64
+ handler(): void;
65
+ };
66
+ timeZone: {
67
+ handler(): void;
68
+ };
69
+ };
70
+ namespace methods {
71
+ function handleRefresh(): void;
72
+ function handleInit(): void;
73
+ function handleRender(): void;
74
+ function handleClear(): void;
75
+ function handleDateChange(): void;
76
+ function handleClick(event: any): void;
77
+ function handleForecastToggle(forecast: any): void;
78
+ function handleStrikeProbability(tropical: any): void;
79
+ function handleToggleCircles(activeTropicals: any): void;
80
+ function handleDrawCircle(): void;
81
+ function handleComputePolygons(points: any): (turf.helpers.Feature<turf.helpers.MultiPolygon, turf.helpers.Properties> | turf.helpers.Feature<turf.helpers.Polygon, turf.helpers.Properties>)[];
82
+ function handleComputeArc(center: any, radius: any, properties: any): turf.helpers.Feature<turf.helpers.MultiPolygon, turf.helpers.Properties> | turf.helpers.Feature<turf.helpers.Polygon, turf.helpers.Properties>;
83
+ }
84
+ }
85
+ import * as turf from '@turf/turf';
@@ -0,0 +1,49 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace factor {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace viewport {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace bottom {
13
+ const type_2: StringConstructor;
14
+ export { type_2 as type };
15
+ const _default: string;
16
+ export { _default as default };
17
+ }
18
+ namespace toggleVersion {
19
+ const type_3: NumberConstructor;
20
+ export { type_3 as type };
21
+ }
22
+ }
23
+ function data(): {
24
+ program: undefined;
25
+ context: undefined;
26
+ texture: undefined;
27
+ rampColor: undefined;
28
+ aPositionBuffer: undefined;
29
+ webgl: WebGL;
30
+ etime: undefined;
31
+ };
32
+ const watch: {
33
+ 'factor.version': {
34
+ handler(): void;
35
+ deep: boolean;
36
+ };
37
+ toggleVersion: {
38
+ handler(): void;
39
+ immediate: boolean;
40
+ };
41
+ };
42
+ namespace methods {
43
+ function handleRender(): void;
44
+ function handleClear(): void;
45
+ function handleSetup(): void;
46
+ function handleDraw(): Promise<void>;
47
+ }
48
+ }
49
+ import { WebGL } from '../../helper.ts';
@@ -0,0 +1,50 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace factor {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace viewport {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace bottom {
13
+ const type_2: StringConstructor;
14
+ export { type_2 as type };
15
+ const _default: string;
16
+ export { _default as default };
17
+ }
18
+ namespace toggleVersion {
19
+ const type_3: NumberConstructor;
20
+ export { type_3 as type };
21
+ }
22
+ }
23
+ function data(): {
24
+ program: undefined;
25
+ context: undefined;
26
+ texture: undefined;
27
+ rampColor: undefined;
28
+ aPositionBuffer: undefined;
29
+ webgl: WebGL;
30
+ etime: undefined;
31
+ right: number;
32
+ };
33
+ const watch: {
34
+ 'factor.version': {
35
+ handler(): void;
36
+ deep: boolean;
37
+ };
38
+ toggleVersion: {
39
+ handler(): void;
40
+ immediate: boolean;
41
+ };
42
+ };
43
+ namespace methods {
44
+ function handleRender(): void;
45
+ function handleClear(): void;
46
+ function handleSetup(): void;
47
+ function handleDraw(): Promise<void>;
48
+ }
49
+ }
50
+ import { WebGL } from '../../helper.ts';
@@ -0,0 +1,73 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace map {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace wind {
9
+ const type_1: ObjectConstructor;
10
+ export { type_1 as type };
11
+ }
12
+ namespace current {
13
+ const type_2: ObjectConstructor;
14
+ export { type_2 as type };
15
+ }
16
+ namespace beforeLayer {
17
+ const type_3: StringConstructor;
18
+ export { type_3 as type };
19
+ }
20
+ namespace mapProjection {
21
+ const type_4: StringConstructor;
22
+ export { type_4 as type };
23
+ }
24
+ namespace showWindFeather {
25
+ const type_5: BooleanConstructor;
26
+ export { type_5 as type };
27
+ const _default: boolean;
28
+ export { _default as default };
29
+ }
30
+ namespace showWindParticle {
31
+ const type_6: BooleanConstructor;
32
+ export { type_6 as type };
33
+ const _default_1: boolean;
34
+ export { _default_1 as default };
35
+ }
36
+ namespace toggleParticeVersion {
37
+ const type_7: NumberConstructor;
38
+ export { type_7 as type };
39
+ }
40
+ namespace toggleVersion {
41
+ const type_8: NumberConstructor;
42
+ export { type_8 as type };
43
+ }
44
+ }
45
+ const emits: string[];
46
+ function data(): {
47
+ source: string;
48
+ barbs: number[];
49
+ empty: turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
50
+ right: number;
51
+ bottom: number;
52
+ windBarbLoaded: boolean;
53
+ };
54
+ const watch: {
55
+ 'wind.version': {
56
+ handler(): void;
57
+ deep: boolean;
58
+ };
59
+ toggleParticeVersion: {
60
+ handler(): void;
61
+ };
62
+ showWindFeather: {
63
+ handler(): void;
64
+ };
65
+ };
66
+ namespace methods {
67
+ function handleParticle(): void;
68
+ function handleRender(): void;
69
+ function handleToggle(): void;
70
+ function handleClear(): void;
71
+ }
72
+ }
73
+ import * as turf from '@turf/turf';
@@ -0,0 +1,68 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ namespace props {
5
+ namespace factor {
6
+ const type: ObjectConstructor;
7
+ }
8
+ namespace viewport {
9
+ export { Viewport as type };
10
+ }
11
+ namespace bottom {
12
+ const type_1: StringConstructor;
13
+ export { type_1 as type };
14
+ const _default: string;
15
+ export { _default as default };
16
+ }
17
+ namespace toggleVersion {
18
+ const type_2: NumberConstructor;
19
+ export { type_2 as type };
20
+ }
21
+ }
22
+ function data(): {
23
+ program: undefined;
24
+ context: undefined;
25
+ texture: undefined;
26
+ rampColor: undefined;
27
+ aPositionBuffer: undefined;
28
+ webgl: WebGL;
29
+ etime: undefined;
30
+ wrapper: undefined;
31
+ animation: undefined;
32
+ particleContext: undefined;
33
+ particleTexture: undefined;
34
+ particleOptions: {
35
+ fadeOpacity: number;
36
+ speedFactor: number;
37
+ dropRate: number;
38
+ dropRateBump: number;
39
+ uvRange: number[];
40
+ sRange: number[];
41
+ };
42
+ paused: boolean;
43
+ initial: boolean;
44
+ right: number;
45
+ };
46
+ const watch: {
47
+ 'factor.version': {
48
+ handler(): void;
49
+ deep: boolean;
50
+ };
51
+ toggleVersion: {
52
+ handler(): void;
53
+ immediate: boolean;
54
+ };
55
+ };
56
+ namespace methods {
57
+ function handleRender(): void;
58
+ function handleClear(): void;
59
+ function handleSetup(): void;
60
+ function handleParticleSetup(): void;
61
+ function handleDraw(): Promise<void>;
62
+ function handleResize(): void;
63
+ function handlePause(): void;
64
+ function handlePlay(): void;
65
+ }
66
+ }
67
+ import { Viewport } from '../../helper.ts';
68
+ import { WebGL } from '../../helper.ts';
@@ -0,0 +1,175 @@
1
+ import mapboxgl from 'mapbox-gl';
2
+ export interface ParticleOptions {
3
+ fadeOpacity: number;
4
+ speedFactor: number;
5
+ dropRate: number;
6
+ dropRateBump: number;
7
+ uvRange: number[];
8
+ sRange: number[];
9
+ scale: number;
10
+ }
11
+ export declare class Viewport {
12
+ map: mapboxgl.Map;
13
+ private mercator;
14
+ rampColorLayer: string;
15
+ rampColorSource: string;
16
+ particleLayer: string;
17
+ particleSource: string;
18
+ rampColorCanvas: HTMLCanvasElement;
19
+ particleCanvas: HTMLCanvasElement;
20
+ ratio: number;
21
+ constructor(map: mapboxgl.Map);
22
+ /**
23
+ * 转换为[-180, 180]的经度,且包含转换次数
24
+ * @param lng
25
+ * @param n
26
+ */
27
+ private convertNLng;
28
+ /**
29
+ * [4326坐标]
30
+ * 返回视窗边界经纬度(从西北方向逆时针返回四个角的经纬度)
31
+ * 依次为: NW, NE, SE, SW
32
+ * @param map
33
+ * @return [[lng, lat], [lng, lat], [lng, lat], [lng, lat]]
34
+ */
35
+ getBoundLngLat(): number[][];
36
+ /**
37
+ * [视窗像素坐标]
38
+ * @see https://github.com/mapbox/sphericalmercator
39
+ * 返回视窗边界像素
40
+ * 依次为: 左下角(lf = left bottom)、右上角(rt = right top)
41
+ * @param [lb.x, lb.y, rt.x, rt.y]
42
+ */
43
+ getBoundPixel(): any[];
44
+ /**
45
+ * [视窗边界像素宽度]
46
+ */
47
+ getBoundRange(): any[];
48
+ /**
49
+ * 获取视窗世界(多世界复本)
50
+ * @param pixels
51
+ * @param zoom
52
+ */
53
+ getWorldCopy(pixels: number[], zoom: number): number[][];
54
+ resize(): void;
55
+ toggle(visible: boolean): void;
56
+ toggleParticle(visible: boolean): void;
57
+ }
58
+ export declare class WebGL {
59
+ /**
60
+ * 创建着色器
61
+ * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
62
+ * @param gl
63
+ * @param type [VERTEX_SHADER, FRAGMENT_SHADER]
64
+ * @param schema 着色器渲染代码[GLSL]
65
+ */
66
+ createShader(gl: WebGLRenderingContext, type: GLenum, schema: any): WebGLShader | null;
67
+ /**
68
+ * 创建纹理
69
+ * @see https://blog.csdn.net/qq_37987033/article/details/128745577
70
+ * @param gl
71
+ * @param minFilter
72
+ * @param magFilter
73
+ * @param wrapFilter
74
+ * @param data
75
+ * @param width??
76
+ * @param height??
77
+ */
78
+ createTexture(gl: WebGLRenderingContext, minFilter: GLint, magFilter: GLint, wrapFilter: GLint, data: Uint8Array | HTMLCanvasElement | HTMLImageElement | undefined, width?: number | undefined, height?: number | undefined): WebGLTexture | null;
79
+ /**
80
+ * 创建数据资源
81
+ * @param type [array, element]
82
+ * array: ARRAY_BUFFER
83
+ * element: ELEMENT_ARRAY_BUFFER
84
+ * @param resource 顶点数据
85
+ */
86
+ createDataBuffer(gl: WebGLRenderingContext, type: string, resource: BufferSource | undefined): WebGLBuffer | null;
87
+ /**
88
+ * 创建程序
89
+ * @param gl
90
+ * @param vertexSchema
91
+ * @param fragmentSchema
92
+ */
93
+ createProgram(gl: WebGLRenderingContext, vertexSchema: string, fragmentSchema: string): WebGLProgram | null;
94
+ /**
95
+ * 创建程序并提取attrib & uniform参数
96
+ * @param gl
97
+ * @param vertexSchema
98
+ * @param fragmentSchema
99
+ */
100
+ private createProgramWrapper;
101
+ /**
102
+ * 初始化渐变色纹理
103
+ * @param colors
104
+ */
105
+ setup(context: WebGLRenderingContext | null, colors: Array<[number, string]>, int8?: boolean, width?: number, height?: number): {
106
+ canvas: HTMLCanvasElement;
107
+ texture: WebGLTexture | null;
108
+ } | undefined;
109
+ setupParticle(context: WebGLRenderingContext, num?: number): {
110
+ resolution: number;
111
+ total: number;
112
+ texture0: WebGLTexture | null;
113
+ texture1: WebGLTexture | null;
114
+ indexBuffer: WebGLBuffer | null;
115
+ };
116
+ bind(context: WebGLRenderingContext | null, vertexSchema: string, fragmentSchema: string): {
117
+ program: WebGLProgram;
118
+ aPositionBuffer: WebGLBuffer | null;
119
+ } | {
120
+ program?: undefined;
121
+ aPositionBuffer?: undefined;
122
+ };
123
+ bindParticle(gl: WebGLRenderingContext, drawVert: string, drawFrag: string, quadVert: string, screenFrag: string, updateFrag: string): {
124
+ particle: {
125
+ program: WebGLProgram;
126
+ } | undefined;
127
+ screen: {
128
+ program: WebGLProgram;
129
+ } | undefined;
130
+ update: {
131
+ program: WebGLProgram;
132
+ } | undefined;
133
+ quadBuffer: WebGLBuffer | null;
134
+ frameBuffer: WebGLFramebuffer | null;
135
+ };
136
+ draw(viewport: Viewport, context: WebGLRenderingContext | null, program: WebGLProgram | null, texture: WebGLTexture | null, colorTexture: WebGLTexture | null, aPositionBuffer: WebGLBuffer | null, options?: ParticleOptions): void;
137
+ drawParticle(viewport: Viewport, gl: WebGLRenderingContext, factorTexture: WebGLTexture, wrapper: any, options: ParticleOptions): void;
138
+ private renderScreen;
139
+ private renderScreenTexture;
140
+ renderParticles(viewport: Viewport, gl: WebGLRenderingContext, wrapper: any, options: ParticleOptions): void;
141
+ updateParticles(viewport: Viewport, gl: WebGLRenderingContext, wrapper: any, options: ParticleOptions): void;
142
+ resize(viewport: Viewport, gl: WebGLRenderingContext): {
143
+ screenTexture: WebGLTexture | null;
144
+ backgroundTexture: WebGLTexture | null;
145
+ };
146
+ loadImg(data: any): Promise<HTMLImageElement>;
147
+ }
148
+ /**
149
+ * WebGL (GLSL)渲染语法
150
+ */
151
+ export declare class WebGLSchema {
152
+ static vertexSchema: string;
153
+ static uvFragmentSchema: string;
154
+ static fragmentSchema: string;
155
+ }
156
+ export declare class ParticleSchema {
157
+ static vertexSchema: string;
158
+ static fragmentSchema: string;
159
+ static quadVertSchema: string;
160
+ static screenFragmentSchema: string;
161
+ static updateFragmentSchema: string;
162
+ }
163
+ /**
164
+ * Mapbox辅助图层
165
+ */
166
+ export declare class MapboxHelper {
167
+ token: any;
168
+ mapboxCustomer: any;
169
+ i4: any;
170
+ hi: any;
171
+ td: any;
172
+ windy: any;
173
+ mapboxStyle: any;
174
+ constructor(token?: string);
175
+ }