kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
84 lines (64 loc) • 7.81 kB
JavaScript
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireWildcard(require("styled-components"));
function _templateObject3() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n border-radius: 50%;\n border: 3px solid ", ";\n padding: 2px;\n"]);
_templateObject3 = function _templateObject3() {
return data;
};
return data;
}
function _templateObject2() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n border-left-color: ", ";\n animation: _preloader_spin_ 500ms linear infinite;\n border-radius: 50%;\n border-top-color: transparent;\n border-bottom-color: transparent;\n border-right-color: transparent;\n cursor: wait;\n border-style: solid;\n display: block;\n animation-name: ", ";\n}"]);
_templateObject2 = function _templateObject2() {
return data;
};
return data;
}
function _templateObject() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);
_templateObject = function _templateObject() {
return data;
};
return data;
}
var animationName = (0, _styledComponents.keyframes)(_templateObject());
var Loader = _styledComponents["default"].span(_templateObject2(), function (props) {
return props.color || props.theme.primaryBtnBgd;
}, animationName);
var LoadingWrapper = _styledComponents["default"].div(_templateObject3(), function (props) {
return props.borderColor || props.theme.borderColorLT;
});
var LoadingSpinner = function LoadingSpinner(_ref) {
var _ref$size = _ref.size,
size = _ref$size === void 0 ? 32 : _ref$size,
color = _ref.color,
borderColor = _ref.borderColor,
_ref$strokeWidth = _ref.strokeWidth,
strokeWidth = _ref$strokeWidth === void 0 ? 3 : _ref$strokeWidth,
_ref$gap = _ref.gap,
gap = _ref$gap === void 0 ? 2 : _ref$gap;
return _react["default"].createElement(LoadingWrapper, {
style: {
width: "".concat(size, "px"),
height: "".concat(size, "px"),
padding: "".concat(gap, "px")
}
}, _react["default"].createElement(Loader, {
color: color,
style: {
width: "".concat(size - strokeWidth * 2 - gap * 2, "px"),
height: "".concat(size - strokeWidth * 2 - gap * 2, "px")
}
}));
};
var _default = LoadingSpinner;
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2NvbW1vbi9sb2FkaW5nLXNwaW5uZXIuanMiXSwibmFtZXMiOlsiYW5pbWF0aW9uTmFtZSIsImtleWZyYW1lcyIsIkxvYWRlciIsInN0eWxlZCIsInNwYW4iLCJwcm9wcyIsImNvbG9yIiwidGhlbWUiLCJwcmltYXJ5QnRuQmdkIiwiTG9hZGluZ1dyYXBwZXIiLCJkaXYiLCJib3JkZXJDb2xvciIsImJvcmRlckNvbG9yTFQiLCJMb2FkaW5nU3Bpbm5lciIsInNpemUiLCJzdHJva2VXaWR0aCIsImdhcCIsIndpZHRoIiwiaGVpZ2h0IiwicGFkZGluZyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQW9CQTs7QUFDQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQSxJQUFNQSxhQUFhLE9BQUdDLDJCQUFILG9CQUFuQjs7QUFTQSxJQUFNQyxNQUFNLEdBQUdDLDZCQUFPQyxJQUFWLHFCQUNhLFVBQUFDLEtBQUs7QUFBQSxTQUFJQSxLQUFLLENBQUNDLEtBQU4sSUFBZUQsS0FBSyxDQUFDRSxLQUFOLENBQVlDLGFBQS9CO0FBQUEsQ0FEbEIsRUFVVVIsYUFWVixDQUFaOztBQWFBLElBQU1TLGNBQWMsR0FBR04sNkJBQU9PLEdBQVYscUJBRUUsVUFBQUwsS0FBSztBQUFBLFNBQUlBLEt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