@gisatcz/deckgl-geolib 2.4.0-dev.2 → 2.4.0-dev.5
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 +1045 -477
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +2 -2
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +1045 -477
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/types/core/CogTiles.d.ts +4 -4
- package/dist/esm/types/core/GeoImage.d.ts +2 -2
- package/dist/esm/types/core/lib/TerrainGenerator.d.ts +2 -2
- package/dist/esm/types/layers/CogBitmapLayer.d.ts +3 -3
- package/dist/esm/types/layers/CogTerrainLayer.d.ts +2 -2
- package/package.json +16 -16
|
@@ -35,7 +35,7 @@ declare class CogTiles {
|
|
|
35
35
|
* - The first array (`zoomLookup`) maps each image index to its computed zoom level.
|
|
36
36
|
* - The second array (`resolutionLookup`) maps each image index to its estimated resolution (m/pixel).
|
|
37
37
|
*/
|
|
38
|
-
buildCogZoomResolutionLookup(cog: GeoTIFF): Promise<
|
|
38
|
+
buildCogZoomResolutionLookup(cog: GeoTIFF): Promise<number[][]>;
|
|
39
39
|
/**
|
|
40
40
|
* Determines the appropriate image index from the Cloud Optimized GeoTIFF (COG)
|
|
41
41
|
* that best matches a given zoom level.
|
|
@@ -47,8 +47,8 @@ declare class CogTiles {
|
|
|
47
47
|
* @param {number} zoom - The target zoom level for which the image index is sought.
|
|
48
48
|
* @returns {number} The index of the image in the COG that best matches the specified zoom level.
|
|
49
49
|
*/
|
|
50
|
-
getImageIndexForZoomLevel(zoom:
|
|
51
|
-
getTileFromImage(tileX:
|
|
50
|
+
getImageIndexForZoomLevel(zoom: number): number;
|
|
51
|
+
getTileFromImage(tileX: number, tileY: number, zoom: number, 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)
|
|
@@ -70,7 +70,7 @@ declare class CogTiles {
|
|
|
70
70
|
* @param {GeoTIFFImage} image - The GeoTIFF.js image.
|
|
71
71
|
* @returns {number|undefined} The noData value, possibly NaN, or undefined if not set or invalid.
|
|
72
72
|
*/
|
|
73
|
-
getNoDataValue(image: GeoTIFFImage): number;
|
|
73
|
+
getNoDataValue(image: GeoTIFFImage): number | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* Creates a tile buffer of the specified size using a typed array corresponding to the provided data type.
|
|
76
76
|
*
|
|
@@ -10,14 +10,14 @@ export default class GeoImage {
|
|
|
10
10
|
rasters: any[];
|
|
11
11
|
bounds: Bounds;
|
|
12
12
|
cellSizeMeters?: number;
|
|
13
|
-
}, options: GeoImageOptions, meshMaxError:
|
|
13
|
+
}, options: GeoImageOptions, meshMaxError: number): Promise<TileResult | null>;
|
|
14
14
|
getHeightmap(input: string | {
|
|
15
15
|
bounds: Bounds;
|
|
16
16
|
width: number;
|
|
17
17
|
height: number;
|
|
18
18
|
rasters: any[];
|
|
19
19
|
cellSizeMeters?: number;
|
|
20
|
-
}, options: GeoImageOptions, meshMaxError:
|
|
20
|
+
}, options: GeoImageOptions, meshMaxError: number): Promise<TileResult>;
|
|
21
21
|
getBitmap(input: string | {
|
|
22
22
|
width: number;
|
|
23
23
|
height: number;
|
|
@@ -17,8 +17,8 @@ export declare class TerrainGenerator {
|
|
|
17
17
|
*/
|
|
18
18
|
private static computeTerrainData;
|
|
19
19
|
static getMartiniTileMesh(meshMaxError: number, width: number, terrain: Float32Array): {
|
|
20
|
-
vertices:
|
|
21
|
-
triangles:
|
|
20
|
+
vertices: Uint16Array<ArrayBufferLike>;
|
|
21
|
+
triangles: Uint32Array<ArrayBufferLike>;
|
|
22
22
|
};
|
|
23
23
|
static getDelatinTileMesh(meshMaxError: number, width: number, height: number, terrain: Float32Array): {
|
|
24
24
|
vertices: any;
|
|
@@ -11,7 +11,7 @@ export type URLTemplate = string | string[] | null;
|
|
|
11
11
|
export declare const urlType: {
|
|
12
12
|
type: "object";
|
|
13
13
|
value: URLTemplate;
|
|
14
|
-
validate: (value: any, propType: any) =>
|
|
14
|
+
validate: (value: any, propType: any) => any;
|
|
15
15
|
equal: (value1: any, value2: any) => boolean;
|
|
16
16
|
};
|
|
17
17
|
export type ClampToTerrainOptions = {
|
|
@@ -61,7 +61,7 @@ export default class CogBitmapLayer<ExtraPropsT extends object = object> extends
|
|
|
61
61
|
id: string;
|
|
62
62
|
data: TileResult;
|
|
63
63
|
tile: Tile2DHeader<TileResult>;
|
|
64
|
-
}): BitmapLayer<{}
|
|
65
|
-
renderLayers(): TileLayer<TileResult, {}
|
|
64
|
+
}): BitmapLayer<{}> | null;
|
|
65
|
+
renderLayers(): TileLayer<TileResult, {}> | null;
|
|
66
66
|
}
|
|
67
67
|
export {};
|
|
@@ -11,7 +11,7 @@ export type URLTemplate = string | string[] | null;
|
|
|
11
11
|
export declare const urlType: {
|
|
12
12
|
type: "object";
|
|
13
13
|
value: URLTemplate;
|
|
14
|
-
validate: (value: any, propType: any) =>
|
|
14
|
+
validate: (value: any, propType: any) => any;
|
|
15
15
|
equal: (value1: any, value2: any) => boolean;
|
|
16
16
|
};
|
|
17
17
|
type ElevationDecoder = {
|
|
@@ -89,7 +89,7 @@ export default class CogTerrainLayer<ExtraPropsT extends object = object> extend
|
|
|
89
89
|
id: string;
|
|
90
90
|
data: MeshAndTexture;
|
|
91
91
|
tile: Tile2DHeader<MeshAndTexture>;
|
|
92
|
-
}): SimpleMeshLayer<any, {}
|
|
92
|
+
}): SimpleMeshLayer<any, {}> | null;
|
|
93
93
|
onViewportLoad(tiles?: Tile2DHeader<MeshAndTexture>[]): void;
|
|
94
94
|
renderLayers(): Layer | null | LayersList;
|
|
95
95
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisatcz/deckgl-geolib",
|
|
3
|
-
"version": "2.4.0-dev.
|
|
3
|
+
"version": "2.4.0-dev.5",
|
|
4
4
|
"description": "Deck.gl extension for rendering Cloud-Optimized GeoTIFF (COG) data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deck.gl",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@mapbox/martini": "^0.2.0",
|
|
53
|
-
"chroma-js": "^2.
|
|
54
|
-
"geotiff": "^3.0.
|
|
53
|
+
"chroma-js": "^3.2.0",
|
|
54
|
+
"geotiff": "^3.0.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@deck.gl/core": ">=9.0.0",
|
|
@@ -67,28 +67,28 @@
|
|
|
67
67
|
"@luma.gl/shadertools": ">=9.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@deck.gl/core": "^9.2.
|
|
71
|
-
"@deck.gl/extensions": "^9.2.
|
|
72
|
-
"@deck.gl/geo-layers": "^9.2.
|
|
73
|
-
"@deck.gl/layers": "^9.2.
|
|
74
|
-
"@deck.gl/mesh-layers": "^9.2.
|
|
70
|
+
"@deck.gl/core": "^9.2.11",
|
|
71
|
+
"@deck.gl/extensions": "^9.2.11",
|
|
72
|
+
"@deck.gl/geo-layers": "^9.2.11",
|
|
73
|
+
"@deck.gl/layers": "^9.2.11",
|
|
74
|
+
"@deck.gl/mesh-layers": "^9.2.11",
|
|
75
75
|
"@loaders.gl/core": "^4.3.4",
|
|
76
76
|
"@loaders.gl/loader-utils": "^4.3.4",
|
|
77
77
|
"@loaders.gl/schema": "^4.3.4",
|
|
78
78
|
"@luma.gl/core": "^9.2.6",
|
|
79
79
|
"@luma.gl/engine": "^9.2.6",
|
|
80
80
|
"@luma.gl/shadertools": "^9.2.6",
|
|
81
|
-
"@rollup/plugin-commonjs": "^
|
|
81
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
82
82
|
"@rollup/plugin-json": "^6.1.0",
|
|
83
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
83
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
84
84
|
"@rollup/plugin-terser": "^1.0.0",
|
|
85
|
-
"@rollup/plugin-typescript": "^12.
|
|
86
|
-
"@types/chroma-js": "^
|
|
87
|
-
"eslint": "^9.
|
|
88
|
-
"rollup": "^4.
|
|
89
|
-
"rollup-plugin-dts": "^6.1
|
|
85
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
86
|
+
"@types/chroma-js": "^3.1.2",
|
|
87
|
+
"eslint": "^9.39.3",
|
|
88
|
+
"rollup": "^4.60.1",
|
|
89
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
90
90
|
"rollup-plugin-filesize": "^10.0.0",
|
|
91
91
|
"tslib": "^2.8.1",
|
|
92
|
-
"typescript": "^
|
|
92
|
+
"typescript": "^6.0.2"
|
|
93
93
|
}
|
|
94
94
|
}
|