@fxi/zartigl 0.13.1 → 0.14.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/zartigl.d.ts CHANGED
@@ -502,6 +502,14 @@ export declare function getPalettes(options?: {
502
502
 
503
503
  export declare function getVectorDerivationVariables(derivation: VectorDerivation): [string, string];
504
504
 
505
+ /** MapLibre's globe-to-Mercator interpolation for this frame (see grid_globe.vert.glsl). */
506
+ declare interface GlobeTransition {
507
+ /** 1 draws the globe, 0 Mercator; between, MapLibre blends the two. */
508
+ projectionTransition?: number;
509
+ /** Projects Mercator coordinates [0, 1] to clip space while the blend runs. */
510
+ fallbackMatrix?: Iterable<number>;
511
+ }
512
+
505
513
  /** Color grade of a style `particles.grade`; an object tunes the vibrant one. */
506
514
  export declare function gradeToColorGrade(grade: ParticleGrade | undefined): ColorGrade;
507
515
 
@@ -713,7 +721,7 @@ export declare class ParticleSimulation {
713
721
  south: number;
714
722
  east: number;
715
723
  north: number;
716
- }, clippingPlane: [number, number, number, number], opacityScale?: number, solid?: Vec4, velocityPair?: VelocityTexturePair): void;
724
+ }, clippingPlane: [number, number, number, number], opacityScale?: number, solid?: Vec4, velocityPair?: VelocityTexturePair, transition?: GlobeTransition): void;
717
725
  private setGridFieldUniforms;
718
726
  private bindRasterGrid;
719
727
  private unbindRasterGrid;
@@ -1151,6 +1159,8 @@ export declare class VectorLayer implements CustomLayerInterface {
1151
1159
  private loading;
1152
1160
  private reloadQueued;
1153
1161
  private reloadQueuedResetParticles;
1162
+ /** Whether the last frame drew the globe; null before the first frame. */
1163
+ private globeRendering;
1154
1164
  private generation;
1155
1165
  private requestId;
1156
1166
  private pendingReadyTime;