@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 CHANGED
@@ -57,6 +57,8 @@ export type ProtoDataset = {
57
57
  rows: any[][];
58
58
  cols?: any[];
59
59
  arrowTable?: arrow.Table;
60
+ /** Existing table in the configured DuckDB database; avoids re-importing its rows. */
61
+ duckdbTableName?: string;
60
62
  };
61
63
 
62
64
  // table-injected metadata
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 {AnnotationKind} from '@kepler.gl/constants';
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
- anchorPoint: [number, number];
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/types",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.3.0-alpha.10",
4
+ "version": "3.3.0-alpha.12",
5
5
  "description": "kepler.gl types used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "types": "index.d.ts",
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> & {
package/schemas.d.ts CHANGED
@@ -11,6 +11,7 @@ export type SavedFilter = {
11
11
  dataId: Filter['dataId'];
12
12
  id: Filter['id'];
13
13
  name: Filter['name'];
14
+ endName?: Filter['endName'];
14
15
  type: Filter['type'];
15
16
  value: Filter['value'];
16
17
  // deprecated