@kepler.gl/types 3.1.0 → 3.1.2
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 +1 -0
- package/layers.d.ts +1 -0
- package/package.json +1 -1
- package/reducers.d.ts +12 -0
- package/types.d.ts +17 -0
package/actions.d.ts
CHANGED
package/layers.d.ts
CHANGED
package/package.json
CHANGED
package/reducers.d.ts
CHANGED
|
@@ -415,8 +415,20 @@ export type MapControlItem = {
|
|
|
415
415
|
disableClose?: boolean;
|
|
416
416
|
activeMapIndex?: number;
|
|
417
417
|
};
|
|
418
|
+
|
|
419
|
+
export type MapLegendControlSettings = {
|
|
420
|
+
position: {
|
|
421
|
+
x: number;
|
|
422
|
+
y: number;
|
|
423
|
+
anchorX: 'left' | 'right';
|
|
424
|
+
anchorY: 'top' | 'bottom';
|
|
425
|
+
};
|
|
426
|
+
contentHeight: number;
|
|
427
|
+
};
|
|
428
|
+
|
|
418
429
|
export type MapControlMapLegend = MapControlItem & {
|
|
419
430
|
disableEdit?: boolean;
|
|
431
|
+
settings?: MapLegendControlSettings;
|
|
420
432
|
};
|
|
421
433
|
export type MapControls = {
|
|
422
434
|
visibleLayers?: MapControlItem;
|
package/types.d.ts
CHANGED
|
@@ -32,6 +32,9 @@ export type ProcessorResult = {
|
|
|
32
32
|
rows: any[][];
|
|
33
33
|
cols?: any[];
|
|
34
34
|
metadata?: any;
|
|
35
|
+
/** Optional schema for arrow tables with metadata preserved. */
|
|
36
|
+
// 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?
|
|
37
|
+
arrowSchema?: any;
|
|
35
38
|
} | null;
|
|
36
39
|
|
|
37
40
|
export type Json = JsonScalar | JsonArray | JsonObject;
|
|
@@ -41,3 +44,17 @@ export type JsonArray = Json[];
|
|
|
41
44
|
export type JsonObject = {
|
|
42
45
|
[key: string]: Json | undefined;
|
|
43
46
|
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Types to mock apache-arrow types
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
export interface ApacheVectorInterface {
|
|
53
|
+
length: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ArrowTableInterface {
|
|
57
|
+
get numRows(): number;
|
|
58
|
+
|
|
59
|
+
getChildAt: (index: number) => Vector;
|
|
60
|
+
}
|