ol 10.1.1-dev.1724341529501 → 10.1.1-dev.1724415449548
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/ol.d.ts +4 -0
- package/dist/ol.d.ts.map +1 -1
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/layer/Flow.d.ts +199 -0
- package/layer/Flow.d.ts.map +1 -0
- package/layer/Flow.js +504 -0
- package/layer/WebGLTile.d.ts +5 -1
- package/layer/WebGLTile.d.ts.map +1 -1
- package/package.json +1 -1
- package/renderer/webgl/FlowLayer.d.ts +247 -0
- package/renderer/webgl/FlowLayer.d.ts.map +1 -0
- package/renderer/webgl/FlowLayer.js +496 -0
- package/renderer/webgl/TileLayer.d.ts +7 -5
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +3 -3
- package/renderer/webgl/TileLayerBase.d.ts +5 -0
- package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
- package/renderer/webgl/TileLayerBase.js +9 -0
- package/util.js +1 -1
- package/webgl/Buffer.d.ts +5 -1
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +12 -1
- package/webgl/Helper.d.ts +22 -5
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +80 -13
- package/webgl/PostProcessingPass.d.ts +3 -0
- package/webgl/PostProcessingPass.d.ts.map +1 -1
- package/webgl/PostProcessingPass.js +7 -0
package/layer/WebGLTile.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ export type ParsedStyle = {
|
|
|
164
164
|
* @fires import("../render/Event.js").RenderEvent
|
|
165
165
|
* @api
|
|
166
166
|
*/
|
|
167
|
-
declare class WebGLTileLayer extends BaseTileLayer<import("../source/DataTile.js").default<import("../DataTile.js").default | import("../ImageTile.js").default>, WebGLTileLayerRenderer
|
|
167
|
+
declare class WebGLTileLayer extends BaseTileLayer<import("../source/DataTile.js").default<import("../DataTile.js").default | import("../ImageTile.js").default>, WebGLTileLayerRenderer<any>> {
|
|
168
168
|
/**
|
|
169
169
|
* @param {Options} options Tile layer options.
|
|
170
170
|
*/
|
|
@@ -215,6 +215,10 @@ declare class WebGLTileLayer extends BaseTileLayer<import("../source/DataTile.js
|
|
|
215
215
|
* @return {number} The number of source bands.
|
|
216
216
|
*/
|
|
217
217
|
private getSourceBandCount_;
|
|
218
|
+
/**
|
|
219
|
+
* @override
|
|
220
|
+
*/
|
|
221
|
+
override createRenderer(): WebGLTileLayerRenderer<this>;
|
|
218
222
|
/**
|
|
219
223
|
* @param {import("../Map").FrameState} frameState Frame state.
|
|
220
224
|
* @param {Array<SourceType>} sources Sources.
|
package/layer/WebGLTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":";yBAmBa,OAAO,uBAAuB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,OAAO,GAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIA+C/E,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,KAAE,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBnF,MAAM;;;;oBACN,MAAM;;;;cACN;YAAO,MAAM,GAAC,OAAO,oBAAoB,EAAE,YAAY;KAAC;;;;qBACxD,KAAK,CAAC,OAAO,4BAA4B,EAAE,OAAO,CAAC;;AA0LjE;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAyCjB;IA/BC;;;OAGG;IACH,iBAA+B;IAE/B;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA8B;IAE9B;;;OAGG;IACH,eAAmB;IAE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;IACH,0BAJW,OAAO,QAAQ,EAAE,UAAU,WAC3B,KAAK,CAAC,UAAU,CAAC,GAChB,WAAW,CAYtB;IAED;;;;;;OAMG;IACH,4BANY,OAAO,WAAW,EAAE,UAAU,OAAA,UAC/B,WAAW,GAEV,WAAW,CAuCtB;IAED;;;;;;;OAOG;IACH,gBAFW,KAAK,QAgBf;IAED;;;;OAIG;IACH,gCAHW;YAAO,MAAM,GAAE,MAAM;KAAC,QAMhC;CACF;mCAzeM,gCAAgC;0BALb,eAAe"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shader uniforms.
|
|
3
|
+
*/
|
|
4
|
+
export type U = string;
|
|
5
|
+
export namespace U {
|
|
6
|
+
let TEXTURE: string;
|
|
7
|
+
let VELOCITY_TEXTURE: string;
|
|
8
|
+
let POSITION_TEXTURE: string;
|
|
9
|
+
let PARTICLE_COUNT_SQRT: string;
|
|
10
|
+
let MAX_SPEED: string;
|
|
11
|
+
let GAIN: string;
|
|
12
|
+
let OFFSET: string;
|
|
13
|
+
let IS_FLOAT: string;
|
|
14
|
+
let RANDOM_SEED: string;
|
|
15
|
+
let SPEED_FACTOR: string;
|
|
16
|
+
let DROP_RATE: string;
|
|
17
|
+
let DROP_RATE_BUMP: string;
|
|
18
|
+
let OPACITY: string;
|
|
19
|
+
let ROTATION: string;
|
|
20
|
+
let VIEWPORT_SIZE_PX: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Shader attributes.
|
|
24
|
+
*/
|
|
25
|
+
export type A = string;
|
|
26
|
+
export namespace A {
|
|
27
|
+
let POSITION: string;
|
|
28
|
+
let INDEX: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Shader varyings.
|
|
32
|
+
*/
|
|
33
|
+
export type V = string;
|
|
34
|
+
export namespace V {
|
|
35
|
+
let POSITION_1: string;
|
|
36
|
+
export { POSITION_1 as POSITION };
|
|
37
|
+
}
|
|
38
|
+
export default FlowLayerRenderer;
|
|
39
|
+
export type LayerType = import("../../layer/Flow.js").default;
|
|
40
|
+
export type Options = {
|
|
41
|
+
/**
|
|
42
|
+
* The maximum particle speed in the input data.
|
|
43
|
+
*/
|
|
44
|
+
maxSpeed: number;
|
|
45
|
+
/**
|
|
46
|
+
* A larger factor increases the rate at which particles cross the screen.
|
|
47
|
+
*/
|
|
48
|
+
speedFactor?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The number of particles to render.
|
|
51
|
+
*/
|
|
52
|
+
particles?: number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The texture cache size.
|
|
55
|
+
*/
|
|
56
|
+
cacheSize?: number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The flow tile vertex shader.
|
|
59
|
+
*/
|
|
60
|
+
tileVertexShader: string;
|
|
61
|
+
/**
|
|
62
|
+
* The flow tile fragment shader.
|
|
63
|
+
*/
|
|
64
|
+
tileFragmentShader: string;
|
|
65
|
+
/**
|
|
66
|
+
* Generic texture fragment shader.
|
|
67
|
+
*/
|
|
68
|
+
textureVertexShader: string;
|
|
69
|
+
/**
|
|
70
|
+
* Generic texture fragment shader.
|
|
71
|
+
*/
|
|
72
|
+
textureFragmentShader: string;
|
|
73
|
+
/**
|
|
74
|
+
* The particle position vertex shader.
|
|
75
|
+
*/
|
|
76
|
+
particlePositionVertexShader: string;
|
|
77
|
+
/**
|
|
78
|
+
* The particle position fragment shader.
|
|
79
|
+
*/
|
|
80
|
+
particlePositionFragmentShader: string;
|
|
81
|
+
/**
|
|
82
|
+
* The particle color vertex shader.
|
|
83
|
+
*/
|
|
84
|
+
particleColorVertexShader: string;
|
|
85
|
+
/**
|
|
86
|
+
* The particle color fragment shader.
|
|
87
|
+
*/
|
|
88
|
+
particleColorFragmentShader: string;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* @classdesc
|
|
92
|
+
* Experimental WebGL renderer for vector fields.
|
|
93
|
+
* @extends {WebGLTileLayerRenderer<LayerType>}
|
|
94
|
+
*/
|
|
95
|
+
declare class FlowLayerRenderer extends WebGLTileLayerRenderer<import("../../layer/Flow.js").default> {
|
|
96
|
+
/**
|
|
97
|
+
* @param {LayerType} layer The tiled field layer.
|
|
98
|
+
* @param {Options} options The renderer options.
|
|
99
|
+
*/
|
|
100
|
+
constructor(layer: LayerType, options: Options);
|
|
101
|
+
/**
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
private particleColorFragmentShader_;
|
|
106
|
+
/**
|
|
107
|
+
* @type {WebGLTexture|null}
|
|
108
|
+
* @private
|
|
109
|
+
*/
|
|
110
|
+
private velocityTexture_;
|
|
111
|
+
/**
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
private particleCountSqrt_;
|
|
116
|
+
/**
|
|
117
|
+
* @type {WebGLArrayBuffer}
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
private particleIndexBuffer_;
|
|
121
|
+
/**
|
|
122
|
+
* @type {WebGLArrayBuffer}
|
|
123
|
+
* @private
|
|
124
|
+
*/
|
|
125
|
+
private quadBuffer_;
|
|
126
|
+
/**
|
|
127
|
+
* @type {WebGLProgram}
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
private particlePositionProgram_;
|
|
131
|
+
/**
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @private
|
|
134
|
+
*/
|
|
135
|
+
private particlePositionVertexShader_;
|
|
136
|
+
/**
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @private
|
|
139
|
+
*/
|
|
140
|
+
private particlePositionFragmentShader_;
|
|
141
|
+
/**
|
|
142
|
+
* @type {WebGLTexture}
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
145
|
+
private previousPositionTexture_;
|
|
146
|
+
/**
|
|
147
|
+
* @type {WebGLTexture}
|
|
148
|
+
* @private
|
|
149
|
+
*/
|
|
150
|
+
private nextPositionTexture_;
|
|
151
|
+
/**
|
|
152
|
+
* @type {WebGLProgram}
|
|
153
|
+
* @private
|
|
154
|
+
*/
|
|
155
|
+
private particleColorProgram_;
|
|
156
|
+
/**
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @private
|
|
159
|
+
*/
|
|
160
|
+
private particleColorVertexShader_;
|
|
161
|
+
/**
|
|
162
|
+
* @type {WebGLProgram}
|
|
163
|
+
* @private
|
|
164
|
+
*/
|
|
165
|
+
private textureProgram_;
|
|
166
|
+
/**
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @private
|
|
169
|
+
*/
|
|
170
|
+
private textureVertexShader_;
|
|
171
|
+
/**
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
private textureFragmentShader_;
|
|
176
|
+
/**
|
|
177
|
+
* @type {WebGLTexture}
|
|
178
|
+
* @private
|
|
179
|
+
*/
|
|
180
|
+
private previousTrailsTexture_;
|
|
181
|
+
/**
|
|
182
|
+
* @type {WebGLTexture}
|
|
183
|
+
* @private
|
|
184
|
+
*/
|
|
185
|
+
private nextTrailsTexture_;
|
|
186
|
+
/**
|
|
187
|
+
* @type {number}
|
|
188
|
+
* @private
|
|
189
|
+
*/
|
|
190
|
+
private fadeOpacity_;
|
|
191
|
+
/**
|
|
192
|
+
* @type {number}
|
|
193
|
+
* @private
|
|
194
|
+
*/
|
|
195
|
+
private maxSpeed_;
|
|
196
|
+
/**
|
|
197
|
+
* @type {number}
|
|
198
|
+
* @private
|
|
199
|
+
*/
|
|
200
|
+
private speedFactor_;
|
|
201
|
+
/**
|
|
202
|
+
* @type {number}
|
|
203
|
+
* @private
|
|
204
|
+
*/
|
|
205
|
+
private dropRate_;
|
|
206
|
+
/**
|
|
207
|
+
* @type {number}
|
|
208
|
+
* @private
|
|
209
|
+
*/
|
|
210
|
+
private dropRateBump_;
|
|
211
|
+
/**
|
|
212
|
+
* @type {Array<number>}
|
|
213
|
+
* @private
|
|
214
|
+
*/
|
|
215
|
+
private tempVec2_;
|
|
216
|
+
/**
|
|
217
|
+
* @type {number}
|
|
218
|
+
* @private
|
|
219
|
+
*/
|
|
220
|
+
private renderedWidth_;
|
|
221
|
+
/**
|
|
222
|
+
* @type {number}
|
|
223
|
+
* @private
|
|
224
|
+
*/
|
|
225
|
+
private renderedHeight_;
|
|
226
|
+
framebuffer_: WebGLFramebuffer | null | undefined;
|
|
227
|
+
createSizeDependentTextures_(): void;
|
|
228
|
+
/**
|
|
229
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
230
|
+
*/
|
|
231
|
+
drawParticleTrails_(frameState: import("../../Map.js").FrameState): void;
|
|
232
|
+
/**
|
|
233
|
+
* @param {WebGLTexture} texture The texture to draw.
|
|
234
|
+
* @param {number} opacity The opacity.
|
|
235
|
+
*/
|
|
236
|
+
drawTexture_(texture: WebGLTexture, opacity: number): void;
|
|
237
|
+
/**
|
|
238
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
239
|
+
*/
|
|
240
|
+
drawParticleColor_(frameState: import("../../Map.js").FrameState): void;
|
|
241
|
+
/**
|
|
242
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
243
|
+
*/
|
|
244
|
+
updateParticlePositions_(frameState: import("../../Map.js").FrameState): void;
|
|
245
|
+
}
|
|
246
|
+
import WebGLTileLayerRenderer from './TileLayer.js';
|
|
247
|
+
//# sourceMappingURL=FlowLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowLayer.d.ts","sourceRoot":"","sources":["FlowLayer.js"],"names":[],"mappings":";;;gBA8BU,MAAM;;;;;;;;;;;;;;;;;;;;;gBAsBN,MAAM;;;;;;;;gBASN,MAAM;;;;;;wBApDH,OAAO,qBAAqB,EAAE,OAAO;;;;;cAKpC,MAAM;;;;;;;;;;;;;;;;sBAIN,MAAM;;;;wBACN,MAAM;;;;yBACN,MAAM;;;;2BACN,MAAM;;;;kCACN,MAAM;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