@kepler.gl/types 3.3.0-alpha.21 → 3.3.0-alpha.23
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/effects.d.ts +10 -0
- package/package.json +1 -1
- package/reducers.d.ts +8 -1
package/effects.d.ts
CHANGED
|
@@ -18,12 +18,21 @@ export type EffectDescription = {
|
|
|
18
18
|
parameters: EffectParameterDescription[];
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export type EffectParameterAnimation = {
|
|
22
|
+
startValue?: number | number[];
|
|
23
|
+
endValue: number | number[];
|
|
24
|
+
easing: 'linear' | 'easeInOut';
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type EffectAnimation = Record<string, EffectParameterAnimation>;
|
|
28
|
+
|
|
21
29
|
export type EffectUpdateProps = {
|
|
22
30
|
isEnabled: boolean;
|
|
23
31
|
isConfigActive: boolean;
|
|
24
32
|
isJsonEditorActive: boolean;
|
|
25
33
|
// effect specific parameters for a deck.gl effect (uniforms)
|
|
26
34
|
parameters: {[key: string]: any};
|
|
35
|
+
animation?: EffectAnimation;
|
|
27
36
|
};
|
|
28
37
|
|
|
29
38
|
export type EffectProps = EffectUpdateProps & {
|
|
@@ -41,6 +50,7 @@ export interface Effect {
|
|
|
41
50
|
isJsonEditorActive: boolean;
|
|
42
51
|
// effect specific parameters for a deck.gl effect (uniforms)
|
|
43
52
|
parameters: {[key: string]: any};
|
|
53
|
+
animation?: EffectAnimation;
|
|
44
54
|
deckEffect: any;
|
|
45
55
|
_uiConfig: EffectParameterDescription[];
|
|
46
56
|
|
package/package.json
CHANGED
package/reducers.d.ts
CHANGED
|
@@ -144,6 +144,9 @@ export type LineChartGroupBy = {
|
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
export type PlotGroupBy = {
|
|
147
|
+
/** Omitted in older configs, which keep independent grouping. */
|
|
148
|
+
source?: 'independent' | 'layer';
|
|
149
|
+
layerId?: string;
|
|
147
150
|
fieldName?: string;
|
|
148
151
|
numGroups: number | 'ALL';
|
|
149
152
|
groupOthers: boolean;
|
|
@@ -182,6 +185,8 @@ export type FilterBase<L extends LineChart> = {
|
|
|
182
185
|
view: FilterViewType;
|
|
183
186
|
isAnimating: boolean;
|
|
184
187
|
animationWindow?: string;
|
|
188
|
+
/** Whether playback repeats. Missing values preserve looping in older saved maps. */
|
|
189
|
+
animationLoop?: boolean;
|
|
185
190
|
speed: number;
|
|
186
191
|
showTimeDisplay?: boolean;
|
|
187
192
|
|
|
@@ -285,6 +290,8 @@ export interface Bin {
|
|
|
285
290
|
indexes: number[];
|
|
286
291
|
x0: number;
|
|
287
292
|
x1: number;
|
|
293
|
+
/** Derived categorical counts within this bin; unrepresented rows retain the base color. */
|
|
294
|
+
segments?: {name: string; color: string; count: number}[];
|
|
288
295
|
}
|
|
289
296
|
|
|
290
297
|
export interface Bins {
|
|
@@ -304,7 +311,7 @@ export interface PlotType {
|
|
|
304
311
|
aggregation: ValueOf<AggregationTypes>;
|
|
305
312
|
defaultTimeFormat: string;
|
|
306
313
|
colorsByDataId?: {[dataId: string]: string};
|
|
307
|
-
/** Categorical
|
|
314
|
+
/** Categorical split for timeline histogram bins and line chart series. */
|
|
308
315
|
groupBy?: PlotGroupBy | null;
|
|
309
316
|
yAxisAutoRange?: boolean;
|
|
310
317
|
}
|