@gisatcz/deckgl-geolib 2.5.0-dev.2 → 2.5.0-dev.3

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.
@@ -29,7 +29,7 @@ export declare class TerrainGenerator {
29
29
  vertices: any;
30
30
  triangles: any;
31
31
  };
32
- static getMeshAttributes(vertices: Uint16Array | Uint32Array | Float32Array | Float64Array, terrain: Float32Array, width: number, height: number, bounds: Bounds | number[]): {
32
+ static getMeshAttributes(vertices: Uint16Array | Uint32Array | Float32Array | Float64Array, terrain: Float32Array, width: number, height: number, bounds: Bounds | number[], verticalExaggeration?: number): {
33
33
  POSITION: {
34
34
  value: Float32Array<ArrayBuffer>;
35
35
  size: number;
@@ -20,7 +20,26 @@ export type GeoImageOptions = {
20
20
  /** 0-based index of the channel to visualize (e.g. 0 for the first channel). Alternative to useChannel. */
21
21
  useChannelIndex?: number | null;
22
22
  noDataValue?: number;
23
+ /**
24
+ * Scalar applied to raw raster values before Martini/Delatin tessellation.
25
+ * Use this to convert or normalize source elevation values into the units that
26
+ * should be seen by the tessellator (e.g. convert raw values to metres).
27
+ * Because the scaled values are used during tessellation, changing `multiplier`
28
+ * also changes the effective mesh density unless `meshMaxError` is adjusted.
29
+ * `meshMaxError` must be specified in the same units as the post-`multiplier`
30
+ * elevation values.
31
+ * Default: 1.0
32
+ */
23
33
  multiplier?: number;
34
+ /**
35
+ * Vertical scale factor applied **only** to mesh vertex z positions, after
36
+ * tessellation. Use this for **visual exaggeration** (make terrain look taller).
37
+ * Unlike `multiplier`, this does not affect `meshMaxError` — the error threshold
38
+ * is always evaluated against real-world (post-`multiplier`) elevation values.
39
+ * The skirt height is scaled by this factor automatically.
40
+ * Default: 1.0
41
+ */
42
+ verticalExaggeration?: number;
24
43
  numOfChannels?: number;
25
44
  planarConfig?: number;
26
45
  tesselator?: 'martini' | 'delatin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisatcz/deckgl-geolib",
3
- "version": "2.5.0-dev.2",
3
+ "version": "2.5.0-dev.3",
4
4
  "description": "Deck.gl extension for rendering Cloud-Optimized GeoTIFF (COG) data",
5
5
  "keywords": [
6
6
  "deck.gl",