@kepler.gl/types 3.3.0-alpha.17 → 3.3.0-alpha.18

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
@@ -45,6 +45,20 @@ export type ProtoDatasetField = {
45
45
  id?: string;
46
46
  metadata?: Record<string, any>;
47
47
  };
48
+
49
+ export type GeoArrowBinaryData = Record<
50
+ number,
51
+ Record<
52
+ number,
53
+ {
54
+ binaryGeometries: any[];
55
+ bounds: [number, number, number, number];
56
+ featureTypes: {point: boolean; line: boolean; polygon: boolean};
57
+ meanCenters?: Array<number[] | null>;
58
+ }
59
+ >
60
+ >;
61
+
48
62
  export type ProtoDataset = {
49
63
  info: {
50
64
  id?: string;
@@ -59,6 +73,8 @@ export type ProtoDataset = {
59
73
  rows: any[][];
60
74
  cols?: any[];
61
75
  arrowTable?: arrow.Table;
76
+ /** GeoArrow chunks already converted to deck.gl binary features on workers. */
77
+ geoArrowBinaryData?: GeoArrowBinaryData;
62
78
  /** Existing table in the configured DuckDB database; avoids re-importing its rows. */
63
79
  duckdbTableName?: string;
64
80
  };
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.17",
4
+ "version": "3.3.0-alpha.18",
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
@@ -158,9 +158,9 @@ export type LineChart = {
158
158
 
159
159
  // Is this a valid part of LineChart?
160
160
  aggregation: string;
161
- interval: string;
161
+ interval: string | number | null;
162
162
  yAxis: string;
163
- bins?: Bins;
163
+ bins?: Bins | Bin[];
164
164
  /** Cache key for timeline series grouping. Null when the plot is a single series. */
165
165
  groupBy?: LineChartGroupBy | null;
166
166
  };
@@ -181,6 +181,7 @@ export type FilterBase<L extends LineChart> = {
181
181
  fixedDomain: boolean;
182
182
  view: FilterViewType;
183
183
  isAnimating: boolean;
184
+ animationWindow?: string;
184
185
  speed: number;
185
186
  showTimeDisplay?: boolean;
186
187
 
@@ -298,6 +299,7 @@ export interface TimeBins {
298
299
 
299
300
  export interface PlotType {
300
301
  interval: ValueOf<Interval>;
302
+ numericInterval?: number;
301
303
  type: ValueOf<PlotTypes>;
302
304
  aggregation: ValueOf<AggregationTypes>;
303
305
  defaultTimeFormat: string;
@@ -379,16 +381,9 @@ export type AnimationConfig = {
379
381
  hideControl?: boolean;
380
382
  };
381
383
 
382
- export type FilterAnimationConfig = Pick<
383
- TimeRangeFilter,
384
- | 'dataId'
385
- | 'value'
386
- | 'animationWindow'
387
- | 'speed'
388
- | 'syncedWithLayerTimeline'
389
- | 'syncTimelineMode'
390
- | 'timezone'
391
- >;
384
+ export type FilterAnimationConfig = Pick<Filter, 'dataId' | 'value' | 'speed'> &
385
+ Required<Pick<Filter, 'animationWindow'>> &
386
+ Partial<Pick<TimeRangeFilter, 'syncedWithLayerTimeline' | 'syncTimelineMode' | 'timezone'>>;
392
387
 
393
388
  export type Timeline = {
394
389
  domain: [number, number] | null;
package/types.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  // Copyright contributors to the kepler.gl project
3
3
 
4
+ import type {GeoArrowBinaryData} from './actions';
5
+
4
6
  export type RGBColor = [number, number, number];
5
7
  export type RGBAColor = [number, number, number, number];
6
8
  export type HexColor = string; // this is the best typescript can do at the moment
@@ -52,6 +54,8 @@ export type ProcessorResult = {
52
54
  rows: any[][];
53
55
  cols?: any[];
54
56
  metadata?: any;
57
+ /** GeoArrow chunks already converted to deck.gl binary features on workers. */
58
+ geoArrowBinaryData?: GeoArrowBinaryData;
55
59
  /** Optional schema for arrow tables with metadata preserved. */
56
60
  // TODO: Should we use a loaded arrow.Table in cols instead of an array of arrow.Vectors? Why was an array of arrow.Vectors chosen?
57
61
  arrowSchema?: any;