@kepler.gl/utils 3.3.0-alpha.2 → 3.3.0-alpha.21
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 +180 -1
- package/dist/arrow-data-container.d.ts +55 -2
- package/dist/camera-tour.d.ts +11 -0
- package/dist/camera-utils.d.ts +7 -0
- package/dist/cjs/aggregation.js +84 -0
- package/dist/cjs/aggregation.js.map +1 -0
- package/dist/cjs/application-config-types.js +6 -0
- package/dist/cjs/application-config-types.js.map +1 -0
- package/dist/cjs/application-config.js +178 -0
- package/dist/cjs/application-config.js.map +1 -0
- package/dist/cjs/arrow-data-container.js +1152 -0
- package/dist/cjs/arrow-data-container.js.map +1 -0
- package/dist/cjs/browser-utils.js +17 -0
- package/dist/cjs/browser-utils.js.map +1 -0
- package/dist/cjs/camera-tour.js +99 -0
- package/dist/cjs/camera-tour.js.map +1 -0
- package/dist/cjs/camera-utils.js +81 -0
- package/dist/cjs/camera-utils.js.map +1 -0
- package/dist/cjs/color-utils.js +462 -0
- package/dist/cjs/color-utils.js.map +1 -0
- package/dist/cjs/column-statistics.js +115 -0
- package/dist/cjs/column-statistics.js.map +1 -0
- package/dist/cjs/data-container-interface.js +6 -0
- package/dist/cjs/data-container-interface.js.map +1 -0
- package/dist/cjs/data-container-utils.js +76 -0
- package/dist/cjs/data-container-utils.js.map +1 -0
- package/dist/cjs/data-row.js +110 -0
- package/dist/cjs/data-row.js.map +1 -0
- package/dist/cjs/data-scale-utils.js +634 -0
- package/dist/cjs/data-scale-utils.js.map +1 -0
- package/dist/cjs/data-utils.js +538 -0
- package/dist/cjs/data-utils.js.map +1 -0
- package/dist/cjs/dataset-utils.js +361 -0
- package/dist/cjs/dataset-utils.js.map +1 -0
- package/dist/cjs/dom-to-image.js +433 -0
- package/dist/cjs/dom-to-image.js.map +1 -0
- package/dist/cjs/dom-utils.js +349 -0
- package/dist/cjs/dom-utils.js.map +1 -0
- package/dist/cjs/editor-feature-utils.js +177 -0
- package/dist/cjs/editor-feature-utils.js.map +1 -0
- package/dist/cjs/effect-utils.js +340 -0
- package/dist/cjs/effect-utils.js.map +1 -0
- package/dist/cjs/export-map-html.js +112 -0
- package/dist/cjs/export-map-html.js.map +1 -0
- package/dist/cjs/export-utils.js +318 -0
- package/dist/cjs/export-utils.js.map +1 -0
- package/dist/cjs/extract-dataset-utils.js +218 -0
- package/dist/cjs/extract-dataset-utils.js.map +1 -0
- package/dist/cjs/filter-utils.js +1762 -0
- package/dist/cjs/filter-utils.js.map +1 -0
- package/dist/cjs/format.js +38 -0
- package/dist/cjs/format.js.map +1 -0
- package/dist/cjs/gl-utils.js +118 -0
- package/dist/cjs/gl-utils.js.map +1 -0
- package/dist/{index.js → cjs/index.js} +391 -10
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/indexed-data-container.js +214 -0
- package/dist/cjs/indexed-data-container.js.map +1 -0
- package/dist/cjs/jenks.js +156 -0
- package/dist/cjs/jenks.js.map +1 -0
- package/dist/cjs/locale-utils.js +39 -0
- package/dist/cjs/locale-utils.js.map +1 -0
- package/dist/cjs/map-info-utils.js +41 -0
- package/dist/cjs/map-info-utils.js.map +1 -0
- package/dist/cjs/map-style-utils/mapbox-gl-style-editor.js +198 -0
- package/dist/cjs/map-style-utils/mapbox-gl-style-editor.js.map +1 -0
- package/dist/cjs/map-style-utils/mapbox-utils.js +155 -0
- package/dist/cjs/map-style-utils/mapbox-utils.js.map +1 -0
- package/dist/cjs/map-utils.js +76 -0
- package/dist/cjs/map-utils.js.map +1 -0
- package/dist/cjs/mapbox-utils.js +19 -0
- package/dist/cjs/mapbox-utils.js.map +1 -0
- package/dist/cjs/notifications-utils.js +69 -0
- package/dist/cjs/notifications-utils.js.map +1 -0
- package/dist/cjs/observe-dimensions.js +136 -0
- package/dist/cjs/observe-dimensions.js.map +1 -0
- package/dist/cjs/plot.js +1502 -0
- package/dist/cjs/plot.js.map +1 -0
- package/dist/cjs/position-utils.js +29 -0
- package/dist/cjs/position-utils.js.map +1 -0
- package/dist/cjs/projection-utils.js +141 -0
- package/dist/cjs/projection-utils.js.map +1 -0
- package/dist/cjs/quick-insertion-sort.js +132 -0
- package/dist/cjs/quick-insertion-sort.js.map +1 -0
- package/dist/cjs/row-data-container.js +291 -0
- package/dist/cjs/row-data-container.js.map +1 -0
- package/dist/cjs/slider-scale-utils.js +138 -0
- package/dist/cjs/slider-scale-utils.js.map +1 -0
- package/dist/cjs/split-map-utils.js +117 -0
- package/dist/cjs/split-map-utils.js.map +1 -0
- package/dist/cjs/strings.js +16 -0
- package/dist/cjs/strings.js.map +1 -0
- package/dist/cjs/theme-utils.js +46 -0
- package/dist/cjs/theme-utils.js.map +1 -0
- package/dist/cjs/time.js +321 -0
- package/dist/cjs/time.js.map +1 -0
- package/dist/cjs/types.js +6 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/utils.js +224 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/column-statistics.d.ts +54 -0
- package/dist/data-container-interface.d.ts +16 -1
- package/dist/data-container-utils.d.ts +2 -1
- package/dist/data-scale-utils.d.ts +5 -0
- package/dist/data-utils.d.ts +3 -3
- package/dist/dataset-utils.d.ts +11 -28
- package/dist/editor-feature-utils.d.ts +30 -0
- package/dist/esm/aggregation.js +75 -0
- package/dist/esm/aggregation.js.map +1 -0
- package/dist/esm/application-config-types.js +3 -0
- package/dist/esm/application-config-types.js.map +1 -0
- package/dist/esm/application-config.js +167 -0
- package/dist/esm/application-config.js.map +1 -0
- package/dist/esm/arrow-data-container.js +1136 -0
- package/dist/esm/arrow-data-container.js.map +1 -0
- package/dist/esm/browser-utils.js +11 -0
- package/dist/esm/browser-utils.js.map +1 -0
- package/dist/esm/camera-tour.js +92 -0
- package/dist/esm/camera-tour.js.map +1 -0
- package/dist/esm/camera-utils.js +74 -0
- package/dist/esm/camera-utils.js.map +1 -0
- package/dist/esm/color-utils.js +435 -0
- package/dist/esm/color-utils.js.map +1 -0
- package/dist/esm/column-statistics.js +105 -0
- package/dist/esm/column-statistics.js.map +1 -0
- package/dist/esm/data-container-interface.js +3 -0
- package/dist/esm/data-container-interface.js.map +1 -0
- package/dist/esm/data-container-utils.js +68 -0
- package/dist/esm/data-container-utils.js.map +1 -0
- package/dist/esm/data-row.js +106 -0
- package/dist/esm/data-row.js.map +1 -0
- package/dist/esm/data-scale-utils.js +602 -0
- package/dist/esm/data-scale-utils.js.map +1 -0
- package/dist/esm/data-utils.js +504 -0
- package/dist/esm/data-utils.js.map +1 -0
- package/dist/esm/dataset-utils.js +352 -0
- package/dist/esm/dataset-utils.js.map +1 -0
- package/dist/esm/dom-to-image.js +426 -0
- package/dist/esm/dom-to-image.js.map +1 -0
- package/dist/esm/dom-utils.js +323 -0
- package/dist/esm/dom-utils.js.map +1 -0
- package/dist/esm/editor-feature-utils.js +164 -0
- package/dist/esm/editor-feature-utils.js.map +1 -0
- package/dist/esm/effect-utils.js +333 -0
- package/dist/esm/effect-utils.js.map +1 -0
- package/dist/esm/export-map-html.js +107 -0
- package/dist/esm/export-map-html.js.map +1 -0
- package/dist/esm/export-utils.js +297 -0
- package/dist/esm/export-utils.js.map +1 -0
- package/dist/esm/extract-dataset-utils.js +206 -0
- package/dist/esm/extract-dataset-utils.js.map +1 -0
- package/dist/esm/filter-utils.js +1701 -0
- package/dist/esm/filter-utils.js.map +1 -0
- package/dist/esm/format.js +31 -0
- package/dist/esm/format.js.map +1 -0
- package/dist/esm/gl-utils.js +113 -0
- package/dist/esm/gl-utils.js.map +1 -0
- package/dist/esm/index.js +55 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/indexed-data-container.js +210 -0
- package/dist/esm/indexed-data-container.js.map +1 -0
- package/dist/esm/jenks.js +149 -0
- package/dist/esm/jenks.js.map +1 -0
- package/dist/esm/locale-utils.js +36 -0
- package/dist/esm/locale-utils.js.map +1 -0
- package/dist/esm/map-info-utils.js +35 -0
- package/dist/esm/map-info-utils.js.map +1 -0
- package/dist/esm/map-style-utils/mapbox-gl-style-editor.js +188 -0
- package/dist/esm/map-style-utils/mapbox-gl-style-editor.js.map +1 -0
- package/dist/esm/map-style-utils/mapbox-utils.js +144 -0
- package/dist/esm/map-style-utils/mapbox-utils.js.map +1 -0
- package/dist/esm/map-utils.js +72 -0
- package/dist/esm/map-utils.js.map +1 -0
- package/dist/esm/mapbox-utils.js +13 -0
- package/dist/esm/mapbox-utils.js.map +1 -0
- package/dist/esm/notifications-utils.js +63 -0
- package/dist/esm/notifications-utils.js.map +1 -0
- package/dist/esm/observe-dimensions.js +128 -0
- package/dist/esm/observe-dimensions.js.map +1 -0
- package/dist/esm/plot.js +1460 -0
- package/dist/esm/plot.js.map +1 -0
- package/dist/esm/position-utils.js +22 -0
- package/dist/esm/position-utils.js.map +1 -0
- package/dist/esm/projection-utils.js +131 -0
- package/dist/esm/projection-utils.js.map +1 -0
- package/dist/esm/quick-insertion-sort.js +125 -0
- package/dist/esm/quick-insertion-sort.js.map +1 -0
- package/dist/esm/row-data-container.js +286 -0
- package/dist/esm/row-data-container.js.map +1 -0
- package/dist/esm/slider-scale-utils.js +129 -0
- package/dist/esm/slider-scale-utils.js.map +1 -0
- package/dist/esm/split-map-utils.js +109 -0
- package/dist/esm/split-map-utils.js.map +1 -0
- package/dist/esm/strings.js +10 -0
- package/dist/esm/strings.js.map +1 -0
- package/dist/esm/theme-utils.js +38 -0
- package/dist/esm/theme-utils.js.map +1 -0
- package/dist/esm/time.js +308 -0
- package/dist/esm/time.js.map +1 -0
- package/dist/esm/types.js +3 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils.js +203 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/export-map-html.d.ts +5 -0
- package/dist/export-utils.d.ts +31 -3
- package/dist/extract-dataset-utils.d.ts +79 -0
- package/dist/filter-utils.d.ts +56 -7
- package/dist/index.d.ts +20 -9
- package/dist/jenks.d.ts +5 -0
- package/dist/map-info-utils.d.ts +11 -1
- package/dist/map-style-utils/mapbox-gl-style-editor.d.ts +11 -10
- package/dist/map-style-utils/mapbox-utils.d.ts +29 -1
- package/dist/plot.d.ts +187 -21
- package/dist/projection-utils.d.ts +6 -4
- package/dist/row-data-container.d.ts +19 -0
- package/dist/split-map-utils.d.ts +7 -0
- package/dist/theme-utils.d.ts +8 -0
- package/dist/time.d.ts +3 -3
- package/dist/types.d.ts +2 -0
- package/package.json +33 -26
- package/dist/aggregation.js +0 -84
- package/dist/application-config-types.js +0 -6
- package/dist/application-config.js +0 -113
- package/dist/arrow-data-container.js +0 -398
- package/dist/browser-utils.js +0 -17
- package/dist/color-utils.js +0 -462
- package/dist/data-container-interface.js +0 -6
- package/dist/data-container-utils.js +0 -75
- package/dist/data-row.js +0 -110
- package/dist/data-scale-utils.js +0 -620
- package/dist/data-utils.js +0 -532
- package/dist/dataset-utils.js +0 -330
- package/dist/dom-to-image.js +0 -433
- package/dist/dom-utils.js +0 -349
- package/dist/effect-utils.js +0 -318
- package/dist/export-map-html.js +0 -38
- package/dist/export-utils.js +0 -203
- package/dist/filter-utils.js +0 -1274
- package/dist/format.js +0 -38
- package/dist/gl-utils.js +0 -118
- package/dist/indexed-data-container.js +0 -214
- package/dist/locale-utils.js +0 -39
- package/dist/map-info-utils.js +0 -14
- package/dist/map-style-utils/mapbox-gl-style-editor.js +0 -194
- package/dist/map-style-utils/mapbox-utils.js +0 -107
- package/dist/map-utils.js +0 -72
- package/dist/mapbox-utils.js +0 -19
- package/dist/noop.d.ts +0 -1
- package/dist/noop.js +0 -13
- package/dist/notifications-utils.js +0 -69
- package/dist/observe-dimensions.js +0 -136
- package/dist/plot.js +0 -637
- package/dist/position-utils.js +0 -26
- package/dist/projection-utils.js +0 -91
- package/dist/quick-insertion-sort.js +0 -132
- package/dist/row-data-container.js +0 -206
- package/dist/searcher-utils.d.ts +0 -1
- package/dist/searcher-utils.js +0 -25
- package/dist/slider-scale-utils.js +0 -138
- package/dist/split-map-utils.js +0 -99
- package/dist/strings.js +0 -16
- package/dist/time.js +0 -325
- package/dist/types.js +0 -6
- package/dist/utils.js +0 -224
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-container-interface.js","names":[],"sources":["../../src/data-container-interface.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nimport {ProtoDatasetField} from '@kepler.gl/types';\nimport {DataRow, SharedRowOptions} from './data-row';\nimport * as arrow from 'apache-arrow';\n\n/**\n * Specifies a range of rows of a data container that should be processed.\n */\nexport type RangeOptions = {\n start?: number;\n end?: number;\n};\nexport interface DataContainerInterface {\n /**\n * Updates the data container with new data.\n * @param updateData updated data, e.g. for arrow data container, it's an array of arrow columns or an arrow.Table; for row data container, it's an array of rows.\n */\n update?(updateData: any[] | arrow.Table, options?: Record<string, unknown>): void;\n\n /**\n * Append rows in place. Implemented by row and Arrow containers.\n * @returns false when the rows are rejected (wrong shape or unsupported Arrow type) and the container is unchanged.\n */\n append?(rows: any[][]): boolean;\n\n /**\n * Replace one row in place. Implemented by row and Arrow containers.\n * @returns false when the index or row is rejected and the container is unchanged.\n */\n replace?(index: number, row: any[]): boolean;\n\n /**\n * Remove rows by index in place. Implemented by row and Arrow containers.\n * @returns false when any index is invalid and the container is unchanged.\n */\n remove?(indexes: number[]): boolean;\n\n /**\n * Returns the number of rows in the data container.\n * @returns Number of rows in the data container.\n */\n numRows(): number;\n\n /**\n * Returns the number of columns in the data container.\n * @returns Number of columns in the data container.\n */\n numColumns(): number;\n\n /**\n * Returns the value stored at the specified cell in the data container.\n * @param rowIndex Row index.\n * @param columnIndex Column index.\n * @returns Value at the specified cell.\n */\n valueAt(rowIndex: number, columnIndex: number): any;\n\n /**\n * Returns the row at the specified index.\n * @param rowIndex Row index.\n * @param sharedRow Passed row is filled with contents from the specified index and returned without extra row allocations.\n * @returns A row object.\n */\n row(rowIndex: number, sharedRow?: SharedRowOptions): DataRow;\n\n /**\n * Returns the specified row of the data container represented as an array.\n * @param rowIndex Row index.\n * @returns The specified row represented as an array.\n */\n rowAsArray(rowIndex: number): any[];\n\n /**\n * Returns an iterator to sequentially access all rows in the data container.\n * @param sharedRow Indicates that a temporary row object should be used.\n * If enabled, the returned row object is shared between calls\n * and mustn't be stored without cloning.\n * Passed row is filled with contents of the specified row and returned on each iteration.\n * @returns An iterator to sequentially access all rows in the data container.\n */\n rows(sharedRow?: SharedRowOptions): Generator<DataRow, void, any>;\n\n /**\n * Returns an iterator to sequentially access all values in the specified column of the data container.\n * @param columnIndex Column index.\n * @returns An iterator to all values in the specified column of the data container.\n */\n column(columnIndex: number): Generator<any, void, any>;\n\n /**\n * Returns the column object at the specified index.\n * @param columnIndex Column index.\n * @returns The column object at the specified index.\n */\n getColumn?(columnIndex: number): unknown;\n\n /**\n * Returns the field object at the specified index.\n * @param columnIndex Column index.\n * @returns The field object at the specified index.\n */\n getField?(columnIndex: number): ProtoDatasetField;\n\n /**\n * Returns the underlying data object.\n * @returns Returns the underlying data object.\n */\n getTable?(): unknown;\n\n /**\n * Returns contents of the data container as a two-dimensional array.\n * @returns Data.\n */\n flattenData(): any[][];\n\n /**\n * Generates an array of indices where each index represents a row in the data container.\n * @returns An array of indices.\n */\n getPlainIndex(): number[];\n\n /**\n * Creates a new array populated with the results of calling the provided callback\n * on every row in the data container.\n * @param func Callback that is called for every row of the data container.\n * The callback is called with the following arguments:\n * - row: The current row being processed in the data container.\n * - index: The index of the current row being processed in the data container.\n * @param sharedRow Truthy value indicates that a shared row object should be used.\n * Make sure the func callback doesn't store the row object in such case,\n * and clone the row in case you need to store it.\n * @param options Specify start and end row indices that should be mapped.\n * @returns A new array with each element being the result of the func callback.\n */\n map(\n func: (row: DataRow, index: number) => any,\n sharedRow?: SharedRowOptions,\n options?: RangeOptions\n ): any[];\n\n /**\n * Creates a new array populated with the results of calling the provided callback.\n * The callback is called for every row in the dataset, but only {index} object is passed.\n * @param func Callback that is called for every row of the data container.\n * @param options Specify start and end row indices that should be mapped.\n * @returns A new array with each element being the result of the func callback.\n */\n mapIndex(\n func: ({index}: {index: number}, dataContainer: DataContainerInterface) => any,\n options?: RangeOptions\n ): any[];\n\n /**\n * Returns the value of the first row in the provided data container that satisfies the provided testing function.\n * @param func Function to execute on each value in the array.\n * The function is called with the following arguments:\n * - row: The current row being processed in the data container.\n * - index: The index of the current row being processed in the data container.\n * @param sharedRow Truthy value indicates that a shared row object should be used.\n * Make sure the func callback doesn't store the row object in such case,\n * and clone the row in case you need to store it.\n * @returns First matching row or undefined if no rows satisfy the testing function.\n */\n find(\n func: (row: DataRow, index: number) => any,\n sharedRow?: SharedRowOptions\n ): DataRow | undefined;\n\n /**\n * Executes a reducer function on each element of the data container, resulting in single output value.\n * @param func A function to execute on each row in the data container.\n * The function is called with the following arguments:\n * - acc: The accumulator accumulates func's return values.\n * - row: The current row being processed in the data container.\n * - index: The index of the current row being processed in the data container.\n * @param initialValue A value to use as the first argument to the first call of the func.\n * @param sharedRow Truthy value indicates that a shared row object should be used.\n * Make sure the func callback doesn't store the row object in such case,\n * and clone the row in case you need to store it.\n * @returns The single value that results from the reduction.\n */\n reduce(\n func: (acc: any, row: DataRow, index: number) => any,\n initialValue: any,\n sharedRow?: SharedRowOptions\n ): any;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.DataForm = void 0;
|
|
8
|
+
exports.createDataContainer = createDataContainer;
|
|
9
|
+
exports.createIndexedDataContainer = createIndexedDataContainer;
|
|
10
|
+
exports.getSampleData = getSampleData;
|
|
11
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
+
var _arrowDataContainer = require("./arrow-data-container");
|
|
13
|
+
var _rowDataContainer = require("./row-data-container");
|
|
14
|
+
var _indexedDataContainer = require("./indexed-data-container");
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // SPDX-License-Identifier: MIT
|
|
17
|
+
// Copyright contributors to the kepler.gl project
|
|
18
|
+
var DataForm = exports.DataForm = {
|
|
19
|
+
ROWS_ARRAY: 'ROWS_ARRAY',
|
|
20
|
+
COLS_ARRAY: 'COLS_ARRAY'
|
|
21
|
+
};
|
|
22
|
+
var defaultOptions = {
|
|
23
|
+
inputDataFormat: DataForm.ROWS_ARRAY
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates a data container wrapper for the data.
|
|
28
|
+
* @param data Data.
|
|
29
|
+
* @param options Options.
|
|
30
|
+
* @returns A data container object which is based on data and options.
|
|
31
|
+
*/
|
|
32
|
+
function createDataContainer(data) {
|
|
33
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
|
|
34
|
+
options = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
35
|
+
if (options.inputDataFormat === DataForm.ROWS_ARRAY) {
|
|
36
|
+
return new _rowDataContainer.RowDataContainer({
|
|
37
|
+
rows: data,
|
|
38
|
+
fields: options.fields
|
|
39
|
+
});
|
|
40
|
+
} else if (options.inputDataFormat === DataForm.COLS_ARRAY) {
|
|
41
|
+
return new _arrowDataContainer.ArrowDataContainer({
|
|
42
|
+
cols: data,
|
|
43
|
+
fields: options.fields,
|
|
44
|
+
arrowTable: options.arrowTable,
|
|
45
|
+
geoArrowBinaryData: options.geoArrowBinaryData
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
throw Error('Failed to create a data container: not implemented format');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Creates a data container wrapper around another data container.
|
|
53
|
+
* @param dataContainer Parent data container.
|
|
54
|
+
* @param indices An array of row indices in the parent data container.
|
|
55
|
+
*/
|
|
56
|
+
function createIndexedDataContainer(dataContainer, indices) {
|
|
57
|
+
return new _indexedDataContainer.IndexedDataContainer(dataContainer, indices);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Get a sample of rows from a data container.
|
|
62
|
+
* @param dataContainer Data container to get samples from.
|
|
63
|
+
* @param sampleSize Max number of samples.
|
|
64
|
+
* @returns A data container which contains samples from the original data container.
|
|
65
|
+
*/
|
|
66
|
+
function getSampleData(dataContainer) {
|
|
67
|
+
var sampleSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
68
|
+
var numberOfRows = dataContainer.numRows();
|
|
69
|
+
var sampleStep = Math.max(Math.floor(numberOfRows / sampleSize), 1);
|
|
70
|
+
var indices = [];
|
|
71
|
+
for (var i = 0; i < numberOfRows; i += sampleStep) {
|
|
72
|
+
indices.push(i);
|
|
73
|
+
}
|
|
74
|
+
return createIndexedDataContainer(dataContainer, indices);
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=data-container-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-container-utils.js","names":["_arrowDataContainer","require","_rowDataContainer","_indexedDataContainer","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","DataForm","exports","ROWS_ARRAY","COLS_ARRAY","defaultOptions","inputDataFormat","createDataContainer","data","options","undefined","RowDataContainer","rows","fields","ArrowDataContainer","cols","arrowTable","geoArrowBinaryData","Error","createIndexedDataContainer","dataContainer","indices","IndexedDataContainer","getSampleData","sampleSize","numberOfRows","numRows","sampleStep","Math","max","floor","i"],"sources":["../../src/data-container-utils.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nimport {ArrowDataContainer} from './arrow-data-container';\nimport {RowDataContainer} from './row-data-container';\nimport {IndexedDataContainer} from './indexed-data-container';\n\nimport {DataContainerInterface} from './data-container-interface';\nimport {GeoArrowBinaryData, ProtoDatasetField} from '@kepler.gl/types';\nimport * as arrow from 'apache-arrow';\n\nexport type DataContainerOptions = {\n inputDataFormat?: string; // one of DataForm\n fields?: ProtoDatasetField[];\n arrowTable?: arrow.Table;\n geoArrowBinaryData?: GeoArrowBinaryData;\n};\n\nexport const DataForm = {\n ROWS_ARRAY: 'ROWS_ARRAY',\n COLS_ARRAY: 'COLS_ARRAY'\n};\n\nconst defaultOptions: DataContainerOptions = {\n inputDataFormat: DataForm.ROWS_ARRAY\n};\n\n/**\n * Creates a data container wrapper for the data.\n * @param data Data.\n * @param options Options.\n * @returns A data container object which is based on data and options.\n */\nexport function createDataContainer(\n data: any[],\n options: DataContainerOptions = defaultOptions\n): DataContainerInterface {\n options = {...defaultOptions, ...options};\n\n if (options.inputDataFormat === DataForm.ROWS_ARRAY) {\n return new RowDataContainer({rows: data, fields: options.fields});\n } else if (options.inputDataFormat === DataForm.COLS_ARRAY) {\n return new ArrowDataContainer({\n cols: data,\n fields: options.fields,\n arrowTable: options.arrowTable,\n geoArrowBinaryData: options.geoArrowBinaryData\n });\n }\n\n throw Error('Failed to create a data container: not implemented format');\n}\n\n/**\n * Creates a data container wrapper around another data container.\n * @param dataContainer Parent data container.\n * @param indices An array of row indices in the parent data container.\n */\nexport function createIndexedDataContainer(\n dataContainer: DataContainerInterface,\n indices: number[]\n): DataContainerInterface {\n return new IndexedDataContainer(dataContainer, indices);\n}\n\n/**\n * Get a sample of rows from a data container.\n * @param dataContainer Data container to get samples from.\n * @param sampleSize Max number of samples.\n * @returns A data container which contains samples from the original data container.\n */\nexport function getSampleData(\n dataContainer: DataContainerInterface,\n sampleSize = 500\n): DataContainerInterface {\n const numberOfRows = dataContainer.numRows();\n const sampleStep = Math.max(Math.floor(numberOfRows / sampleSize), 1);\n\n const indices: number[] = [];\n for (let i = 0; i < numberOfRows; i += sampleStep) {\n indices.push(i);\n }\n\n return createIndexedDataContainer(dataContainer, indices);\n}\n"],"mappings":";;;;;;;;;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AAA8D,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAA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ACA;AACA;AACO,SAASC,0BAA0BA,CACxCC,aAAqC,EACrCC,OAAiB,EACO;EACxB,OAAO,IAAIC,0CAAoB,CAACF,aAAa,EAAEC,OAAO,CAAC;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,aAAaA,CAC3BH,aAAqC,EAEb;EAAA,IADxBI,UAAU,GAAA9B,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAgB,SAAA,GAAAhB,SAAA,MAAG,GAAG;EAEhB,IAAM+B,YAAY,GAAGL,aAAa,CAACM,OAAO,CAAC,CAAC;EAC5C,IAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,KAAK,CAACL,YAAY,GAAGD,UAAU,CAAC,EAAE,CAAC,CAAC;EAErE,IAAMH,OAAiB,GAAG,EAAE;EAC5B,KAAK,IAAIU,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGN,YAAY,EAAEM,CAAC,IAAIJ,UAAU,EAAE;IACjDN,OAAO,CAAC9B,IAAI,CAACwC,CAAC,CAAC;EACjB;EAEA,OAAOZ,0BAA0B,CAACC,aAAa,EAAEC,OAAO,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.DataRow = void 0;
|
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
// SPDX-License-Identifier: MIT
|
|
12
|
+
// Copyright contributors to the kepler.gl project
|
|
13
|
+
/**
|
|
14
|
+
* Setting for shared row optimization.
|
|
15
|
+
* - False/undefined indicates that unique row objects should be used (default).
|
|
16
|
+
* - True indicates that a single temporary row object should be created and used without extra allocations.
|
|
17
|
+
* - A DataRow object indicates that the row should be used as a temporary shared row.
|
|
18
|
+
* When used, the content of the shared row isn't preserved between calls.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Return type for createSharedRow:
|
|
22
|
+
* - DataRow object that should be used as shared row.
|
|
23
|
+
* - Falsy values indicate that shared row object shouldn't be used.
|
|
24
|
+
*/
|
|
25
|
+
var DataRow = exports.DataRow = /*#__PURE__*/function () {
|
|
26
|
+
/**
|
|
27
|
+
* Creates new DataRow.
|
|
28
|
+
* @param dataContainer Data container where data is stored. Can be initialized with null for shared rows.
|
|
29
|
+
* @param rowIndex Index of a row in the data container.
|
|
30
|
+
*/
|
|
31
|
+
function DataRow(dataContainer, rowIndex) {
|
|
32
|
+
(0, _classCallCheck2["default"])(this, DataRow);
|
|
33
|
+
(0, _defineProperty2["default"])(this, "_dataContainer", void 0);
|
|
34
|
+
(0, _defineProperty2["default"])(this, "_rowIndex", void 0);
|
|
35
|
+
this._dataContainer = dataContainer;
|
|
36
|
+
this._rowIndex = rowIndex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Conditionally creates a DataRow object.
|
|
41
|
+
* @param sharedRowDesc Accepts forllowing options:
|
|
42
|
+
* - true indicates that new DataRow should be created.
|
|
43
|
+
* - falsy value or a DataRow object is passed through without any change.
|
|
44
|
+
* @returns A new DataRow object or unchanged input argument.
|
|
45
|
+
*/
|
|
46
|
+
return (0, _createClass2["default"])(DataRow, [{
|
|
47
|
+
key: "valueAt",
|
|
48
|
+
value:
|
|
49
|
+
/**
|
|
50
|
+
* Returns the value stored at the specified index in the row.
|
|
51
|
+
* @param columnIndex Index of the requested field in the row.
|
|
52
|
+
* @returns Value at the index.
|
|
53
|
+
*/
|
|
54
|
+
function valueAt(columnIndex) {
|
|
55
|
+
var _this$_dataContainer;
|
|
56
|
+
return (_this$_dataContainer = this._dataContainer) === null || _this$_dataContainer === void 0 ? void 0 : _this$_dataContainer.valueAt(this._rowIndex, columnIndex);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the row represented as an array.
|
|
61
|
+
* @returns The row represented as an array.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "values",
|
|
65
|
+
value: function values() {
|
|
66
|
+
return this._dataContainer ? this._dataContainer.rowAsArray(this._rowIndex) : [];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Setup a row object. The method is used by shared rows to prevent excessive allocations.
|
|
71
|
+
* @param dataContainer Data container.
|
|
72
|
+
* @param rowIndex Index of a row in the data container.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "setSource",
|
|
76
|
+
value: function setSource(dataContainer, rowIndex) {
|
|
77
|
+
this._dataContainer = dataContainer;
|
|
78
|
+
this._rowIndex = rowIndex;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new array populated with the results of calling the provided function
|
|
83
|
+
* on every element of the row.
|
|
84
|
+
* @param handler The callback is called with the following arguments:
|
|
85
|
+
* - elem: The current element being processed in the row.
|
|
86
|
+
* - index: The index of the current element being processed in the row.
|
|
87
|
+
* @returns A new array with each element being the result of the func callback.
|
|
88
|
+
*/
|
|
89
|
+
}, {
|
|
90
|
+
key: "map",
|
|
91
|
+
value: function map(handler) {
|
|
92
|
+
var _this$_dataContainer2;
|
|
93
|
+
var numColumns = ((_this$_dataContainer2 = this._dataContainer) === null || _this$_dataContainer2 === void 0 ? void 0 : _this$_dataContainer2.numColumns()) || 0;
|
|
94
|
+
var out = [];
|
|
95
|
+
for (var column = 0; column < numColumns; ++column) {
|
|
96
|
+
out[column] = handler(this.valueAt(column), column);
|
|
97
|
+
}
|
|
98
|
+
return out;
|
|
99
|
+
}
|
|
100
|
+
}], [{
|
|
101
|
+
key: "createSharedRow",
|
|
102
|
+
value: function createSharedRow(sharedRowDesc) {
|
|
103
|
+
if (sharedRowDesc === true) {
|
|
104
|
+
return new DataRow(null, 0);
|
|
105
|
+
}
|
|
106
|
+
return sharedRowDesc;
|
|
107
|
+
}
|
|
108
|
+
}]);
|
|
109
|
+
}();
|
|
110
|
+
//# sourceMappingURL=data-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-row.js","names":["DataRow","exports","dataContainer","rowIndex","_classCallCheck2","_defineProperty2","_dataContainer","_rowIndex","_createClass2","key","value","valueAt","columnIndex","_this$_dataContainer","values","rowAsArray","setSource","map","handler","_this$_dataContainer2","numColumns","out","column","createSharedRow","sharedRowDesc"],"sources":["../../src/data-row.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nimport {DataContainerInterface} from './data-container-interface';\n\n/**\n * Setting for shared row optimization.\n * - False/undefined indicates that unique row objects should be used (default).\n * - True indicates that a single temporary row object should be created and used without extra allocations.\n * - A DataRow object indicates that the row should be used as a temporary shared row.\n * When used, the content of the shared row isn't preserved between calls.\n */\nexport type SharedRowOptions = DataRow | boolean | undefined;\n/**\n * Return type for createSharedRow:\n * - DataRow object that should be used as shared row.\n * - Falsy values indicate that shared row object shouldn't be used.\n */\nexport type SharedRowOptionsResult = DataRow | false | undefined;\n\nexport class DataRow {\n _dataContainer: DataContainerInterface | null;\n\n _rowIndex: number;\n\n /**\n * Creates new DataRow.\n * @param dataContainer Data container where data is stored. Can be initialized with null for shared rows.\n * @param rowIndex Index of a row in the data container.\n */\n constructor(dataContainer: DataContainerInterface | null, rowIndex: number) {\n this._dataContainer = dataContainer;\n this._rowIndex = rowIndex;\n }\n\n /**\n * Conditionally creates a DataRow object.\n * @param sharedRowDesc Accepts forllowing options:\n * - true indicates that new DataRow should be created.\n * - falsy value or a DataRow object is passed through without any change.\n * @returns A new DataRow object or unchanged input argument.\n */\n static createSharedRow(sharedRowDesc: SharedRowOptions): SharedRowOptionsResult {\n if (sharedRowDesc === true) {\n return new DataRow(null, 0);\n }\n return sharedRowDesc;\n }\n\n /**\n * Returns the value stored at the specified index in the row.\n * @param columnIndex Index of the requested field in the row.\n * @returns Value at the index.\n */\n valueAt(columnIndex: number): any {\n return this._dataContainer?.valueAt(this._rowIndex, columnIndex);\n }\n\n /**\n * Returns the row represented as an array.\n * @returns The row represented as an array.\n */\n values(): any[] {\n return this._dataContainer ? this._dataContainer.rowAsArray(this._rowIndex) : [];\n }\n\n /**\n * Setup a row object. The method is used by shared rows to prevent excessive allocations.\n * @param dataContainer Data container.\n * @param rowIndex Index of a row in the data container.\n */\n setSource(dataContainer: DataContainerInterface, rowIndex: number): void {\n this._dataContainer = dataContainer;\n this._rowIndex = rowIndex;\n }\n\n /**\n * Creates a new array populated with the results of calling the provided function\n * on every element of the row.\n * @param handler The callback is called with the following arguments:\n * - elem: The current element being processed in the row.\n * - index: The index of the current element being processed in the row.\n * @returns A new array with each element being the result of the func callback.\n */\n map(handler: (elem: any, index: number) => any): any[] {\n const numColumns = this._dataContainer?.numColumns() || 0;\n const out: any[] = [];\n for (let column = 0; column < numColumns; ++column) {\n out[column] = handler(this.valueAt(column), column);\n }\n return out;\n }\n}\n"],"mappings":";;;;;;;;;;AAAA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAJA,IAOaA,OAAO,GAAAC,OAAA,CAAAD,OAAA;EAKlB;AACF;AACA;AACA;AACA;EACE,SAAAA,QAAYE,aAA4C,EAAEC,QAAgB,EAAE;IAAA,IAAAC,gBAAA,mBAAAJ,OAAA;IAAA,IAAAK,gBAAA;IAAA,IAAAA,gBAAA;IAC1E,IAAI,CAACC,cAAc,GAAGJ,aAAa;IACnC,IAAI,CAACK,SAAS,GAAGJ,QAAQ;EAC3B;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE,WAAAK,aAAA,aAAAR,OAAA;IA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