@kepler.gl/utils 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/dist/application-config.d.ts +13 -0
- package/dist/cjs/application-config.js +4 -1
- package/dist/cjs/arrow-data-container.js +1 -1
- package/dist/cjs/export-map-html.js +1 -1
- package/dist/cjs/filter-utils.js +212 -31
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/plot.js +87 -8
- package/dist/cjs/slider-scale-utils.js +1 -1
- package/dist/esm/application-config.js +4 -1
- package/dist/esm/arrow-data-container.js +1 -1
- package/dist/esm/export-map-html.js +1 -1
- package/dist/esm/filter-utils.js +206 -28
- package/dist/esm/index.js +2 -2
- package/dist/esm/plot.js +88 -10
- package/dist/esm/slider-scale-utils.js +1 -1
- package/dist/filter-utils.d.ts +20 -0
- package/dist/index.d.ts +2 -2
- package/dist/plot.d.ts +10 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { default as domtoimage } from './dom-to-image';
|
|
|
6
6
|
export { getFrequency, getMode, aggregate } from './aggregation';
|
|
7
7
|
export { ColumnStatsType, NUMERIC_BIN_COUNT, collectColumnValues, computeColumnStats, getColumnStatistics } from './column-statistics';
|
|
8
8
|
export type { ColumnStats, NumericColumnStats, CategoricalColumnStats, TimeColumnStats, Quantile } from './column-statistics';
|
|
9
|
-
export { adjustValueToAnimationWindow, getBinThresholds, histogramFromThreshold, histogramFromValues, histogramFromDomain, histogramFromOrdinal, mergePolygonLayerIndexes, runGpuFilterForPlot, updateTimeFilterPlotType } from './plot';
|
|
9
|
+
export { adjustValueToAnimationWindow, getBinThresholds, histogramFromThreshold, histogramFromValues, histogramFromDomain, histogramFromOrdinal, histogramFromTimeIntervals, mergePolygonLayerIndexes, runGpuFilterForPlot, updateTimeFilterPlotType } from './plot';
|
|
10
10
|
export * from './data-utils';
|
|
11
11
|
export type { FieldFormatter } from './data-utils';
|
|
12
12
|
export * from './strings';
|
|
@@ -42,7 +42,7 @@ export { colorMapToColorBreaks, colorBreaksToColorMap, getLayerColorScale, getLe
|
|
|
42
42
|
export type { ColorBreak, ColorBreakOrdinal, DomainQuantiles, DomainStops } from './data-scale-utils';
|
|
43
43
|
export { DataRow } from './data-row';
|
|
44
44
|
export { getApplicationConfig, initApplicationConfig } from './application-config';
|
|
45
|
-
export type { KeplerApplicationConfig, BaseMapLibraryConfig, MapLibInstance, GetMapRef, SvgIcon, ReduxLogLevel } from './application-config';
|
|
45
|
+
export type { KeplerApplicationConfig, KeplerAcceptedFileFormat, BaseMapLibraryConfig, MapLibInstance, GetMapRef, SvgIcon, ReduxLogLevel } from './application-config';
|
|
46
46
|
export type { DatabaseAdapter, DatabaseConnection } from './application-config-types';
|
|
47
47
|
export { isAppleDevice } from './browser-utils';
|
|
48
48
|
export { default as quickInsertionSort } from './quick-insertion-sort';
|
package/dist/plot.d.ts
CHANGED
|
@@ -26,7 +26,12 @@ export declare function histogramFromThreshold(thresholds: number[], values: num
|
|
|
26
26
|
export declare function histogramFromValues(values: (Millisecond | null | number)[], numBins: number, valueAccessor?: (d: number) => number): Bin[];
|
|
27
27
|
export declare function histogramFromOrdinal(domain: [string], values: (Millisecond | null | number)[], valueAccessor?: (d: unknown) => string): Bin[];
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Bin rows by time interval overlap: a feature [start, end] is counted in every
|
|
30
|
+
* bin whose range intersects that span. Null/undefined end is treated as still
|
|
31
|
+
* active through the last threshold (open-ended).
|
|
32
|
+
*/
|
|
33
|
+
export declare function histogramFromTimeIntervals(thresholds: number[], indexes: number[], startAccessor: (idx: number) => number | null | undefined, endAccessor: (idx: number) => number | null | undefined): Bin[];
|
|
34
|
+
/**
|
|
30
35
|
* @param domain
|
|
31
36
|
* @param values
|
|
32
37
|
* @param numBins
|
|
@@ -99,7 +104,11 @@ export declare function adjustValueToAnimationWindow<S extends MinVisStateForAni
|
|
|
99
104
|
lineChart?: LineChart | undefined;
|
|
100
105
|
gpu: boolean;
|
|
101
106
|
gpuChannel?: number[];
|
|
107
|
+
gpuEndChannel?: number[];
|
|
102
108
|
fieldType: "timestamp";
|
|
109
|
+
endName?: (string | null | undefined)[];
|
|
110
|
+
endFieldIdx?: (number | null | undefined)[];
|
|
111
|
+
endMappedValue?: ((number | null)[] | null | undefined)[];
|
|
103
112
|
layerId?: string[];
|
|
104
113
|
step: number;
|
|
105
114
|
defaultTimeFormat?: string | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kepler.gl/utils",
|
|
3
3
|
"author": "Shan He <shan@uber.com>",
|
|
4
|
-
"version": "3.3.0-alpha.
|
|
4
|
+
"version": "3.3.0-alpha.11",
|
|
5
5
|
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@deck.gl/core": "^9.3.1",
|
|
32
|
-
"@kepler.gl/common-utils": "3.3.0-alpha.
|
|
33
|
-
"@kepler.gl/constants": "3.3.0-alpha.
|
|
34
|
-
"@kepler.gl/types": "3.3.0-alpha.
|
|
32
|
+
"@kepler.gl/common-utils": "3.3.0-alpha.11",
|
|
33
|
+
"@kepler.gl/constants": "3.3.0-alpha.11",
|
|
34
|
+
"@kepler.gl/types": "3.3.0-alpha.11",
|
|
35
35
|
"@loaders.gl/gis": "^4.4.1",
|
|
36
36
|
"@luma.gl/constants": "^9.3.2",
|
|
37
37
|
"@luma.gl/core": "^9.3.2",
|