@gisatcz/deckgl-geolib 2.4.0-dev.1 → 2.4.0-dev.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/cjs/index.js +160 -215
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +160 -215
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/types/core/CogTiles.d.ts +2 -2
- package/dist/esm/types/core/lib/BitmapGenerator.d.ts +11 -6
- package/dist/esm/types/core/types.d.ts +8 -7
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ declare class CogTiles {
|
|
|
48
48
|
* @returns {number} The index of the image in the COG that best matches the specified zoom level.
|
|
49
49
|
*/
|
|
50
50
|
getImageIndexForZoomLevel(zoom: any): number;
|
|
51
|
-
getTileFromImage(tileX: any, tileY: any, zoom: any, fetchSize?: number): Promise<(
|
|
51
|
+
getTileFromImage(tileX: any, tileY: any, zoom: any, fetchSize?: number): Promise<(Float32Array<ArrayBuffer> | Int8Array<ArrayBuffer> | Uint8Array<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Int32Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float64Array<ArrayBuffer>)[] | import("geotiff").TypedArrayWithDimensions[]>;
|
|
52
52
|
/**
|
|
53
53
|
* Creates a blank tile buffer filled with the "No Data" value.
|
|
54
54
|
* @param size The width/height of the square tile (e.g., 256 or 257)
|
|
@@ -79,6 +79,6 @@ declare class CogTiles {
|
|
|
79
79
|
* @param {number} multiplier - Optional multiplier for interleaved buffers (e.g., numChannels).
|
|
80
80
|
* @returns {TypedArray} A typed array buffer of length (tileSize * tileSize * multiplier).
|
|
81
81
|
*/
|
|
82
|
-
createTileBuffer(dataType: string, tileSize: number, multiplier?: number):
|
|
82
|
+
createTileBuffer(dataType: string, tileSize: number, multiplier?: number): Float32Array<ArrayBuffer> | Int8Array<ArrayBuffer> | Uint8Array<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Int32Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float64Array<ArrayBuffer>;
|
|
83
83
|
}
|
|
84
84
|
export default CogTiles;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import chroma from 'chroma-js';
|
|
2
1
|
import { GeoImageOptions, TypedArray, TileResult } from '../types';
|
|
3
2
|
export declare class BitmapGenerator {
|
|
3
|
+
/**
|
|
4
|
+
* Main entry point: Generates an ImageBitmap from raw raster data.
|
|
5
|
+
*/
|
|
4
6
|
static generate(input: {
|
|
5
7
|
width: number;
|
|
6
8
|
height: number;
|
|
7
9
|
rasters: TypedArray[];
|
|
8
10
|
}, options: GeoImageOptions): Promise<TileResult>;
|
|
9
|
-
static getMinMax(array: TypedArray, options: GeoImageOptions, samplesPerPixel?: number): number[];
|
|
10
11
|
static getColorValue(dataArray: TypedArray | any[], options: GeoImageOptions, arrayLength: number, samplesPerPixel?: number): Uint8ClampedArray<ArrayBuffer>;
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
-
static
|
|
12
|
+
private static calculateSingleColor;
|
|
13
|
+
private static findClassIndex;
|
|
14
|
+
private static getDefaultColor;
|
|
15
|
+
private static isInvalid;
|
|
16
|
+
private static getInvalidColor;
|
|
17
|
+
static getMinMax(array: TypedArray, options: GeoImageOptions, samplesPerPixel?: number): number[];
|
|
18
|
+
static getColorFromChromaType(color: any, alpha?: number): any[];
|
|
19
|
+
static hasPixelsNoData(pixels: number[], noData: number | undefined): boolean;
|
|
15
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import chroma from 'chroma-js';
|
|
2
|
+
export type ChromaColorInput = string | number[] | chroma.Color;
|
|
2
3
|
import type { MeshAttributes } from '@loaders.gl/schema';
|
|
3
4
|
export type Bounds = [minX: number, minY: number, maxX: number, maxY: number];
|
|
4
5
|
export type ClampToTerrainOptions = {
|
|
@@ -28,15 +29,15 @@ export type GeoImageOptions = {
|
|
|
28
29
|
blurredTexture?: boolean;
|
|
29
30
|
clipLow?: number | null;
|
|
30
31
|
clipHigh?: number | null;
|
|
31
|
-
color?:
|
|
32
|
-
colorScale?:
|
|
32
|
+
color?: ChromaColorInput;
|
|
33
|
+
colorScale?: ChromaColorInput[];
|
|
33
34
|
colorScaleValueRange?: number[];
|
|
34
|
-
colorsBasedOnValues?: [number
|
|
35
|
-
colorClasses?: [
|
|
35
|
+
colorsBasedOnValues?: Array<[number, ChromaColorInput]>;
|
|
36
|
+
colorClasses?: Array<[ChromaColorInput, [number, number], [boolean?, boolean?]?]>;
|
|
36
37
|
alpha?: number;
|
|
37
|
-
nullColor?:
|
|
38
|
-
unidentifiedColor?:
|
|
39
|
-
clippedColor?:
|
|
38
|
+
nullColor?: ChromaColorInput;
|
|
39
|
+
unidentifiedColor?: ChromaColorInput;
|
|
40
|
+
clippedColor?: ChromaColorInput;
|
|
40
41
|
clampToTerrain?: ClampToTerrainOptions | boolean;
|
|
41
42
|
useSlope?: boolean;
|
|
42
43
|
useHillshade?: boolean;
|