Skip to content

Commit 223d14b

Browse files
authored
[chore] ts fixes (#3086)
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
1 parent 3570ac4 commit 223d14b

File tree

9 files changed

+31
-2
lines changed

9 files changed

+31
-2
lines changed

src/ai-assistant/src/tools/echarts-tools.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {
25
boxplot,
36
BoxplotTool,

src/ai-assistant/src/tools/geo-tools.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import React, {useEffect} from 'react';
25
import {useDispatch} from 'react-redux';
36
import {

src/ai-assistant/src/tools/kepler-tools/boundary-tool.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {tool} from '@openassistant/utils';
25
import {z} from 'zod';
36

src/ai-assistant/src/tools/kepler-tools/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {VisState} from '@kepler.gl/schemas';
25

36
import {basemap} from './basemap-tool';

src/ai-assistant/src/tools/kepler-tools/save-data-tool.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {tool} from '@openassistant/utils';
25
import {getCachedData, generateId, removeCachedData} from '@openassistant/osm';
36
import {z} from 'zod';

src/ai-assistant/src/tools/lisa-tool.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {useEffect} from 'react';
25
import {useDispatch, useSelector} from 'react-redux';
36
import {addDataToMap, addLayer} from '@kepler.gl/actions';

src/ai-assistant/src/tools/query-tool.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import React, {useEffect, useRef, useState} from 'react';
25
import {useDispatch, useSelector} from 'react-redux';
36
import {Datasets} from '@kepler.gl/table';

src/ai-assistant/src/tools/tools.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {VisState} from '@kepler.gl/schemas';
25
import {Dispatch} from 'redux';
36

src/layers/src/raster-tile/raster-tile-layer.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import {Matrix4} from 'math.gl';
1111
import {PathLayer} from '@deck.gl/layers/typed';
1212
import {DatasetType, PMTilesType, LAYER_TYPES} from '@kepler.gl/constants';
1313
import {RasterLayer, RasterMeshLayer} from '@kepler.gl/deckgl-layers';
14-
import {Layer, VisualChannel} from '@kepler.gl/layers';
1514
import {
1615
LayerBaseConfig,
1716
LayerColorConfig,
1817
LayerHeightConfig,
18+
VisualChannel,
1919
VisConfigColorRange,
2020
VisConfigSelection,
2121
VisConfigBoolean,
@@ -114,8 +114,13 @@ export type RasterTileLayerVisConfigSettings = RasterTileLayerVisConfigCommonSet
114114
singleBandName: VisConfigSelection;
115115
};
116116

117-
export default class RasterTileLayer extends Layer {
117+
type RasterTileLayerMeta = {
118+
zRange: number[] | null;
119+
};
120+
121+
export default class RasterTileLayer extends KeplerLayer {
118122
declare visConfigSettings: RasterTileLayerVisConfigSettings;
123+
declare meta: RasterTileLayerMeta;
119124

120125
/** Min bands image data value, based on the current viewport */
121126
minViewportPixelValue = Infinity;

0 commit comments

Comments
 (0)