@idmwx/idmui-gl4 3.6.8 → 3.7.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/{chunk-3VYIPD3A-521ddd72.js → chunk-3VYIPD3A-4b8249ae.js} +1 -1
- package/dist/{chunk-ANSXOGKI-52e829ce.js → chunk-ANSXOGKI-27dfa8c5.js} +1 -1
- package/dist/{chunk-T4JIPPZO-ae4347c1.js → chunk-T4JIPPZO-be08c8c4.js} +1 -1
- package/dist/{download-131ab3d0.js → download-7e1827bf.js} +3 -3
- package/dist/{index-0d4dba4e.js → index-c7f6812c.js} +5775 -5116
- package/dist/index.js +13 -12
- package/dist/index.umd.cjs +233 -31
- package/dist/mapbox/src/components/capture/gifRecorder.d.ts +0 -3
- package/dist/mapbox/src/components/capture/index.vue.d.ts +0 -3
- package/dist/mapbox/src/components/weather/currentDirection.vue.d.ts +1 -1
- package/dist/mapbox/src/components/weather/currentParticle.vue.d.ts +1 -0
- package/dist/mapbox/src/components/weather/index.vue.d.ts +10 -5
- package/dist/mapbox/src/components/weather/prmsl.vue.d.ts +2 -6
- package/dist/mapbox/src/components/weather/sigWaveParticle.vue.d.ts +84 -0
- package/dist/mapbox/src/components/weather/swellDirection.vue.d.ts +50 -0
- package/dist/mapbox/src/components/weather/swellPartical.vue.d.ts +83 -0
- package/dist/mapbox/src/components/weather/windBarbs.vue.d.ts +3 -7
- package/dist/mapbox/src/components/weather/windParticle.vue.d.ts +1 -0
- package/dist/mapbox/src/helper/viewport.d.ts +42 -19
- package/dist/{rasterize-JS5G2XHH-cc446959.js → rasterize-JS5G2XHH-7afc95d8.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{toBlob-6d3d669c.js → toBlob-e42b3bb3.js} +3 -3
- package/dist/{toCanvas-278ce257.js → toCanvas-c9ff7871.js} +2 -2
- package/dist/{toImg-8df15930.js → toImg-d84ef9e4.js} +3 -3
- package/package.json +2 -2
- package/dist/mapbox/src/components/weather/sigWave.vue.d.ts +0 -56
- package/dist/mapbox/src/components/weather/swell.vue.d.ts +0 -56
|
@@ -57,8 +57,6 @@ export declare class GifRecorder {
|
|
|
57
57
|
* 合成 MP4 视频(使用 MediaRecorder API)
|
|
58
58
|
*/
|
|
59
59
|
generateMp4(): Promise<Blob | null>;
|
|
60
|
-
generateWebm(): Promise<Blob | null>;
|
|
61
|
-
private generateVideo;
|
|
62
60
|
/**
|
|
63
61
|
* 下载 GIF 文件
|
|
64
62
|
*/
|
|
@@ -67,7 +65,6 @@ export declare class GifRecorder {
|
|
|
67
65
|
* 下载 MP4 文件
|
|
68
66
|
*/
|
|
69
67
|
downloadMp4(blob: Blob, title?: string): void;
|
|
70
|
-
downloadWebm(blob: Blob, title?: string): void;
|
|
71
68
|
/**
|
|
72
69
|
* 保存为文件
|
|
73
70
|
*/
|
|
@@ -47,10 +47,8 @@ declare namespace _sfc_main {
|
|
|
47
47
|
frameCount: number;
|
|
48
48
|
gifBlob: null;
|
|
49
49
|
mp4Blob: null;
|
|
50
|
-
webmBlob: null;
|
|
51
50
|
gifUrl: string;
|
|
52
51
|
mp4Url: string;
|
|
53
|
-
webmUrl: string;
|
|
54
52
|
exportErrors: never[];
|
|
55
53
|
generating: boolean;
|
|
56
54
|
generationTimer: null;
|
|
@@ -86,6 +84,5 @@ declare namespace _sfc_main {
|
|
|
86
84
|
function handleUpload(): Promise<void>;
|
|
87
85
|
function handleDownloadGif(): void;
|
|
88
86
|
function handleDownloadMp4(): void;
|
|
89
|
-
function handleDownloadWebm(): void;
|
|
90
87
|
}
|
|
91
88
|
}
|
|
@@ -92,7 +92,6 @@ declare namespace _sfc_main {
|
|
|
92
92
|
checkList: never[];
|
|
93
93
|
renderKey: string;
|
|
94
94
|
iceToggleValue: undefined;
|
|
95
|
-
waveToggleValue: undefined;
|
|
96
95
|
weatherLayers: {};
|
|
97
96
|
activeWeatherLayers: never[];
|
|
98
97
|
cache: {
|
|
@@ -108,6 +107,8 @@ declare namespace _sfc_main {
|
|
|
108
107
|
particleFactor: undefined;
|
|
109
108
|
showWindParticle: boolean;
|
|
110
109
|
showCurrentParticle: boolean;
|
|
110
|
+
showSigWaveParticle: boolean;
|
|
111
|
+
showSwellParticle: boolean;
|
|
111
112
|
legendToggle: boolean;
|
|
112
113
|
legend: {
|
|
113
114
|
barbs: number[];
|
|
@@ -163,15 +164,18 @@ declare namespace _sfc_main {
|
|
|
163
164
|
iceToggleValue: {
|
|
164
165
|
handler(newV: any): void;
|
|
165
166
|
};
|
|
166
|
-
waveToggleValue: {
|
|
167
|
-
handler(newV: any): void;
|
|
168
|
-
};
|
|
169
167
|
showWindParticle: {
|
|
170
168
|
handler(newV: any): void;
|
|
171
169
|
};
|
|
172
170
|
showCurrentParticle: {
|
|
173
171
|
handler(newV: any): void;
|
|
174
172
|
};
|
|
173
|
+
showSigWaveParticle: {
|
|
174
|
+
handler(newV: any): void;
|
|
175
|
+
};
|
|
176
|
+
showSwellParticle: {
|
|
177
|
+
handler(newV: any): void;
|
|
178
|
+
};
|
|
175
179
|
isLogin: {
|
|
176
180
|
handler(newV: any): void;
|
|
177
181
|
immediate: boolean;
|
|
@@ -180,6 +184,7 @@ declare namespace _sfc_main {
|
|
|
180
184
|
function mounted(): void;
|
|
181
185
|
namespace methods {
|
|
182
186
|
function arraysEqual(arr1: any, arr2: any): boolean;
|
|
187
|
+
function normalizeWaveSelection(keys: any): any;
|
|
183
188
|
function fetchCache(): void;
|
|
184
189
|
function handleMenuToggle(): void;
|
|
185
190
|
function handleFastWeatherToggle(key: any): void;
|
|
@@ -192,7 +197,7 @@ declare namespace _sfc_main {
|
|
|
192
197
|
}): void;
|
|
193
198
|
function handleRampColorInitial(): void;
|
|
194
199
|
function handleDrawWeather4Json(): void;
|
|
195
|
-
function handleMove4Weather(): void;
|
|
196
200
|
function handleBboxClip(fc: any, bounds: any): any[];
|
|
201
|
+
function handleMove4Weather(): void;
|
|
197
202
|
}
|
|
198
203
|
}
|
|
@@ -13,13 +13,9 @@ declare namespace _sfc_main {
|
|
|
13
13
|
const type_2: StringConstructor;
|
|
14
14
|
export { type_2 as type };
|
|
15
15
|
}
|
|
16
|
-
namespace showRampColor {
|
|
17
|
-
const type_3: BooleanConstructor;
|
|
18
|
-
export { type_3 as type };
|
|
19
|
-
}
|
|
20
16
|
namespace theme {
|
|
21
|
-
const
|
|
22
|
-
export {
|
|
17
|
+
const type_3: StringConstructor;
|
|
18
|
+
export { type_3 as type };
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
21
|
function data(): {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export default _sfc_main;
|
|
2
|
+
declare namespace _sfc_main {
|
|
3
|
+
const name: string;
|
|
4
|
+
namespace props {
|
|
5
|
+
namespace simple {
|
|
6
|
+
export const type: BooleanConstructor;
|
|
7
|
+
const _default: boolean;
|
|
8
|
+
export { _default as default };
|
|
9
|
+
}
|
|
10
|
+
namespace factor {
|
|
11
|
+
const type_1: ObjectConstructor;
|
|
12
|
+
export { type_1 as type };
|
|
13
|
+
}
|
|
14
|
+
namespace viewport {
|
|
15
|
+
export { Viewport as type };
|
|
16
|
+
}
|
|
17
|
+
namespace menuToggle {
|
|
18
|
+
const type_2: ObjectConstructor;
|
|
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
|
+
rendererKey: string;
|
|
30
|
+
backgroundFragmentSchema: string;
|
|
31
|
+
etime: undefined;
|
|
32
|
+
dataSource: undefined;
|
|
33
|
+
imageSource: undefined;
|
|
34
|
+
imageEtime: undefined;
|
|
35
|
+
imagePromise: undefined;
|
|
36
|
+
drawVersion: number;
|
|
37
|
+
wrapper: undefined;
|
|
38
|
+
animation: undefined;
|
|
39
|
+
lastParticleFrameTime: undefined;
|
|
40
|
+
particleContext: undefined;
|
|
41
|
+
particleTexture: undefined;
|
|
42
|
+
particleCount: number;
|
|
43
|
+
particleOptions: {
|
|
44
|
+
fadeOpacity: number;
|
|
45
|
+
lineLength: number;
|
|
46
|
+
lineOpacity: number;
|
|
47
|
+
speedFactor: number;
|
|
48
|
+
dropRate: number;
|
|
49
|
+
dropRateBump: number;
|
|
50
|
+
uvRange: number[];
|
|
51
|
+
sRange: number[];
|
|
52
|
+
};
|
|
53
|
+
paused: boolean;
|
|
54
|
+
initial: boolean;
|
|
55
|
+
right: number;
|
|
56
|
+
};
|
|
57
|
+
const watch: {
|
|
58
|
+
'factor.version': {
|
|
59
|
+
handler(): Promise<void>;
|
|
60
|
+
immediate: boolean;
|
|
61
|
+
};
|
|
62
|
+
'factor.particle': {
|
|
63
|
+
handler(newVal: any, oldVal: any): Promise<void>;
|
|
64
|
+
};
|
|
65
|
+
'menuToggle.v': {
|
|
66
|
+
handler(): void;
|
|
67
|
+
immediate: boolean;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
function beforeUnmount(): void;
|
|
71
|
+
namespace methods {
|
|
72
|
+
function handleRender(): Promise<void>;
|
|
73
|
+
function handleSetup(): void;
|
|
74
|
+
function handleParticleSetup(): void;
|
|
75
|
+
function handleDraw(): Promise<void>;
|
|
76
|
+
function handleResize(): void;
|
|
77
|
+
function handlePause(): void;
|
|
78
|
+
function handlePlay(): void;
|
|
79
|
+
function handleClearParticle(): void;
|
|
80
|
+
function handleClear(): void;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
import { Viewport } from '../../helper/viewport.ts';
|
|
84
|
+
import { WebGL } from '../../helper/viewport.ts';
|
|
@@ -0,0 +1,50 @@
|
|
|
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 mapFeather {
|
|
17
|
+
const type_3: StringConstructor;
|
|
18
|
+
export { type_3 as type };
|
|
19
|
+
}
|
|
20
|
+
namespace hasRampLayer {
|
|
21
|
+
const type_4: BooleanConstructor;
|
|
22
|
+
export { type_4 as type };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function data(): {
|
|
26
|
+
source: string;
|
|
27
|
+
directionLayer: string;
|
|
28
|
+
heightLayer: string;
|
|
29
|
+
heightLabelLayer: string;
|
|
30
|
+
empty: turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
|
|
31
|
+
};
|
|
32
|
+
namespace computed {
|
|
33
|
+
function opacity(): any;
|
|
34
|
+
function color(): any;
|
|
35
|
+
}
|
|
36
|
+
const watch: {
|
|
37
|
+
'swell.version': {
|
|
38
|
+
handler(): void;
|
|
39
|
+
immediate: boolean;
|
|
40
|
+
};
|
|
41
|
+
color: {
|
|
42
|
+
handler(): void;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
namespace methods {
|
|
46
|
+
function handleRender(): void;
|
|
47
|
+
function handleClear(): void;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
import * as turf from '@turf/turf';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export default _sfc_main;
|
|
2
|
+
declare namespace _sfc_main {
|
|
3
|
+
const name: string;
|
|
4
|
+
namespace props {
|
|
5
|
+
namespace simple {
|
|
6
|
+
export const type: BooleanConstructor;
|
|
7
|
+
const _default: boolean;
|
|
8
|
+
export { _default as default };
|
|
9
|
+
}
|
|
10
|
+
namespace factor {
|
|
11
|
+
const type_1: ObjectConstructor;
|
|
12
|
+
export { type_1 as type };
|
|
13
|
+
}
|
|
14
|
+
namespace viewport {
|
|
15
|
+
export { Viewport as type };
|
|
16
|
+
}
|
|
17
|
+
namespace menuToggle {
|
|
18
|
+
const type_2: ObjectConstructor;
|
|
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
|
+
rendererKey: string;
|
|
30
|
+
backgroundFragmentSchema: string;
|
|
31
|
+
etime: undefined;
|
|
32
|
+
dataSource: undefined;
|
|
33
|
+
imageSource: undefined;
|
|
34
|
+
imagePromise: undefined;
|
|
35
|
+
drawVersion: number;
|
|
36
|
+
wrapper: undefined;
|
|
37
|
+
animation: undefined;
|
|
38
|
+
lastParticleFrameTime: undefined;
|
|
39
|
+
particleContext: undefined;
|
|
40
|
+
particleTexture: undefined;
|
|
41
|
+
particleCount: number;
|
|
42
|
+
particleOptions: {
|
|
43
|
+
fadeOpacity: number;
|
|
44
|
+
lineLength: number;
|
|
45
|
+
lineOpacity: number;
|
|
46
|
+
speedFactor: number;
|
|
47
|
+
dropRate: number;
|
|
48
|
+
dropRateBump: number;
|
|
49
|
+
uvRange: number[];
|
|
50
|
+
sRange: number[];
|
|
51
|
+
};
|
|
52
|
+
paused: boolean;
|
|
53
|
+
initial: boolean;
|
|
54
|
+
right: number;
|
|
55
|
+
};
|
|
56
|
+
const watch: {
|
|
57
|
+
'factor.version': {
|
|
58
|
+
handler(): Promise<void>;
|
|
59
|
+
immediate: boolean;
|
|
60
|
+
};
|
|
61
|
+
'factor.particle': {
|
|
62
|
+
handler(newVal: any, oldVal: any): Promise<void>;
|
|
63
|
+
};
|
|
64
|
+
'menuToggle.v': {
|
|
65
|
+
handler(): void;
|
|
66
|
+
immediate: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
function beforeUnmount(): void;
|
|
70
|
+
namespace methods {
|
|
71
|
+
function handleRender(): Promise<void>;
|
|
72
|
+
function handleSetup(): void;
|
|
73
|
+
function handleParticleSetup(): void;
|
|
74
|
+
function handleDraw(): Promise<void>;
|
|
75
|
+
function handleResize(): void;
|
|
76
|
+
function handlePause(): void;
|
|
77
|
+
function handlePlay(): void;
|
|
78
|
+
function handleClearParticle(): void;
|
|
79
|
+
function handleClear(): void;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
import { Viewport } from '../../helper/viewport.ts';
|
|
83
|
+
import { WebGL } from '../../helper/viewport.ts';
|
|
@@ -21,13 +21,9 @@ declare namespace _sfc_main {
|
|
|
21
21
|
const type_4: StringConstructor;
|
|
22
22
|
export { type_4 as type };
|
|
23
23
|
}
|
|
24
|
-
namespace activeWeatherLayers {
|
|
25
|
-
const type_5: ArrayConstructor;
|
|
26
|
-
export { type_5 as type };
|
|
27
|
-
}
|
|
28
24
|
namespace hasRampLayer {
|
|
29
|
-
const
|
|
30
|
-
export {
|
|
25
|
+
const type_5: BooleanConstructor;
|
|
26
|
+
export { type_5 as type };
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
const emits: never[];
|
|
@@ -63,7 +59,7 @@ declare namespace _sfc_main {
|
|
|
63
59
|
};
|
|
64
60
|
};
|
|
65
61
|
namespace computed {
|
|
66
|
-
function opacity():
|
|
62
|
+
function opacity(): any;
|
|
67
63
|
function color(): any;
|
|
68
64
|
}
|
|
69
65
|
const watch: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mapboxgl from 'mapbox-gl';
|
|
2
|
+
export type GLContext = WebGLRenderingContext | WebGL2RenderingContext;
|
|
2
3
|
export interface ParticleOptions {
|
|
3
4
|
fadeOpacity: number;
|
|
4
5
|
speedFactor: number;
|
|
@@ -7,6 +8,8 @@ export interface ParticleOptions {
|
|
|
7
8
|
uvRange: number[];
|
|
8
9
|
sRange: number[];
|
|
9
10
|
scale: number;
|
|
11
|
+
lineLength?: number;
|
|
12
|
+
lineOpacity?: number;
|
|
10
13
|
}
|
|
11
14
|
export declare class Viewport {
|
|
12
15
|
map: mapboxgl.Map;
|
|
@@ -56,6 +59,9 @@ export declare class Viewport {
|
|
|
56
59
|
toggleParticle(visible: boolean): void;
|
|
57
60
|
}
|
|
58
61
|
export declare class WebGL {
|
|
62
|
+
isWebGL2(gl: GLContext): gl is WebGL2RenderingContext;
|
|
63
|
+
createContext(canvas: HTMLCanvasElement, attributes?: WebGLContextAttributes): GLContext | null;
|
|
64
|
+
createParticleContext(canvas: HTMLCanvasElement): GLContext | null;
|
|
59
65
|
/**
|
|
60
66
|
* 创建着色器
|
|
61
67
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -63,7 +69,7 @@ export declare class WebGL {
|
|
|
63
69
|
* @param type [VERTEX_SHADER, FRAGMENT_SHADER]
|
|
64
70
|
* @param schema 着色器渲染代码[GLSL]
|
|
65
71
|
*/
|
|
66
|
-
createShader(gl:
|
|
72
|
+
createShader(gl: GLContext, type: GLenum, schema: string): WebGLShader | null;
|
|
67
73
|
/**
|
|
68
74
|
* 创建纹理
|
|
69
75
|
* @see https://blog.csdn.net/qq_37987033/article/details/128745577
|
|
@@ -75,7 +81,7 @@ export declare class WebGL {
|
|
|
75
81
|
* @param width??
|
|
76
82
|
* @param height??
|
|
77
83
|
*/
|
|
78
|
-
createTexture(gl:
|
|
84
|
+
createTexture(gl: GLContext, minFilter: GLint, magFilter: GLint, wrapFilter: GLint, data: Uint8Array | HTMLCanvasElement | HTMLImageElement | null | undefined, width?: number | undefined, height?: number | undefined): WebGLTexture | null;
|
|
79
85
|
/**
|
|
80
86
|
* 创建数据资源
|
|
81
87
|
* @param type [array, element]
|
|
@@ -83,14 +89,14 @@ export declare class WebGL {
|
|
|
83
89
|
* element: ELEMENT_ARRAY_BUFFER
|
|
84
90
|
* @param resource 顶点数据
|
|
85
91
|
*/
|
|
86
|
-
createDataBuffer(gl:
|
|
92
|
+
createDataBuffer(gl: GLContext, type: string, resource: BufferSource | undefined): WebGLBuffer | null;
|
|
87
93
|
/**
|
|
88
94
|
* 创建程序
|
|
89
95
|
* @param gl
|
|
90
96
|
* @param vertexSchema
|
|
91
97
|
* @param fragmentSchema
|
|
92
98
|
*/
|
|
93
|
-
createProgram(gl:
|
|
99
|
+
createProgram(gl: GLContext, vertexSchema: string, fragmentSchema: string): WebGLProgram | null;
|
|
94
100
|
/**
|
|
95
101
|
* 创建程序并提取attrib & uniform参数
|
|
96
102
|
* @param gl
|
|
@@ -102,25 +108,28 @@ export declare class WebGL {
|
|
|
102
108
|
* 初始化渐变色纹理
|
|
103
109
|
* @param colors
|
|
104
110
|
*/
|
|
105
|
-
setup(context:
|
|
111
|
+
setup(context: GLContext | null, colors: Array<[number, string]>, int8?: boolean, width?: number, height?: number): {
|
|
106
112
|
canvas: HTMLCanvasElement;
|
|
107
113
|
texture: WebGLTexture | null;
|
|
108
114
|
} | undefined;
|
|
109
|
-
setupParticle(context:
|
|
115
|
+
setupParticle(context: GLContext, num?: number, renderMode?: 'points' | 'lines', withLifecycle?: boolean): {
|
|
110
116
|
resolution: number;
|
|
111
117
|
total: number;
|
|
112
118
|
texture0: WebGLTexture | null;
|
|
113
119
|
texture1: WebGLTexture | null;
|
|
114
120
|
indexBuffer: WebGLBuffer | null;
|
|
121
|
+
renderMode: "points" | "lines";
|
|
122
|
+
lifecycleTexture0: WebGLTexture | null;
|
|
123
|
+
lifecycleTexture1: WebGLTexture | null;
|
|
115
124
|
};
|
|
116
|
-
bind(context:
|
|
117
|
-
program: WebGLProgram;
|
|
118
|
-
aPositionBuffer: WebGLBuffer | null;
|
|
119
|
-
} | {
|
|
125
|
+
bind(context: GLContext | null, vertexSchema: string, fragmentSchema: string): {
|
|
120
126
|
program?: undefined;
|
|
121
127
|
aPositionBuffer?: undefined;
|
|
128
|
+
} | {
|
|
129
|
+
program: WebGLProgram;
|
|
130
|
+
aPositionBuffer: WebGLBuffer | null;
|
|
122
131
|
};
|
|
123
|
-
bindParticle(gl:
|
|
132
|
+
bindParticle(gl: GLContext, drawVert: string, drawFrag: string, quadVert: string, screenFrag: string, updateFrag: string): {
|
|
124
133
|
particle: {
|
|
125
134
|
program: WebGLProgram;
|
|
126
135
|
} | undefined;
|
|
@@ -132,31 +141,45 @@ export declare class WebGL {
|
|
|
132
141
|
} | undefined;
|
|
133
142
|
quadBuffer: WebGLBuffer | null;
|
|
134
143
|
frameBuffer: WebGLFramebuffer | null;
|
|
144
|
+
vertexArray: WebGLVertexArrayObject | null;
|
|
135
145
|
};
|
|
136
|
-
draw(viewport: Viewport, context:
|
|
137
|
-
drawParticle(viewport: Viewport, gl:
|
|
146
|
+
draw(viewport: Viewport, context: GLContext | null, program: WebGLProgram | null, texture: WebGLTexture | null, colorTexture: WebGLTexture | null, aPositionBuffer: WebGLBuffer | null, options?: ParticleOptions): void;
|
|
147
|
+
drawParticle(viewport: Viewport, gl: GLContext, factorTexture: WebGLTexture, wrapper: any, options: ParticleOptions, deltaSeconds?: number): void;
|
|
138
148
|
private renderScreen;
|
|
139
149
|
private renderScreenTexture;
|
|
140
|
-
renderParticles(viewport: Viewport, gl:
|
|
141
|
-
updateParticles(viewport: Viewport, gl:
|
|
142
|
-
resize(viewport: Viewport, gl:
|
|
143
|
-
|
|
144
|
-
backgroundTexture: WebGLTexture | null;
|
|
145
|
-
};
|
|
150
|
+
renderParticles(viewport: Viewport, gl: GLContext, wrapper: any, options: ParticleOptions): void;
|
|
151
|
+
updateParticles(viewport: Viewport, gl: GLContext, wrapper: any, options: ParticleOptions, deltaSeconds?: number): void;
|
|
152
|
+
resize(viewport: Viewport, gl: GLContext, previous?: any): any;
|
|
153
|
+
destroyParticle(gl: GLContext | undefined, wrapper: any): void;
|
|
146
154
|
loadImg(data: any): Promise<HTMLImageElement>;
|
|
147
155
|
}
|
|
148
156
|
/**
|
|
149
157
|
* WebGL (GLSL)渲染语法
|
|
150
158
|
*/
|
|
151
159
|
export declare class WebGLSchema {
|
|
160
|
+
static toWebGL2(source: string, stage: 'vertex' | 'fragment'): string;
|
|
152
161
|
static vertexSchema: string;
|
|
153
162
|
static uvFragmentSchema: string;
|
|
163
|
+
static sigWaveFragmentSchema: string;
|
|
154
164
|
static fragmentSchema: string;
|
|
155
165
|
}
|
|
156
166
|
export declare class ParticleSchema {
|
|
167
|
+
static getSources(webgl2: boolean): [string, string, string, string, string];
|
|
168
|
+
private static fragmentWebGL2;
|
|
169
|
+
static vertexSchemaWebGL2: string;
|
|
170
|
+
static quadVertSchemaWebGL2: string;
|
|
157
171
|
static vertexSchema: string;
|
|
158
172
|
static fragmentSchema: string;
|
|
159
173
|
static quadVertSchema: string;
|
|
160
174
|
static screenFragmentSchema: string;
|
|
161
175
|
static updateFragmentSchema: string;
|
|
162
176
|
}
|
|
177
|
+
export declare class SigWaveParticleSchema extends ParticleSchema {
|
|
178
|
+
private static lifecycleSchema;
|
|
179
|
+
private static waveSamplingSchema;
|
|
180
|
+
private static linePositionSchema;
|
|
181
|
+
static vertexSchema: string;
|
|
182
|
+
static vertexSchemaWebGL2: string;
|
|
183
|
+
static fragmentSchema: string;
|
|
184
|
+
static updateFragmentSchema: string;
|
|
185
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as l } from "./chunk-ANSXOGKI-
|
|
2
|
-
import "./chunk-3VYIPD3A-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { d as l } from "./chunk-ANSXOGKI-27dfa8c5.js";
|
|
2
|
+
import "./chunk-3VYIPD3A-4b8249ae.js";
|
|
3
|
+
import "./index-c7f6812c.js";
|
|
4
4
|
import "axios";
|
|
5
5
|
import "vuetify";
|
|
6
6
|
import "vue";
|