@fxi/zartigl 0.10.2 → 0.10.4
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/catalog.d.ts +21 -0
- package/dist/catalog.js +24 -21
- package/dist/engine.d.ts +2 -0
- package/dist/{index-RrmAk1JY.js → index-CNtMu8AU.js} +161 -140
- package/dist/zartigl.d.ts +27 -0
- package/dist/zartigl.js +1275 -1170
- package/package.json +1 -1
package/dist/zartigl.d.ts
CHANGED
|
@@ -582,6 +582,11 @@ declare type LocalizedText = Record<string, string>;
|
|
|
582
582
|
export declare interface MapxWidgetSnippetOptions {
|
|
583
583
|
layerId: string;
|
|
584
584
|
layerKind: CatalogEntry["kind"];
|
|
585
|
+
/** Legend header (MapX widget only); MapX derives it from the layer when unset. */
|
|
586
|
+
title?: LocalizedText | string;
|
|
587
|
+
subtitle?: LocalizedText | string;
|
|
588
|
+
/** Shown as the legend title's tooltip. */
|
|
589
|
+
description?: LocalizedText | string;
|
|
585
590
|
/**
|
|
586
591
|
* The layer's own style, the catalog `defaults`: only override keys that
|
|
587
592
|
* differ from it are written. Unknown, the whole override is written.
|
|
@@ -622,6 +627,7 @@ export declare class ParticleSimulation {
|
|
|
622
627
|
private drawProgram;
|
|
623
628
|
private fadeProgram;
|
|
624
629
|
private compositeProgram;
|
|
630
|
+
private glowProgram;
|
|
625
631
|
private gridProgram;
|
|
626
632
|
private gridGlobeProgram;
|
|
627
633
|
private particleStateTextures;
|
|
@@ -642,6 +648,8 @@ export declare class ParticleSimulation {
|
|
|
642
648
|
private screenFramebuffers;
|
|
643
649
|
private screenWidth;
|
|
644
650
|
private screenHeight;
|
|
651
|
+
private glowTexture;
|
|
652
|
+
private glowFramebuffer;
|
|
645
653
|
private quadBuffer;
|
|
646
654
|
private rasterGridBuffer;
|
|
647
655
|
private rasterGridIndexBuffer;
|
|
@@ -652,6 +660,7 @@ export declare class ParticleSimulation {
|
|
|
652
660
|
private drawLocs;
|
|
653
661
|
private fadeLocs;
|
|
654
662
|
private compositeLocs;
|
|
663
|
+
private glowLocs;
|
|
655
664
|
private gridLocs;
|
|
656
665
|
private gridGlobeLocs;
|
|
657
666
|
constructor(params?: Partial<SimulationParams>);
|
|
@@ -682,6 +691,12 @@ export declare class ParticleSimulation {
|
|
|
682
691
|
east: number;
|
|
683
692
|
north: number;
|
|
684
693
|
}, isGlobe?: boolean, globeCenter?: [number, number, number], clippingPlane?: [number, number, number, number], velocityPair?: VelocityTexturePair): void;
|
|
694
|
+
/**
|
|
695
|
+
* Reduce the latest trails into the glow texture (glow.glsl), then rebind
|
|
696
|
+
* `framebuffer` with the full viewport.
|
|
697
|
+
*/
|
|
698
|
+
private renderGlow;
|
|
699
|
+
private deleteGlowTarget;
|
|
685
700
|
renderGrid(velocityTexUnit: number, velocityMin: [number, number], velocityMax: [number, number], matrix: Iterable<number>, worldSize: number, worldCopyOffsets: number[], geoBounds: {
|
|
686
701
|
west: number;
|
|
687
702
|
south: number;
|
|
@@ -716,6 +731,8 @@ export declare class ParticleSimulation {
|
|
|
716
731
|
setColorGrade(grade: Partial<ColorGrade>): void;
|
|
717
732
|
/** Missing values take the defaults; see resolveBackdrop. */
|
|
718
733
|
setBackdrop(backdrop: Partial<BackdropStyle>): void;
|
|
734
|
+
/** Halo strength, clamped to [0, 1]; 0 frees the glow texture. */
|
|
735
|
+
setGlow(v: number): void;
|
|
719
736
|
setScalarMode(v: boolean): void;
|
|
720
737
|
setRgba8MaxParticleZoom(v: number): void;
|
|
721
738
|
/**
|
|
@@ -753,6 +770,7 @@ export declare interface ParticleSimulationDebugInfo {
|
|
|
753
770
|
vibrance: number;
|
|
754
771
|
colorGrade: ColorGrade;
|
|
755
772
|
backdrop: BackdropStyle;
|
|
773
|
+
glow: number;
|
|
756
774
|
scalarMode: boolean;
|
|
757
775
|
devicePixelRatio?: number;
|
|
758
776
|
webgl: WebGLRendererInfo | null;
|
|
@@ -773,6 +791,8 @@ declare interface ParticleStyle {
|
|
|
773
791
|
grade: ParticleGrade;
|
|
774
792
|
/** Solid color under the trails; replaced as a whole, not merged. */
|
|
775
793
|
backdrop: BackdropStyle;
|
|
794
|
+
/** Halo of the trails' own color, [0, 1]; 0 is off. */
|
|
795
|
+
glow: number;
|
|
776
796
|
}
|
|
777
797
|
|
|
778
798
|
/** Partial particle style; a partial backdrop takes the defaults' keys. */
|
|
@@ -975,6 +995,8 @@ declare interface SimulationParams {
|
|
|
975
995
|
colorGrade: ColorGrade;
|
|
976
996
|
/** Solid color under the trails, on valid cells; off by default. */
|
|
977
997
|
backdrop: BackdropStyle;
|
|
998
|
+
/** Halo of the trails' color, [0, 1]; 0 (default) skips its pass. */
|
|
999
|
+
glow: number;
|
|
978
1000
|
scalarMode: boolean;
|
|
979
1001
|
particleState: ParticleStateMode;
|
|
980
1002
|
rgba8MaxParticleZoom: number;
|
|
@@ -1185,6 +1207,7 @@ export declare class VectorLayer implements CustomLayerInterface {
|
|
|
1185
1207
|
setVibrance(v: number): void;
|
|
1186
1208
|
setColorGrade(grade: Partial<ColorGrade>): void;
|
|
1187
1209
|
setBackdrop(backdrop: Partial<BackdropStyle>): void;
|
|
1210
|
+
setGlow(v: number): void;
|
|
1188
1211
|
getDebugInfo(): VectorLayerDebugInfo;
|
|
1189
1212
|
on<K extends keyof LayerEventMap_2>(event: K, handler: LayerEventMap_2[K]): this;
|
|
1190
1213
|
off<K extends keyof LayerEventMap_2>(event: K, handler: LayerEventMap_2[K]): this;
|
|
@@ -1244,6 +1267,8 @@ export declare interface VectorLayerOptions {
|
|
|
1244
1267
|
colorGrade?: Partial<ColorGrade>;
|
|
1245
1268
|
/** Solid color under the trails, on valid cells. Omitted: off. */
|
|
1246
1269
|
backdrop?: Partial<BackdropStyle>;
|
|
1270
|
+
/** Halo of the trails' color, [0, 1]. Default 0 (off). */
|
|
1271
|
+
glow?: number;
|
|
1247
1272
|
unit?: string;
|
|
1248
1273
|
}
|
|
1249
1274
|
|
|
@@ -1846,6 +1871,8 @@ export declare interface ZartiglSettings {
|
|
|
1846
1871
|
colorGrade: Partial<ColorGrade>;
|
|
1847
1872
|
/** Solid color under particle trails, on valid cells; off by default. */
|
|
1848
1873
|
backdrop: Partial<BackdropStyle>;
|
|
1874
|
+
/** Halo of the particle trails' color, [0, 1]; 0 by default. */
|
|
1875
|
+
glow: number;
|
|
1849
1876
|
/** Fixed physical-value domain for scalar colors. Null uses frame extrema. */
|
|
1850
1877
|
colorDomain: [number, number] | null;
|
|
1851
1878
|
/** Transparent ends of the color range, as in RasterStyle. */
|