@kepler.gl/deckgl-arrow-layers 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/cjs/constants.js +15 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/index.js +27 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/layers/geo-arrow-arc-layer.js +145 -0
- package/dist/cjs/layers/geo-arrow-arc-layer.js.map +1 -0
- package/dist/cjs/layers/geo-arrow-scatterplot-layer.js +270 -0
- package/dist/cjs/layers/geo-arrow-scatterplot-layer.js.map +1 -0
- package/dist/cjs/layers/geo-arrow-text-layer.js +176 -0
- package/dist/cjs/layers/geo-arrow-text-layer.js.map +1 -0
- package/dist/cjs/types.js +6 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/utils/picking.js +54 -0
- package/dist/cjs/utils/picking.js.map +1 -0
- package/dist/cjs/utils/utils.js +271 -0
- package/dist/cjs/utils/utils.js.map +1 -0
- package/dist/cjs/utils/validate.js +103 -0
- package/dist/cjs/utils/validate.js.map +1 -0
- package/dist/esm/constants.js +9 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/layers/geo-arrow-arc-layer.js +141 -0
- package/dist/esm/layers/geo-arrow-arc-layer.js.map +1 -0
- package/dist/esm/layers/geo-arrow-scatterplot-layer.js +266 -0
- package/dist/esm/layers/geo-arrow-scatterplot-layer.js.map +1 -0
- package/dist/esm/layers/geo-arrow-text-layer.js +172 -0
- package/dist/esm/layers/geo-arrow-text-layer.js.map +1 -0
- package/dist/esm/types.js +3 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils/picking.js +46 -0
- package/dist/esm/utils/picking.js.map +1 -0
- package/dist/esm/utils/utils.js +246 -0
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/esm/utils/validate.js +95 -0
- package/dist/esm/utils/validate.js.map +1 -0
- package/dist/layers/geo-arrow-scatterplot-layer.d.ts +15 -2
- package/dist/types.d.ts +3 -0
- package/dist/utils/utils.d.ts +1 -11
- package/package.json +22 -15
- package/dist/constants.js +0 -15
- package/dist/index.js +0 -27
- package/dist/layers/geo-arrow-arc-layer.js +0 -146
- package/dist/layers/geo-arrow-scatterplot-layer.js +0 -223
- package/dist/layers/geo-arrow-text-layer.js +0 -174
- package/dist/types.js +0 -6
- package/dist/utils/picking.js +0 -54
- package/dist/utils/utils.js +0 -313
- package/dist/utils/validate.js +0 -104
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_COLOR = void 0;
|
|
7
|
+
// SPDX-License-Identifier: MIT
|
|
8
|
+
// Copyright contributors to the kepler.gl project
|
|
9
|
+
|
|
10
|
+
// deck.gl-community
|
|
11
|
+
// SPDX-License-Identifier: MIT
|
|
12
|
+
// Copyright (c) vis.gl contributors
|
|
13
|
+
|
|
14
|
+
var DEFAULT_COLOR = exports.DEFAULT_COLOR = [0, 0, 0, 255];
|
|
15
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","names":["DEFAULT_COLOR","exports"],"sources":["../../src/constants.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\n// deck.gl-community\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nexport const DEFAULT_COLOR: [number, number, number, number] = [0, 0, 0, 255];\n"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAEO,IAAMA,aAA+C,GAAAC,OAAA,CAAAD,aAAA,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "GeoArrowArcLayer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _geoArrowArcLayer.GeoArrowArcLayer;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "GeoArrowScatterplotLayer", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _geoArrowScatterplotLayer.GeoArrowScatterplotLayer;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "GeoArrowTextLayer", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _geoArrowTextLayer.GeoArrowTextLayer;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _geoArrowScatterplotLayer = require("./layers/geo-arrow-scatterplot-layer");
|
|
25
|
+
var _geoArrowTextLayer = require("./layers/geo-arrow-text-layer");
|
|
26
|
+
var _geoArrowArcLayer = require("./layers/geo-arrow-arc-layer");
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_geoArrowScatterplotLayer","require","_geoArrowTextLayer","_geoArrowArcLayer"],"sources":["../../src/index.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nexport {GeoArrowScatterplotLayer} from './layers/geo-arrow-scatterplot-layer';\nexport {GeoArrowTextLayer} from './layers/geo-arrow-text-layer';\nexport {GeoArrowArcLayer} from './layers/geo-arrow-arc-layer';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.GeoArrowArcLayer = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
+
var _core = require("@deck.gl/core");
|
|
18
|
+
var _layers = require("@deck.gl/layers");
|
|
19
|
+
var _geoarrowJs = _interopRequireWildcard(require("@geoarrow/geoarrow-js"));
|
|
20
|
+
var ga = _geoarrowJs;
|
|
21
|
+
var _utils = require("../utils/utils");
|
|
22
|
+
var _picking = require("../utils/picking");
|
|
23
|
+
var _validate = require("../utils/validate");
|
|
24
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
+
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; }
|
|
28
|
+
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
|
|
29
|
+
// Copyright contributors to the kepler.gl project
|
|
30
|
+
// deck.gl-community
|
|
31
|
+
// SPDX-License-Identifier: MIT
|
|
32
|
+
// Copyright (c) vis.gl contributors
|
|
33
|
+
/** All properties supported by GeoArrowArcLayer */
|
|
34
|
+
|
|
35
|
+
/** Properties added by GeoArrowArcLayer */
|
|
36
|
+
|
|
37
|
+
// Remove data from the upstream default props
|
|
38
|
+
var _ArcLayer$defaultProp = _layers.ArcLayer.defaultProps,
|
|
39
|
+
_data = _ArcLayer$defaultProp.data,
|
|
40
|
+
_getSourcePosition = _ArcLayer$defaultProp.getSourcePosition,
|
|
41
|
+
_getTargetPosition = _ArcLayer$defaultProp.getTargetPosition,
|
|
42
|
+
_defaultProps = (0, _objectWithoutProperties2["default"])(_ArcLayer$defaultProp, ["data", "getSourcePosition", "getTargetPosition"]);
|
|
43
|
+
|
|
44
|
+
// Default props added by us
|
|
45
|
+
var ourDefaultProps = {
|
|
46
|
+
_validate: true
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// @ts-expect-error
|
|
50
|
+
var defaultProps = _objectSpread(_objectSpread({}, _defaultProps), ourDefaultProps);
|
|
51
|
+
var GeoArrowArcLayer = exports.GeoArrowArcLayer = /*#__PURE__*/function (_CompositeLayer) {
|
|
52
|
+
function GeoArrowArcLayer() {
|
|
53
|
+
(0, _classCallCheck2["default"])(this, GeoArrowArcLayer);
|
|
54
|
+
return _callSuper(this, GeoArrowArcLayer, arguments);
|
|
55
|
+
}
|
|
56
|
+
(0, _inherits2["default"])(GeoArrowArcLayer, _CompositeLayer);
|
|
57
|
+
return (0, _createClass2["default"])(GeoArrowArcLayer, [{
|
|
58
|
+
key: "getPickingInfo",
|
|
59
|
+
value: function getPickingInfo(params) {
|
|
60
|
+
return (0, _picking.getPickingInfo)(params, this.props.data);
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "renderLayers",
|
|
64
|
+
value: function renderLayers() {
|
|
65
|
+
return this._renderLayersPoint();
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "_renderLayersPoint",
|
|
69
|
+
value: function _renderLayersPoint() {
|
|
70
|
+
var _this$props = this.props,
|
|
71
|
+
table = _this$props.data,
|
|
72
|
+
sourcePosition = _this$props.getSourcePosition,
|
|
73
|
+
targetPosition = _this$props.getTargetPosition;
|
|
74
|
+
if (this.props._validate) {
|
|
75
|
+
(0, _validate.validateAccessors)(this.props, table);
|
|
76
|
+
|
|
77
|
+
// Note: below we iterate over table batches anyways, so this layer won't
|
|
78
|
+
// work as-is if data/table is null
|
|
79
|
+
(0, _utils.assert)(ga.vector.isPointVector(sourcePosition));
|
|
80
|
+
(0, _utils.assert)(ga.vector.isPointVector(targetPosition));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Exclude manually-set accessors
|
|
84
|
+
var _extractAccessorsFrom = (0, _utils.extractAccessorsFromProps)(this.props, ['getSourcePosition', 'getTargetPosition']),
|
|
85
|
+
_extractAccessorsFrom2 = (0, _slicedToArray2["default"])(_extractAccessorsFrom, 2),
|
|
86
|
+
accessors = _extractAccessorsFrom2[0],
|
|
87
|
+
otherProps = _extractAccessorsFrom2[1];
|
|
88
|
+
var tableOffsets = (0, _picking.computeChunkOffsets)(table.data);
|
|
89
|
+
var layers = [];
|
|
90
|
+
for (var recordBatchIdx = 0; recordBatchIdx < table.batches.length; recordBatchIdx++) {
|
|
91
|
+
var sourceData = sourcePosition.data[recordBatchIdx];
|
|
92
|
+
var sourceValues = _geoarrowJs.child.getPointChild(sourceData).values;
|
|
93
|
+
var targetData = targetPosition.data[recordBatchIdx];
|
|
94
|
+
var targetValues = _geoarrowJs.child.getPointChild(targetData).values;
|
|
95
|
+
|
|
96
|
+
// @ts-expect-error how to properly retrieve batch offset?
|
|
97
|
+
var batchOffset = sourcePosition._offsets[recordBatchIdx];
|
|
98
|
+
var props = _objectSpread(_objectSpread(_objectSpread({}, ourDefaultProps), otherProps), {}, {
|
|
99
|
+
// used for picking purposes
|
|
100
|
+
recordBatchIdx: recordBatchIdx,
|
|
101
|
+
tableOffsets: tableOffsets,
|
|
102
|
+
id: "".concat(this.props.id, "-geoarrow-arc-").concat(recordBatchIdx),
|
|
103
|
+
data: {
|
|
104
|
+
// @ts-expect-error passed through to enable use by function accessors
|
|
105
|
+
data: table.batches[recordBatchIdx],
|
|
106
|
+
length: sourceData.length,
|
|
107
|
+
attributes: {
|
|
108
|
+
getSourcePosition: {
|
|
109
|
+
value: sourceValues,
|
|
110
|
+
size: sourceData.type.listSize
|
|
111
|
+
},
|
|
112
|
+
getTargetPosition: {
|
|
113
|
+
value: targetValues,
|
|
114
|
+
size: targetData.type.listSize
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
for (var _i = 0, _Object$entries = Object.entries(accessors); _i < _Object$entries.length; _i++) {
|
|
120
|
+
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
121
|
+
propName = _Object$entries$_i[0],
|
|
122
|
+
propInput = _Object$entries$_i[1];
|
|
123
|
+
(0, _utils.assignAccessor)({
|
|
124
|
+
props: props,
|
|
125
|
+
propName: propName,
|
|
126
|
+
propInput: propInput,
|
|
127
|
+
chunkIdx: recordBatchIdx,
|
|
128
|
+
batchOffset: batchOffset
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
var SubLayerClass = this.getSubLayerClass('geo-arrow-arc-layer', _layers.ArcLayer);
|
|
132
|
+
var layer = new SubLayerClass(_objectSpread(_objectSpread({}, this.getSubLayerProps(props)), {}, {
|
|
133
|
+
// preserve binded accessors, as they are overwriten back by pass-through accessors from extensions
|
|
134
|
+
getFiltered: props.getFiltered,
|
|
135
|
+
getFilterValue: props.getFilterValue
|
|
136
|
+
}));
|
|
137
|
+
layers.push(layer);
|
|
138
|
+
}
|
|
139
|
+
return layers;
|
|
140
|
+
}
|
|
141
|
+
}]);
|
|
142
|
+
}(_core.CompositeLayer);
|
|
143
|
+
(0, _defineProperty2["default"])(GeoArrowArcLayer, "defaultProps", defaultProps);
|
|
144
|
+
(0, _defineProperty2["default"])(GeoArrowArcLayer, "layerName", 'GeoArrowArcLayer');
|
|
145
|
+
//# sourceMappingURL=geo-arrow-arc-layer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-arrow-arc-layer.js","names":["_core","require","_layers","_geoarrowJs","_interopRequireWildcard","ga","_utils","_picking","_validate","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","_ArcLayer$defaultProp","ArcLayer","defaultProps","_data","data","_getSourcePosition","getSourcePosition","_getTargetPosition","getTargetPosition","_defaultProps","_objectWithoutProperties2","ourDefaultProps","GeoArrowArcLayer","exports","_CompositeLayer","_classCallCheck2","_inherits2","_createClass2","key","value","getPickingInfo","params","props","renderLayers","_renderLayersPoint","_this$props","table","sourcePosition","targetPosition","validateAccessors","assert","vector","isPointVector","_extractAccessorsFrom","extractAccessorsFromProps","_extractAccessorsFrom2","_slicedToArray2","accessors","otherProps","tableOffsets","computeChunkOffsets","layers","recordBatchIdx","batches","sourceData","sourceValues","child","getPointChild","values","targetData","targetValues","batchOffset","_offsets","id","concat","attributes","size","type","listSize","_i","_Object$entries","entries","_Object$entries$_i","propName","propInput","assignAccessor","chunkIdx","SubLayerClass","getSubLayerClass","layer","getSubLayerProps","getFiltered","getFilterValue","CompositeLayer"],"sources":["../../../src/layers/geo-arrow-arc-layer.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\n// deck.gl-community\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport {\n CompositeLayer,\n CompositeLayerProps,\n DefaultProps,\n GetPickingInfoParams,\n Layer,\n LayersList\n} from '@deck.gl/core';\nimport {ArcLayer} from '@deck.gl/layers';\nimport type {ArcLayerProps} from '@deck.gl/layers';\nimport * as arrow from 'apache-arrow';\nimport * as ga from '@geoarrow/geoarrow-js';\nimport {assignAccessor, extractAccessorsFromProps} from '../utils/utils';\nimport {child} from '@geoarrow/geoarrow-js';\nimport {GeoArrowExtraPickingProps, computeChunkOffsets, getPickingInfo} from '../utils/picking';\nimport {ColorAccessor, FloatAccessor, GeoArrowPickingInfo, ExtensionProps} from '../types';\nimport {assert} from '../utils/utils';\nimport {validateAccessors} from '../utils/validate';\n\n/** All properties supported by GeoArrowArcLayer */\nexport type GeoArrowArcLayerProps = Omit<\n ArcLayerProps<any>,\n | 'data'\n | 'getSourcePosition'\n | 'getTargetPosition'\n | 'getSourceColor'\n | 'getTargetColor'\n | 'getWidth'\n | 'getHeight'\n | 'getTilt'\n> &\n _GeoArrowArcLayerProps &\n CompositeLayerProps;\n\n/** Properties added by GeoArrowArcLayer */\ntype _GeoArrowArcLayerProps = {\n data: arrow.Table;\n\n /**\n * Method called to retrieve the source position of each object.\n */\n getSourcePosition: ga.vector.PointVector;\n\n /**\n * Method called to retrieve the target position of each object.\n */\n getTargetPosition: ga.vector.PointVector;\n\n /**\n * The rgba color is in the format of `[r, g, b, [a]]`.\n * @default [0, 0, 0, 255]\n */\n getSourceColor?: ColorAccessor;\n\n /**\n * The rgba color is in the format of `[r, g, b, [a]]`.\n * @default [0, 0, 0, 255]\n */\n getTargetColor?: ColorAccessor;\n\n /**\n * The line width of each object, in units specified by `widthUnits`.\n * @default 1\n */\n getWidth?: FloatAccessor;\n\n /**\n * Multiplier of layer height. `0` will make the layer flat.\n * @default 1\n */\n getHeight?: FloatAccessor;\n\n /**\n * Use to tilt the arc to the side if you have multiple arcs with the same source and target positions.\n * @default 0\n */\n getTilt?: FloatAccessor;\n\n /**\n * If `true`, validate the arrays provided (e.g. chunk lengths)\n * @default true\n */\n _validate?: boolean;\n};\n\n// Remove data from the upstream default props\nconst {\n data: _data,\n getSourcePosition: _getSourcePosition,\n getTargetPosition: _getTargetPosition,\n ..._defaultProps\n} = ArcLayer.defaultProps;\n\n// Default props added by us\nconst ourDefaultProps = {\n _validate: true\n};\n\n// @ts-expect-error\nconst defaultProps: DefaultProps<GeoArrowArcLayerProps> = {\n ..._defaultProps,\n ...ourDefaultProps\n};\n\nexport class GeoArrowArcLayer<ExtraProps extends object = object> extends CompositeLayer<\n GeoArrowArcLayerProps & ExtraProps\n> {\n static defaultProps = defaultProps;\n static layerName = 'GeoArrowArcLayer';\n\n getPickingInfo(\n params: GetPickingInfoParams & {\n sourceLayer: {props: GeoArrowExtraPickingProps};\n }\n ): GeoArrowPickingInfo {\n return getPickingInfo(params, this.props.data);\n }\n\n renderLayers(): Layer<object> | LayersList | null {\n return this._renderLayersPoint();\n }\n\n _renderLayersPoint(): Layer<object> | LayersList | null {\n const {\n data: table,\n getSourcePosition: sourcePosition,\n getTargetPosition: targetPosition\n } = this.props;\n\n if (this.props._validate) {\n validateAccessors(this.props, table);\n\n // Note: below we iterate over table batches anyways, so this layer won't\n // work as-is if data/table is null\n assert(ga.vector.isPointVector(sourcePosition));\n assert(ga.vector.isPointVector(targetPosition));\n }\n\n // Exclude manually-set accessors\n const [accessors, otherProps] = extractAccessorsFromProps(this.props, [\n 'getSourcePosition',\n 'getTargetPosition'\n ]);\n const tableOffsets = computeChunkOffsets(table.data);\n\n const layers: ArcLayer<any>[] = [];\n for (let recordBatchIdx = 0; recordBatchIdx < table.batches.length; recordBatchIdx++) {\n const sourceData = sourcePosition.data[recordBatchIdx];\n const sourceValues = child.getPointChild(sourceData).values;\n const targetData = targetPosition.data[recordBatchIdx];\n const targetValues = child.getPointChild(targetData).values;\n\n // @ts-expect-error how to properly retrieve batch offset?\n const batchOffset = sourcePosition._offsets[recordBatchIdx];\n\n const props: ArcLayerProps<any> & ExtensionProps = {\n // Note: because this is a composite layer and not doing the rendering\n // itself, we still have to pass in our defaultProps\n ...ourDefaultProps,\n ...otherProps,\n\n // used for picking purposes\n recordBatchIdx,\n tableOffsets,\n\n id: `${this.props.id}-geoarrow-arc-${recordBatchIdx}`,\n data: {\n // @ts-expect-error passed through to enable use by function accessors\n data: table.batches[recordBatchIdx],\n length: sourceData.length,\n attributes: {\n getSourcePosition: {\n value: sourceValues,\n size: sourceData.type.listSize\n },\n getTargetPosition: {\n value: targetValues,\n size: targetData.type.listSize\n }\n }\n }\n };\n\n for (const [propName, propInput] of Object.entries(accessors)) {\n assignAccessor({\n props,\n propName,\n propInput,\n chunkIdx: recordBatchIdx,\n batchOffset\n });\n }\n\n const SubLayerClass = this.getSubLayerClass('geo-arrow-arc-layer', ArcLayer);\n const layer = new SubLayerClass({\n ...this.getSubLayerProps(props),\n // preserve binded accessors, as they are overwriten back by pass-through accessors from extensions\n getFiltered: props.getFiltered,\n getFilterValue: props.getFilterValue\n });\n layers.push(layer);\n }\n\n return layers;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAOA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,WAAA,GAAAC,uBAAA,CAAAH,OAAA;AAA4C,IAAAI,EAAA,GAAAF,WAAA;AAC5C,IAAAG,MAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AAGA,IAAAO,SAAA,GAAAP,OAAA;AAAoD,SAAAG,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,CAAA,gBAAAU,OAAA,CAAAV,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IA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EAAA,GAAAC,eAAA,CAAAjE,MAAA,EAAAgE,EAAA,IAAE;UAA1D,IAAAG,kBAAA,OAAA1B,eAAA,aAAAwB,eAAA,CAAAD,EAAA;YAAOI,QAAQ,GAAAD,kBAAA;YAAEE,SAAS,GAAAF,kBAAA;UAC7B,IAAAG,qBAAc,EAAC;YACb3C,KAAK,EAALA,KAAK;YACLyC,QAAQ,EAARA,QAAQ;YACRC,SAAS,EAATA,SAAS;YACTE,QAAQ,EAAExB,cAAc;YACxBS,WAAW,EAAXA;UACF,CAAC,CAAC;QACJ;QAEA,IAAMgB,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,qBAAqB,EAAEnE,gBAAQ,CAAC;QAC5E,IAAMoE,KAAK,GAAG,IAAIF,aAAa,CAAA1E,aAAA,CAAAA,aAAA,KAC1B,IAAI,CAAC6E,gBAAgB,CAAChD,KAAK,CAAC;UAC/B;UACAiD,WAAW,EAAEjD,KAAK,CAACiD,WAAW;UAC9BC,cAAc,EAAElD,KAAK,CAACkD;QAAc,EACrC,CAAC;QACF/B,MAAM,CAACjD,IAAI,CAAC6E,KAAK,CAAC;MACpB;MAEA,OAAO5B,MAAM;IACf;EAAC;AAAA,EApGuEgC,oBAAc;AAAA,IAAA5E,gBAAA,aAA3Ee,gBAAgB,kBAGLV,YAAY;AAAA,IAAAL,gBAAA,aAHvBe,gBAAgB,eAIR,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.GeoArrowScatterplotLayer = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
15
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
18
|
+
var _core = require("@deck.gl/core");
|
|
19
|
+
var _layers = require("@deck.gl/layers");
|
|
20
|
+
var ga = _interopRequireWildcard(require("@geoarrow/geoarrow-js"));
|
|
21
|
+
var _constants = require("@kepler.gl/constants");
|
|
22
|
+
var _utils = require("../utils/utils");
|
|
23
|
+
var _picking = require("../utils/picking");
|
|
24
|
+
var _validate = require("../utils/validate");
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
26
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
|
+
function _superPropGet(t, o, e, r) { var p = (0, _get2["default"])((0, _getPrototypeOf2["default"])(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
29
|
+
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; }
|
|
30
|
+
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
|
|
31
|
+
// Copyright contributors to the kepler.gl project
|
|
32
|
+
// deck.gl-community
|
|
33
|
+
// SPDX-License-Identifier: MIT
|
|
34
|
+
// Copyright (c) vis.gl contributors
|
|
35
|
+
/** All properties supported by GeoArrowScatterplotLayer */
|
|
36
|
+
|
|
37
|
+
/** Properties added by GeoArrowScatterplotLayer */
|
|
38
|
+
|
|
39
|
+
// Remove data and getPosition from the upstream default props
|
|
40
|
+
var _ScatterplotLayer$def = _layers.ScatterplotLayer.defaultProps,
|
|
41
|
+
_data = _ScatterplotLayer$def.data,
|
|
42
|
+
_getPosition = _ScatterplotLayer$def.getPosition,
|
|
43
|
+
_upstreamDefaultProps = (0, _objectWithoutProperties2["default"])(_ScatterplotLayer$def, ["data", "getPosition"]);
|
|
44
|
+
|
|
45
|
+
// Default props added by us
|
|
46
|
+
var ourDefaultProps = {
|
|
47
|
+
_validate: true
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// @ts-expect-error
|
|
51
|
+
var defaultProps = _objectSpread(_objectSpread({}, _upstreamDefaultProps), ourDefaultProps);
|
|
52
|
+
var GeoArrowScatterplotLayer = exports.GeoArrowScatterplotLayer = /*#__PURE__*/function (_CompositeLayer) {
|
|
53
|
+
function GeoArrowScatterplotLayer() {
|
|
54
|
+
(0, _classCallCheck2["default"])(this, GeoArrowScatterplotLayer);
|
|
55
|
+
return _callSuper(this, GeoArrowScatterplotLayer, arguments);
|
|
56
|
+
}
|
|
57
|
+
(0, _inherits2["default"])(GeoArrowScatterplotLayer, _CompositeLayer);
|
|
58
|
+
return (0, _createClass2["default"])(GeoArrowScatterplotLayer, [{
|
|
59
|
+
key: "updateState",
|
|
60
|
+
value: function updateState(params) {
|
|
61
|
+
_superPropGet(GeoArrowScatterplotLayer, "updateState", this, 3)([params]);
|
|
62
|
+
if (params.changeFlags.dataChanged || params.changeFlags.updateTriggersChanged) {
|
|
63
|
+
this.state.batchProps = [];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
key: "_getBatchProps",
|
|
68
|
+
value: function _getBatchProps(batchIndex, geometry, accessors, create) {
|
|
69
|
+
var _this$state;
|
|
70
|
+
// Layer state survives deck.gl's replacement of composite instances. Keep
|
|
71
|
+
// binary data stable on uniform-only updates so attributes are not rebuilt.
|
|
72
|
+
if (((_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.batchTable) !== this.props.data) {
|
|
73
|
+
this.state = _objectSpread(_objectSpread({}, this.state), {}, {
|
|
74
|
+
batchTable: this.props.data,
|
|
75
|
+
batchProps: []
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
var cached = this.state.batchProps[batchIndex];
|
|
79
|
+
var keys = Object.keys(accessors);
|
|
80
|
+
if (cached && cached.geometry === geometry && keys.length === Object.keys(cached.accessors).length && keys.every(function (key) {
|
|
81
|
+
return accessors[key] === cached.accessors[key];
|
|
82
|
+
})) {
|
|
83
|
+
return cached.props;
|
|
84
|
+
}
|
|
85
|
+
var props = create();
|
|
86
|
+
this.state.batchProps[batchIndex] = {
|
|
87
|
+
geometry: geometry,
|
|
88
|
+
accessors: accessors,
|
|
89
|
+
props: props
|
|
90
|
+
};
|
|
91
|
+
return props;
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
key: "getPickingInfo",
|
|
95
|
+
value: function getPickingInfo(params) {
|
|
96
|
+
return (0, _picking.getPickingInfo)(params, this.props.data);
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
key: "renderLayers",
|
|
100
|
+
value: function renderLayers() {
|
|
101
|
+
var table = this.props.data;
|
|
102
|
+
if (this.props.getPosition !== undefined) {
|
|
103
|
+
var geometryColumn = this.props.getPosition;
|
|
104
|
+
if (geometryColumn !== undefined && ga.vector.isPointVector(geometryColumn)) {
|
|
105
|
+
return this._renderLayersPoint(geometryColumn);
|
|
106
|
+
}
|
|
107
|
+
if (geometryColumn !== undefined && ga.vector.isMultiPointVector(geometryColumn)) {
|
|
108
|
+
return this._renderLayersMultiPoint(geometryColumn);
|
|
109
|
+
}
|
|
110
|
+
throw new Error('getPosition should pass in an arrow Vector of Point or MultiPoint type');
|
|
111
|
+
} else {
|
|
112
|
+
var pointVector = (0, _utils.getGeometryVector)(table, _constants.GEOARROW_EXTENSIONS.POINT);
|
|
113
|
+
if (pointVector !== null) {
|
|
114
|
+
return this._renderLayersPoint(pointVector);
|
|
115
|
+
}
|
|
116
|
+
var multiPointVector = (0, _utils.getGeometryVector)(table, _constants.GEOARROW_EXTENSIONS.MULTIPOINT);
|
|
117
|
+
if (multiPointVector !== null) {
|
|
118
|
+
return this._renderLayersMultiPoint(multiPointVector);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
throw new Error('getPosition not GeoArrow point or multipoint');
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
key: "_renderLayersPoint",
|
|
125
|
+
value: function _renderLayersPoint(geometryColumn) {
|
|
126
|
+
var _this = this;
|
|
127
|
+
var table = this.props.data;
|
|
128
|
+
if (this.props._validate) {
|
|
129
|
+
(0, _utils.assert)(ga.vector.isPointVector(geometryColumn));
|
|
130
|
+
(0, _validate.validateAccessors)(this.props, table);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Exclude manually-set accessors
|
|
134
|
+
var _extractAccessorsFrom = (0, _utils.extractAccessorsFromProps)(this.props, ['getPosition']),
|
|
135
|
+
_extractAccessorsFrom2 = (0, _slicedToArray2["default"])(_extractAccessorsFrom, 2),
|
|
136
|
+
accessors = _extractAccessorsFrom2[0],
|
|
137
|
+
otherProps = _extractAccessorsFrom2[1];
|
|
138
|
+
var tableOffsets = (0, _picking.computeChunkOffsets)(table.data);
|
|
139
|
+
var layers = [];
|
|
140
|
+
var _loop = function _loop(recordBatchIdx) {
|
|
141
|
+
var batchProps = _this._getBatchProps(recordBatchIdx, geometryColumn.data[recordBatchIdx], accessors, function () {
|
|
142
|
+
var geometryData = (0, _utils.convertStructToFixedSizeList)(geometryColumn.data[recordBatchIdx]);
|
|
143
|
+
var props = {
|
|
144
|
+
data: {
|
|
145
|
+
data: table.batches[recordBatchIdx],
|
|
146
|
+
length: geometryData.length,
|
|
147
|
+
attributes: {
|
|
148
|
+
getPosition: {
|
|
149
|
+
value: ga.child.getPointChild(geometryData).values,
|
|
150
|
+
size: geometryData.type.listSize
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
for (var _i = 0, _Object$entries = Object.entries(accessors); _i < _Object$entries.length; _i++) {
|
|
156
|
+
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
157
|
+
propName = _Object$entries$_i[0],
|
|
158
|
+
propInput = _Object$entries$_i[1];
|
|
159
|
+
(0, _utils.assignAccessor)({
|
|
160
|
+
props: props,
|
|
161
|
+
propName: propName,
|
|
162
|
+
propInput: propInput,
|
|
163
|
+
chunkIdx: recordBatchIdx,
|
|
164
|
+
// @ts-expect-error how to properly retrieve batch offset?
|
|
165
|
+
batchOffset: geometryColumn._offsets[recordBatchIdx]
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return props;
|
|
169
|
+
});
|
|
170
|
+
var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ourDefaultProps), otherProps), batchProps), {}, {
|
|
171
|
+
// used for picking purposes
|
|
172
|
+
recordBatchIdx: recordBatchIdx,
|
|
173
|
+
tableOffsets: tableOffsets,
|
|
174
|
+
id: "".concat(_this.props.id, "-geoarrow-scatterplot-").concat(recordBatchIdx)
|
|
175
|
+
});
|
|
176
|
+
var layer = new _layers.ScatterplotLayer(_objectSpread(_objectSpread({}, _this.getSubLayerProps(props)), {}, {
|
|
177
|
+
// preserve binded accessors, as they are overwriten back by pass-through accessors from extensions
|
|
178
|
+
getFiltered: props.getFiltered,
|
|
179
|
+
getFilterValue: props.getFilterValue
|
|
180
|
+
}, props.getPulseStartTime ? {
|
|
181
|
+
getPulseStartTime: props.getPulseStartTime
|
|
182
|
+
} : {}));
|
|
183
|
+
layers.push(layer);
|
|
184
|
+
};
|
|
185
|
+
for (var recordBatchIdx = 0; recordBatchIdx < table.batches.length; recordBatchIdx++) {
|
|
186
|
+
_loop(recordBatchIdx);
|
|
187
|
+
}
|
|
188
|
+
return layers;
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
key: "_renderLayersMultiPoint",
|
|
192
|
+
value: function _renderLayersMultiPoint(geometryColumn) {
|
|
193
|
+
var _this2 = this;
|
|
194
|
+
var table = this.props.data;
|
|
195
|
+
|
|
196
|
+
// TODO: validate that if nested, accessor props have the same nesting
|
|
197
|
+
// structure as the main geometry column.
|
|
198
|
+
if (this.props._validate) {
|
|
199
|
+
(0, _utils.assert)(ga.vector.isMultiPointVector(geometryColumn));
|
|
200
|
+
(0, _validate.validateAccessors)(this.props, table);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Exclude manually-set accessors
|
|
204
|
+
var _extractAccessorsFrom3 = (0, _utils.extractAccessorsFromProps)(this.props, ['getPosition']),
|
|
205
|
+
_extractAccessorsFrom4 = (0, _slicedToArray2["default"])(_extractAccessorsFrom3, 2),
|
|
206
|
+
accessors = _extractAccessorsFrom4[0],
|
|
207
|
+
otherProps = _extractAccessorsFrom4[1];
|
|
208
|
+
var tableOffsets = (0, _picking.computeChunkOffsets)(table.data);
|
|
209
|
+
var layers = [];
|
|
210
|
+
var _loop2 = function _loop2(recordBatchIdx) {
|
|
211
|
+
var batchProps = _this2._getBatchProps(recordBatchIdx, geometryColumn.data[recordBatchIdx], accessors, function () {
|
|
212
|
+
var multiPointData = geometryColumn.data[recordBatchIdx];
|
|
213
|
+
var pointData = ga.child.getMultiPointChild(multiPointData);
|
|
214
|
+
// Arrow buffers may include alignment padding after the logical offsets.
|
|
215
|
+
var geomOffsets = multiPointData.valueOffsets.subarray(0, multiPointData.length + 1);
|
|
216
|
+
var props = {
|
|
217
|
+
data: {
|
|
218
|
+
data: table.batches[recordBatchIdx],
|
|
219
|
+
// Used both in picking and for function callbacks.
|
|
220
|
+
invertedGeomOffsets: (0, _utils.invertOffsets)(geomOffsets),
|
|
221
|
+
length: pointData.length,
|
|
222
|
+
attributes: {
|
|
223
|
+
getPosition: {
|
|
224
|
+
value: ga.child.getPointChild(pointData).values,
|
|
225
|
+
size: pointData.type.listSize
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(accessors); _i2 < _Object$entries2.length; _i2++) {
|
|
231
|
+
var _Object$entries2$_i = (0, _slicedToArray2["default"])(_Object$entries2[_i2], 2),
|
|
232
|
+
propName = _Object$entries2$_i[0],
|
|
233
|
+
propInput = _Object$entries2$_i[1];
|
|
234
|
+
(0, _utils.assignAccessor)({
|
|
235
|
+
props: props,
|
|
236
|
+
propName: propName,
|
|
237
|
+
propInput: propInput,
|
|
238
|
+
chunkIdx: recordBatchIdx,
|
|
239
|
+
geomCoordOffsets: geomOffsets,
|
|
240
|
+
// @ts-expect-error how to properly retrieve batch offset?
|
|
241
|
+
batchOffset: geometryColumn._offsets[recordBatchIdx]
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
return props;
|
|
245
|
+
});
|
|
246
|
+
var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ourDefaultProps), otherProps), batchProps), {}, {
|
|
247
|
+
// used for picking purposes
|
|
248
|
+
recordBatchIdx: recordBatchIdx,
|
|
249
|
+
tableOffsets: tableOffsets,
|
|
250
|
+
id: "".concat(_this2.props.id, "-geoarrow-scatterplot-").concat(recordBatchIdx)
|
|
251
|
+
});
|
|
252
|
+
var layer = new _layers.ScatterplotLayer(_objectSpread(_objectSpread({}, _this2.getSubLayerProps(props)), {}, {
|
|
253
|
+
// preserve binded accessors, as they are overwriten back by pass-through accessors from extensions
|
|
254
|
+
getFiltered: props.getFiltered,
|
|
255
|
+
getFilterValue: props.getFilterValue
|
|
256
|
+
}, props.getPulseStartTime ? {
|
|
257
|
+
getPulseStartTime: props.getPulseStartTime
|
|
258
|
+
} : {}));
|
|
259
|
+
layers.push(layer);
|
|
260
|
+
};
|
|
261
|
+
for (var recordBatchIdx = 0; recordBatchIdx < table.batches.length; recordBatchIdx++) {
|
|
262
|
+
_loop2(recordBatchIdx);
|
|
263
|
+
}
|
|
264
|
+
return layers;
|
|
265
|
+
}
|
|
266
|
+
}]);
|
|
267
|
+
}(_core.CompositeLayer);
|
|
268
|
+
(0, _defineProperty2["default"])(GeoArrowScatterplotLayer, "defaultProps", defaultProps);
|
|
269
|
+
(0, _defineProperty2["default"])(GeoArrowScatterplotLayer, "layerName", 'GeoArrowScatterplotLayer');
|
|
270
|
+
//# sourceMappingURL=geo-arrow-scatterplot-layer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-arrow-scatterplot-layer.js","names":["_core","require","_layers","ga","_interopRequireWildcard","_constants","_utils","_picking","_validate","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","_superPropGet","p","_get2","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","_ScatterplotLayer$def","ScatterplotLayer","defaultProps","_data","data","_getPosition","getPosition","_upstreamDefaultProps","_objectWithoutProperties2","ourDefaultProps","GeoArrowScatterplotLayer","exports","_CompositeLayer","_classCallCheck2","_inherits2","_createClass2","key","value","updateState","params","changeFlags","dataChanged","updateTriggersChanged","state","batchProps","_getBatchProps","batchIndex","geometry","accessors","create","_this$state","batchTable","props","cached","every","getPickingInfo","renderLayers","table","undefined","geometryColumn","vector","isPointVector","_renderLayersPoint","isMultiPointVector","_renderLayersMultiPoint","Error","pointVector","getGeometryVector","GEOARROW_EXTENSIONS","POINT","multiPointVector","MULTIPOINT","_this","assert","validateAccessors","_extractAccessorsFrom","extractAccessorsFromProps","_extractAccessorsFrom2","_slicedToArray2","otherProps","tableOffsets","computeChunkOffsets","layers","_loop","recordBatchIdx","geometryData","convertStructToFixedSizeList","batches","attributes","child","getPointChild","values","size","type","listSize","_i","_Object$entries","entries","_Object$entries$_i","propName","propInput","assignAccessor","chunkIdx","batchOffset","_offsets","id","concat","layer","getSubLayerProps","getFiltered","getFilterValue","getPulseStartTime","_this2","_extractAccessorsFrom3","_extractAccessorsFrom4","_loop2","multiPointData","pointData","getMultiPointChild","geomOffsets","valueOffsets","subarray","invertedGeomOffsets","invertOffsets","_i2","_Object$entries2","_Object$entries2$_i","geomCoordOffsets","CompositeLayer"],"sources":["../../../src/layers/geo-arrow-scatterplot-layer.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\n// deck.gl-community\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport {\n CompositeLayer,\n CompositeLayerProps,\n DefaultProps,\n GetPickingInfoParams,\n Layer,\n LayersList,\n UpdateParameters\n} from '@deck.gl/core';\nimport {ScatterplotLayer} from '@deck.gl/layers';\nimport type {ScatterplotLayerProps} from '@deck.gl/layers';\nimport * as arrow from 'apache-arrow';\nimport * as ga from '@geoarrow/geoarrow-js';\n\nimport {GEOARROW_EXTENSIONS} from '@kepler.gl/constants';\n\nimport {\n assignAccessor,\n convertStructToFixedSizeList,\n extractAccessorsFromProps,\n getGeometryVector,\n invertOffsets\n} from '../utils/utils';\nimport {GeoArrowExtraPickingProps, computeChunkOffsets, getPickingInfo} from '../utils/picking';\nimport {\n ColorAccessor,\n FloatAccessor,\n GeoArrowPickingInfo,\n ExtensionProps,\n _GeoArrowInternalLayerData\n} from '../types';\nimport {assert} from '../utils/utils';\nimport {validateAccessors} from '../utils/validate';\n\n/** All properties supported by GeoArrowScatterplotLayer */\nexport type GeoArrowScatterplotLayerProps = Omit<\n ScatterplotLayerProps<arrow.Table>,\n 'data' | 'getPosition' | 'getRadius' | 'getFillColor' | 'getLineColor'\n> &\n _GeoArrowScatterplotLayerProps &\n CompositeLayerProps;\n\n/** Properties added by GeoArrowScatterplotLayer */\ntype _GeoArrowScatterplotLayerProps = {\n data: arrow.Table;\n\n /**\n * If `true`, validate the arrays provided (e.g. chunk lengths)\n * @default true\n */\n _validate?: boolean;\n /**\n * Center position accessor.\n * If not provided, will be inferred by finding a column with extension type\n * `\"geoarrow.point\"` or `\"geoarrow.multipoint\"`.\n */\n getPosition?: ga.vector.PointVector | ga.vector.MultiPointVector;\n /**\n * Radius accessor.\n * @default 1\n */\n getRadius?: FloatAccessor;\n /**\n * Fill color accessor.\n * @default [0, 0, 0, 255]\n */\n getFillColor?: ColorAccessor;\n /**\n * Stroke color accessor.\n * @default [0, 0, 0, 255]\n */\n getLineColor?: ColorAccessor;\n /**\n * Stroke width accessor.\n * @default 1\n */\n getLineWidth?: FloatAccessor;\n};\n\n// Remove data and getPosition from the upstream default props\nconst {\n data: _data,\n getPosition: _getPosition,\n ..._upstreamDefaultProps\n} = ScatterplotLayer.defaultProps;\n\n// Default props added by us\nconst ourDefaultProps = {\n _validate: true\n};\n\n// @ts-expect-error\nconst defaultProps: DefaultProps<GeoArrowScatterplotLayerProps> = {\n ..._upstreamDefaultProps,\n ...ourDefaultProps\n};\n\ntype BatchProps = {data: _GeoArrowInternalLayerData<arrow.RecordBatch>} & Record<string, any>;\n\nexport class GeoArrowScatterplotLayer<ExtraProps extends object = object> extends CompositeLayer<\n GeoArrowScatterplotLayerProps & ExtraProps\n> {\n static defaultProps = defaultProps;\n static layerName = 'GeoArrowScatterplotLayer';\n\n declare state: {\n batchTable: arrow.Table;\n batchProps: {\n geometry: arrow.Data;\n accessors: Record<string, any>;\n props: BatchProps;\n }[];\n };\n\n updateState(params: UpdateParameters<this>): void {\n super.updateState(params);\n if (params.changeFlags.dataChanged || params.changeFlags.updateTriggersChanged) {\n this.state.batchProps = [];\n }\n }\n\n private _getBatchProps(\n batchIndex: number,\n geometry: arrow.Data,\n accessors: Record<string, any>,\n create: () => BatchProps\n ): BatchProps {\n // Layer state survives deck.gl's replacement of composite instances. Keep\n // binary data stable on uniform-only updates so attributes are not rebuilt.\n if (this.state?.batchTable !== this.props.data) {\n this.state = {...this.state, batchTable: this.props.data, batchProps: []};\n }\n const cached = this.state.batchProps[batchIndex];\n const keys = Object.keys(accessors);\n if (\n cached &&\n cached.geometry === geometry &&\n keys.length === Object.keys(cached.accessors).length &&\n keys.every(key => accessors[key] === cached.accessors[key])\n ) {\n return cached.props;\n }\n const props = create();\n this.state.batchProps[batchIndex] = {geometry, accessors, props};\n return props;\n }\n\n getPickingInfo(\n params: GetPickingInfoParams & {\n sourceLayer: {props: GeoArrowExtraPickingProps};\n }\n ): GeoArrowPickingInfo {\n return getPickingInfo(params, this.props.data);\n }\n\n renderLayers(): Layer<object> | LayersList | null {\n const {data: table} = this.props;\n\n if (this.props.getPosition !== undefined) {\n const geometryColumn = this.props.getPosition;\n if (geometryColumn !== undefined && ga.vector.isPointVector(geometryColumn)) {\n return this._renderLayersPoint(geometryColumn);\n }\n\n if (geometryColumn !== undefined && ga.vector.isMultiPointVector(geometryColumn)) {\n return this._renderLayersMultiPoint(geometryColumn);\n }\n\n throw new Error('getPosition should pass in an arrow Vector of Point or MultiPoint type');\n } else {\n const pointVector = getGeometryVector(table, GEOARROW_EXTENSIONS.POINT);\n if (pointVector !== null) {\n return this._renderLayersPoint(pointVector);\n }\n\n const multiPointVector = getGeometryVector(table, GEOARROW_EXTENSIONS.MULTIPOINT);\n if (multiPointVector !== null) {\n return this._renderLayersMultiPoint(multiPointVector);\n }\n }\n\n throw new Error('getPosition not GeoArrow point or multipoint');\n }\n\n _renderLayersPoint(geometryColumn: ga.vector.PointVector): Layer<object> | LayersList | null {\n const {data: table} = this.props;\n\n if (this.props._validate) {\n assert(ga.vector.isPointVector(geometryColumn));\n validateAccessors(this.props, table);\n }\n\n // Exclude manually-set accessors\n const [accessors, otherProps] = extractAccessorsFromProps(this.props, ['getPosition']);\n const tableOffsets = computeChunkOffsets(table.data);\n\n const layers: ScatterplotLayer<any>[] = [];\n for (let recordBatchIdx = 0; recordBatchIdx < table.batches.length; recordBatchIdx++) {\n const batchProps = this._getBatchProps(\n recordBatchIdx,\n geometryColumn.data[recordBatchIdx],\n accessors,\n () => {\n const geometryData = convertStructToFixedSizeList(geometryColumn.data[recordBatchIdx]);\n const props: BatchProps = {\n data: {\n data: table.batches[recordBatchIdx],\n length: geometryData.length,\n attributes: {\n getPosition: {\n value: ga.child.getPointChild(geometryData).values,\n size: geometryData.type.listSize\n }\n }\n }\n };\n for (const [propName, propInput] of Object.entries(accessors)) {\n assignAccessor({\n props,\n propName,\n propInput,\n chunkIdx: recordBatchIdx,\n // @ts-expect-error how to properly retrieve batch offset?\n batchOffset: geometryColumn._offsets[recordBatchIdx]\n });\n }\n return props;\n }\n );\n\n const props: ScatterplotLayerProps<any> & ExtensionProps & GeoArrowExtraPickingProps = {\n // Note: because this is a composite layer and not doing the rendering\n // itself, we still have to pass in our defaultProps\n ...ourDefaultProps,\n ...otherProps,\n ...batchProps,\n\n // used for picking purposes\n recordBatchIdx,\n tableOffsets,\n\n id: `${this.props.id}-geoarrow-scatterplot-${recordBatchIdx}`\n };\n\n const layer = new ScatterplotLayer({\n ...this.getSubLayerProps(props),\n // preserve binded accessors, as they are overwriten back by pass-through accessors from extensions\n getFiltered: props.getFiltered,\n getFilterValue: props.getFilterValue,\n ...(props.getPulseStartTime ? {getPulseStartTime: props.getPulseStartTime} : {})\n });\n layers.push(layer);\n }\n\n return layers;\n }\n\n _renderLayersMultiPoint(\n geometryColumn: ga.vector.MultiPointVector\n ): Layer<object> | LayersList | null {\n const {data: table} = this.props;\n\n // TODO: validate that if nested, accessor props have the same nesting\n // structure as the main geometry column.\n if (this.props._validate) {\n assert(ga.vector.isMultiPointVector(geometryColumn));\n validateAccessors(this.props, table);\n }\n\n // Exclude manually-set accessors\n const [accessors, otherProps] = extractAccessorsFromProps(this.props, ['getPosition']);\n const tableOffsets = computeChunkOffsets(table.data);\n\n const layers: ScatterplotLayer[] = [];\n for (let recordBatchIdx = 0; recordBatchIdx < table.batches.length; recordBatchIdx++) {\n const batchProps = this._getBatchProps(\n recordBatchIdx,\n geometryColumn.data[recordBatchIdx],\n accessors,\n () => {\n const multiPointData = geometryColumn.data[recordBatchIdx];\n const pointData = ga.child.getMultiPointChild(multiPointData);\n // Arrow buffers may include alignment padding after the logical offsets.\n const geomOffsets = multiPointData.valueOffsets.subarray(0, multiPointData.length + 1);\n const props: BatchProps = {\n data: {\n data: table.batches[recordBatchIdx],\n // Used both in picking and for function callbacks.\n invertedGeomOffsets: invertOffsets(geomOffsets),\n length: pointData.length,\n attributes: {\n getPosition: {\n value: ga.child.getPointChild(pointData).values,\n size: pointData.type.listSize\n }\n }\n }\n };\n for (const [propName, propInput] of Object.entries(accessors)) {\n assignAccessor({\n props,\n propName,\n propInput,\n chunkIdx: recordBatchIdx,\n geomCoordOffsets: geomOffsets,\n // @ts-expect-error how to properly retrieve batch offset?\n batchOffset: geometryColumn._offsets[recordBatchIdx]\n });\n }\n return props;\n }\n );\n\n const props: ScatterplotLayerProps & ExtensionProps & GeoArrowExtraPickingProps = {\n // Note: because this is a composite layer and not doing the rendering\n // itself, we still have to pass in our defaultProps\n ...ourDefaultProps,\n ...otherProps,\n ...batchProps,\n\n // used for picking purposes\n recordBatchIdx,\n tableOffsets,\n\n id: `${this.props.id}-geoarrow-scatterplot-${recordBatchIdx}`\n };\n\n const layer = new ScatterplotLayer({\n ...this.getSubLayerProps(props),\n // preserve binded accessors, as they are overwriten back by pass-through accessors from extensions\n getFiltered: props.getFiltered,\n getFilterValue: props.getFilterValue,\n ...(props.getPulseStartTime ? {getPulseStartTime: props.getPulseStartTime} : {})\n });\n layers.push(layer);\n }\n\n return layers;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAOA,IAAAA,KAAA,GAAAC,OAAA;AASA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,EAAA,GAAAC,uBAAA,CAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAOA,IAAAM,QAAA,GAAAN,OAAA;AASA,IAAAO,SAAA,GAAAP,OAAA;AAAoD,SAAAG,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CA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