@kepler.gl/types 3.3.0-alpha.10 → 3.3.0-alpha.11

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/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';
@@ -21,6 +25,8 @@ export type BaseAnnotation = {
21
25
  textWidth: number;
22
26
  textHeight: number;
23
27
  textVerticalAlign?: 'top' | 'middle' | 'bottom';
28
+ textSide?: AnnotationTextSide;
29
+ textVerticalPosition?: AnnotationTextVerticalPosition;
24
30
  };
25
31
 
26
32
  export type AnnotationWithArm = BaseAnnotation & {
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.11",
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