@kepler.gl/types 3.3.0-alpha.10 → 3.3.0-alpha.12
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/actions.d.ts +2 -0
- package/annotations.d.ts +9 -2
- package/layers.d.ts +18 -0
- package/package.json +1 -1
- package/reducers.d.ts +14 -0
- package/schemas.d.ts +1 -0
package/actions.d.ts
CHANGED
package/annotations.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
2
|
// Copyright contributors to the kepler.gl project
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
AnnotationKind,
|
|
6
|
+
AnnotationTextSide,
|
|
7
|
+
AnnotationTextVerticalPosition
|
|
8
|
+
} from '@kepler.gl/constants';
|
|
5
9
|
|
|
6
10
|
export {AnnotationKind} from '@kepler.gl/constants';
|
|
7
11
|
export {isAnnotationKind, isAnnotationWithArm} from '@kepler.gl/constants';
|
|
@@ -12,7 +16,8 @@ export type BaseAnnotation = {
|
|
|
12
16
|
isVisible: boolean;
|
|
13
17
|
autoSize: boolean;
|
|
14
18
|
autoSizeY: boolean;
|
|
15
|
-
|
|
19
|
+
/** [lng, lat] or [lng, lat, altitudeMeters]. Missing altitude is treated as 0. */
|
|
20
|
+
anchorPoint: [number, number] | [number, number, number];
|
|
16
21
|
label: string;
|
|
17
22
|
editorState?: Record<string, any>;
|
|
18
23
|
mapIndex?: number;
|
|
@@ -21,6 +26,8 @@ export type BaseAnnotation = {
|
|
|
21
26
|
textWidth: number;
|
|
22
27
|
textHeight: number;
|
|
23
28
|
textVerticalAlign?: 'top' | 'middle' | 'bottom';
|
|
29
|
+
textSide?: AnnotationTextSide;
|
|
30
|
+
textVerticalPosition?: AnnotationTextVerticalPosition;
|
|
24
31
|
};
|
|
25
32
|
|
|
26
33
|
export type AnnotationWithArm = BaseAnnotation & {
|
package/layers.d.ts
CHANGED
|
@@ -62,11 +62,23 @@ export type EnhancedFieldPair = {
|
|
|
62
62
|
pair: FieldPair['pair'];
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
export type ColumnGroup = {
|
|
66
|
+
key: string;
|
|
67
|
+
label: string;
|
|
68
|
+
/** Column keys shown when this group is active (mutually exclusive with other groups). */
|
|
69
|
+
columns: string[];
|
|
70
|
+
};
|
|
71
|
+
|
|
65
72
|
export type SupportedColumnMode = {
|
|
66
73
|
key: string;
|
|
67
74
|
label: string;
|
|
68
75
|
requiredColumns: string[];
|
|
69
76
|
optionalColumns?: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Optional mutually exclusive column sets rendered as tabs
|
|
79
|
+
* (e.g. Lat/Lng vs GeoJSON position source).
|
|
80
|
+
*/
|
|
81
|
+
columnGroups?: ColumnGroup[];
|
|
70
82
|
hasHelp?: boolean;
|
|
71
83
|
verifyField?: (field: Field) => boolean;
|
|
72
84
|
};
|
|
@@ -107,6 +119,8 @@ export type LayerRadiusConfig = {
|
|
|
107
119
|
};
|
|
108
120
|
export type LayerWeightConfig = {
|
|
109
121
|
weightField: VisualChannelField;
|
|
122
|
+
weightDomain?: VisualChannelDomain;
|
|
123
|
+
weightScale?: VisualChannelScale;
|
|
110
124
|
};
|
|
111
125
|
|
|
112
126
|
export type IndexBy = {
|
|
@@ -169,6 +183,8 @@ export type LayerTextLabel = {
|
|
|
169
183
|
outlineWidth: number;
|
|
170
184
|
outlineColor: RGBAColor;
|
|
171
185
|
backgroundColor: RGBAColor | null;
|
|
186
|
+
/** Hide labels that overlap other labels of the same field (GPU collision filter). */
|
|
187
|
+
collisionEnabled?: boolean;
|
|
172
188
|
};
|
|
173
189
|
|
|
174
190
|
export type ColorRangeConfig = {
|
|
@@ -236,6 +252,8 @@ export type VisConfig = {
|
|
|
236
252
|
) => boolean;
|
|
237
253
|
|
|
238
254
|
allowCustomValue?: boolean;
|
|
255
|
+
/** Checkbox label shown when allowCustomValue is true. Defaults to "custom input". */
|
|
256
|
+
customInputLabel?: string;
|
|
239
257
|
};
|
|
240
258
|
|
|
241
259
|
export type VisConfigNumber = VisConfig & {
|
package/package.json
CHANGED
package/reducers.d.ts
CHANGED
|
@@ -168,8 +168,14 @@ export type FilterBase<L extends LineChart> = {
|
|
|
168
168
|
// gpu filter
|
|
169
169
|
gpu: boolean;
|
|
170
170
|
gpuChannel?: number[];
|
|
171
|
+
gpuEndChannel?: number[];
|
|
171
172
|
fieldType?: string;
|
|
172
173
|
|
|
174
|
+
// Optional end timestamp for duration-based time filters (parallel to name/fieldIdx)
|
|
175
|
+
endName?: (string | null | undefined)[];
|
|
176
|
+
endFieldIdx?: (number | null | undefined)[];
|
|
177
|
+
endMappedValue?: ((number | null)[] | null | undefined)[];
|
|
178
|
+
|
|
173
179
|
// polygon
|
|
174
180
|
layerId?: string[];
|
|
175
181
|
};
|
|
@@ -215,6 +221,14 @@ export type TimeRangeFilter = FilterBase<LineChart> &
|
|
|
215
221
|
syncTimelineMode: SyncTimelineMode;
|
|
216
222
|
animationWindow: string;
|
|
217
223
|
invertTrendColor: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* When set, a feature is visible while the playback window overlaps
|
|
226
|
+
* [startField, endField] rather than requiring a single timestamp in range.
|
|
227
|
+
*/
|
|
228
|
+
endName?: (string | null | undefined)[];
|
|
229
|
+
endFieldIdx?: (number | null | undefined)[];
|
|
230
|
+
endMappedValue?: ((number | null)[] | null | undefined)[];
|
|
231
|
+
gpuEndChannel?: number[];
|
|
218
232
|
};
|
|
219
233
|
|
|
220
234
|
export type PolygonFilter = FilterBase<LineChart> & {
|