kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
76 lines (75 loc) • 10.4 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _base = require("../base");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
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)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var PointLayerIcon = /*#__PURE__*/function (_Component) {
function PointLayerIcon() {
(0, _classCallCheck2["default"])(this, PointLayerIcon);
return _callSuper(this, PointLayerIcon, arguments);
}
(0, _inherits2["default"])(PointLayerIcon, _Component);
return (0, _createClass2["default"])(PointLayerIcon, [{
key: "render",
value: function render() {
return /*#__PURE__*/_react["default"].createElement(_base.Base, this.props, /*#__PURE__*/_react["default"].createElement("circle", {
cx: "29.4",
cy: "31.6",
r: "8.4",
className: "cr1"
}), /*#__PURE__*/_react["default"].createElement("circle", {
cx: "48.5",
cy: "15.7",
r: "6.5",
className: "cr2"
}), /*#__PURE__*/_react["default"].createElement("circle", {
cx: "11",
cy: "44.2",
r: "3",
className: "cr3"
}), /*#__PURE__*/_react["default"].createElement("circle", {
cx: "50",
cy: "44.2",
r: "5",
className: "cr4"
}), /*#__PURE__*/_react["default"].createElement("circle", {
cx: "34",
cy: "54.2",
r: "3",
className: "cr5"
}), /*#__PURE__*/_react["default"].createElement("circle", {
cx: "14",
cy: "16.2",
r: "4",
className: "cr6"
}));
}
}]);
}(_react.Component);
(0, _defineProperty2["default"])(PointLayerIcon, "propTypes", {
height: _propTypes["default"].string,
colors: _propTypes["default"].arrayOf(_propTypes["default"].string)
});
(0, _defineProperty2["default"])(PointLayerIcon, "defaultProps", {
height: '16px',
predefinedClassName: 'point-layer-icon',
totalColor: 6
});
var _default = exports["default"] = PointLayerIcon;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVXaWxkY2FyZCIsInJlcXVpcmUiLCJfcHJvcFR5cGVzIiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsIl9iYXNlIiwiX2dldFJlcXVpcmVXaWxkY2FyZENhY2h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