@kepler.gl/schemas 3.3.0-alpha.13 → 3.3.0-alpha.15
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/dist/cjs/index.js +8 -1
- package/dist/cjs/ui-state-schema.js +8 -1
- package/dist/cjs/vis-state-schema.js +99 -27
- package/dist/esm/index.js +2 -2
- package/dist/esm/ui-state-schema.js +8 -1
- package/dist/esm/vis-state-schema.js +98 -26
- package/dist/index.d.ts +1 -1
- package/dist/vis-state-schema.d.ts +36 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Schema from './schema';
|
|
2
|
-
import { AddDataToMapOptions, AnimationConfig, Editor, FileLoading, FileLoadingProgress, Filter, InteractionConfig, LayerOrder, MapInfo, ParsedFilter, ParsedLayer, ParsedVisState, SavedFilter, MinSavedFilter, SavedInteractionConfig, SavedLayer, MinSavedLayer, SavedVisState, SplitMap, ValueOf, Effect, Annotation } from '@kepler.gl/types';
|
|
2
|
+
import { AddDataToMapOptions, AnimationConfig, Editor, FileLoading, FileLoadingProgress, Filter, InteractionConfig, LayerOrder, MapInfo, ParsedFilter, ParsedLayer, ParsedVisState, SavedFilter, MinSavedFilter, SavedInteractionConfig, SavedLayer, MinSavedLayer, SavedVisState, SplitMap, ValueOf, Effect, Annotation, ChartConfig } from '@kepler.gl/types';
|
|
3
3
|
import { Datasets } from '@kepler.gl/table';
|
|
4
4
|
import { Layer, LayerClassesType } from '@kepler.gl/layers';
|
|
5
5
|
import { Loader } from '@loaders.gl/loader-utils';
|
|
@@ -23,6 +23,8 @@ export interface VisState {
|
|
|
23
23
|
layerOrderToBeMerged: any[] | null;
|
|
24
24
|
effects: Effect[];
|
|
25
25
|
effectOrder: string[];
|
|
26
|
+
charts: ChartConfig[];
|
|
27
|
+
chartsToBeMerged: ChartConfig[];
|
|
26
28
|
annotations: Annotation[];
|
|
27
29
|
annotationsToBeMerged: any[];
|
|
28
30
|
selectedAnnotationId: string | null;
|
|
@@ -47,6 +49,8 @@ export interface VisState {
|
|
|
47
49
|
fileLoading: FileLoading | false;
|
|
48
50
|
fileLoadingProgress: FileLoadingProgress;
|
|
49
51
|
loadingIndicatorValue: number;
|
|
52
|
+
/** Per-dataset download progress (0–100) while hydrating remote files. */
|
|
53
|
+
loadingProgress: Record<string, number>;
|
|
50
54
|
loaders: Loader[];
|
|
51
55
|
loadOptions: object;
|
|
52
56
|
initialState?: Partial<VisState>;
|
|
@@ -246,6 +250,36 @@ export declare const effectPropsV1: {
|
|
|
246
250
|
isEnabled: null;
|
|
247
251
|
parameters: null;
|
|
248
252
|
};
|
|
253
|
+
export declare const chartPropsV1: {
|
|
254
|
+
id: null;
|
|
255
|
+
title: null;
|
|
256
|
+
type: null;
|
|
257
|
+
dataId: null;
|
|
258
|
+
applyFilters: null;
|
|
259
|
+
pinned: null;
|
|
260
|
+
display: null;
|
|
261
|
+
crossFilter: null;
|
|
262
|
+
xAxis: null;
|
|
263
|
+
yAxis: null;
|
|
264
|
+
groupBy: null;
|
|
265
|
+
value: null;
|
|
266
|
+
axis: null;
|
|
267
|
+
numGroups: null;
|
|
268
|
+
groupOthers: null;
|
|
269
|
+
colorBy: null;
|
|
270
|
+
chartDisplay: null;
|
|
271
|
+
layerId: null;
|
|
272
|
+
layerChartType: null;
|
|
273
|
+
};
|
|
274
|
+
export declare class ChartsSchema extends Schema {
|
|
275
|
+
key: string;
|
|
276
|
+
save(charts: any): {
|
|
277
|
+
[x: string]: any[];
|
|
278
|
+
};
|
|
279
|
+
load(charts: any): {
|
|
280
|
+
[x: string]: any[];
|
|
281
|
+
};
|
|
282
|
+
}
|
|
249
283
|
export declare class EffectsSchema extends Schema {
|
|
250
284
|
key: string;
|
|
251
285
|
save(effects: any, parents: any): {
|
|
@@ -295,6 +329,7 @@ export declare const propertiesV1: {
|
|
|
295
329
|
filters: FilterSchemaV0;
|
|
296
330
|
layers: LayerSchemaV0;
|
|
297
331
|
effects: EffectsSchema;
|
|
332
|
+
charts: ChartsSchema;
|
|
298
333
|
annotations: AnnotationsSchema;
|
|
299
334
|
interactionConfig: InteractionSchemaV1;
|
|
300
335
|
layerBlending: null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kepler.gl/schemas",
|
|
3
3
|
"author": "Shan He <shan@uber.com>",
|
|
4
|
-
"version": "3.3.0-alpha.
|
|
4
|
+
"version": "3.3.0-alpha.15",
|
|
5
5
|
"description": "kepler.gl schemas used by kepler.gl components, actions and reducers",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@kepler.gl/common-utils": "3.3.0-alpha.
|
|
32
|
-
"@kepler.gl/constants": "3.3.0-alpha.
|
|
33
|
-
"@kepler.gl/layers": "3.3.0-alpha.
|
|
34
|
-
"@kepler.gl/table": "3.3.0-alpha.
|
|
35
|
-
"@kepler.gl/types": "3.3.0-alpha.
|
|
36
|
-
"@kepler.gl/utils": "3.3.0-alpha.
|
|
31
|
+
"@kepler.gl/common-utils": "3.3.0-alpha.15",
|
|
32
|
+
"@kepler.gl/constants": "3.3.0-alpha.15",
|
|
33
|
+
"@kepler.gl/layers": "3.3.0-alpha.15",
|
|
34
|
+
"@kepler.gl/table": "3.3.0-alpha.15",
|
|
35
|
+
"@kepler.gl/types": "3.3.0-alpha.15",
|
|
36
|
+
"@kepler.gl/utils": "3.3.0-alpha.15",
|
|
37
37
|
"@loaders.gl/loader-utils": "^4.4.1",
|
|
38
38
|
"@types/keymirror": "^0.1.1",
|
|
39
39
|
"apache-arrow": ">=15.0.0",
|