@kepler.gl/types 3.1.0-alpha.2 → 3.1.0-alpha.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.
- package/layers.d.ts +22 -1
- package/package.json +1 -1
package/layers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
2
|
// Copyright contributors to the kepler.gl project
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {HexColor} from './types';
|
|
5
5
|
|
|
6
6
|
export type LayerBaseConfig = {
|
|
7
7
|
dataId: string | null;
|
|
@@ -169,6 +169,27 @@ export type ColorRangeConfig = {
|
|
|
169
169
|
colorBlindSafe: boolean;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
+
export type ColorMap = [string[] | string | number | null, HexColor][];
|
|
173
|
+
// Key is HexColor but as key we can use only string
|
|
174
|
+
export type ColorLegends = {[key: HexColor]: string};
|
|
175
|
+
|
|
176
|
+
export type ColorRange = {
|
|
177
|
+
name?: string;
|
|
178
|
+
type?: string;
|
|
179
|
+
category?: string;
|
|
180
|
+
colors: HexColor[];
|
|
181
|
+
reversed?: boolean;
|
|
182
|
+
colorMap?: ColorMap;
|
|
183
|
+
colorLegends?: ColorLegends;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export type MiniColorRange = {
|
|
187
|
+
name: string;
|
|
188
|
+
type: string;
|
|
189
|
+
category: string;
|
|
190
|
+
colors: HexColor[];
|
|
191
|
+
};
|
|
192
|
+
|
|
172
193
|
export type ColorUI = {
|
|
173
194
|
// customPalette in edit
|
|
174
195
|
customPalette: ColorRange;
|
package/package.json
CHANGED