@fxi/zartigl 0.1.0 → 0.1.2
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/index.d.ts +1 -1
- package/dist/zartigl.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare class ParticleLayer implements CustomLayerInterface {
|
|
|
27
27
|
onAdd(map: Map_2, gl: WebGLRenderingContext): Promise<void>;
|
|
28
28
|
private initAsync;
|
|
29
29
|
private loadViewportVelocity;
|
|
30
|
-
render(gl: WebGLRenderingContext, options: CustomRenderMethodInput): void;
|
|
30
|
+
render(gl: WebGLRenderingContext, options: CustomRenderMethodInput | number[]): void;
|
|
31
31
|
onRemove(): void;
|
|
32
32
|
setTime(time: string | number): void;
|
|
33
33
|
setDepth(depth: number): void;
|
package/dist/zartigl.js
CHANGED
|
@@ -2723,12 +2723,12 @@ class kC {
|
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
2725
|
render(I, A) {
|
|
2726
|
-
const B = A.modelViewProjectionMatrix;
|
|
2726
|
+
const B = Array.isArray(A) ? A : A.modelViewProjectionMatrix;
|
|
2727
2727
|
if (!this.initialized || !this.velocityField.hasData() || !this.map) return;
|
|
2728
2728
|
const y = Og(I);
|
|
2729
2729
|
try {
|
|
2730
2730
|
const Q = I.canvas;
|
|
2731
|
-
this.simulation.resize(Q.width, Q.height), this.velocityField.bind(this.velocityTexUnit);
|
|
2731
|
+
this.simulation.resize(Q.width, Q.height), I.bindFramebuffer(I.FRAMEBUFFER, y.framebuffer), this.velocityField.bind(this.velocityTexUnit);
|
|
2732
2732
|
const G = this.map.getBounds(), s = {
|
|
2733
2733
|
minX: Ig(Math.max(G.getWest(), -180)),
|
|
2734
2734
|
minY: Ag(Math.min(G.getNorth(), 85)),
|