kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
140 lines (110 loc) • 11.2 kB
JavaScript
"use strict";
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 _propTypes = _interopRequireDefault(require("prop-types"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _defaultSettings = require("../../constants/default-settings");
function _templateObject5() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-top: 3px;\n"]);
_templateObject5 = function _templateObject5() {
return data;
};
return data;
}
function _templateObject4() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: flex-start;\n"]);
_templateObject4 = function _templateObject4() {
return data;
};
return data;
}
function _templateObject3() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: 10px;\n color: ", ";\n letter-spacing: 0.83px;\n line-height: 14px;\n"]);
_templateObject3 = function _templateObject3() {
return data;
};
return data;
}
function _templateObject2() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n .logo__link {\n color: ", ";\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 1.17px;\n }\n"]);
_templateObject2 = function _templateObject2() {
return data;
};
return data;
}
function _templateObject() {
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-block;\n margin-left: 6px;\n"]);
_templateObject = function _templateObject() {
return data;
};
return data;
}
var LogoTitle = _styledComponents["default"].div(_templateObject());
var LogoName = _styledComponents["default"].div(_templateObject2(), function (props) {
return props.theme.logoColor;
});
var LogoVersion = _styledComponents["default"].div(_templateObject3(), function (props) {
return props.theme.subtextColor;
});
var LogoWrapper = _styledComponents["default"].div(_templateObject4());
var LogoSvgWrapper = _styledComponents["default"].div(_templateObject5());
var LogoSvg = function LogoSvg() {
return _react["default"].createElement("svg", {
className: "side-panel-logo__logo",
width: "22px",
height: "15px",
viewBox: "0 0 22 15"
}, _react["default"].createElement("g", {
transform: "translate(11, -3) rotate(45.000000)"
}, _react["default"].createElement("rect", {
fill: "#535C6C",
x: "0",
y: "5",
width: "10",
height: "10"
}), _react["default"].createElement("rect", {
fill: "#1FBAD6",
x: "5",
y: "0",
width: "10",
height: "10"
})));
};
var KeplerGlLogo = function KeplerGlLogo(_ref) {
var appName = _ref.appName,
_ref$appWebsite = _ref.appWebsite,
appWebsite = _ref$appWebsite === void 0 ? _defaultSettings.KEPLER_GL_WEBSITE : _ref$appWebsite,
version = _ref.version;
return _react["default"].createElement(LogoWrapper, {
className: "side-panel-logo"
}, _react["default"].createElement(LogoSvgWrapper, null, _react["default"].createElement(LogoSvg, null)), _react["default"].createElement(LogoTitle, {
className: "logo__title"
}, _react["default"].createElement(LogoName, {
className: "logo__name"
}, _react["default"].createElement("a", {
className: "logo__link",
target: "_blank",
rel: "noopener noreferrer",
href: appWebsite
}, appName)), version ? _react["default"].createElement(LogoVersion, {
className: "logo__version"
}, version) : null));
};
KeplerGlLogo.propTypes = {
appName: _propTypes["default"].string,
version: _propTypes["default"].string,
appWebsite: _propTypes["default"].string
};
KeplerGlLogo.defaultProps = {
appName: _defaultSettings.KEPLER_GL_NAME,
version: _defaultSettings.KEPLER_GL_VERSION,
appWebsite: _defaultSettings.KEPLER_GL_WEBSITE
};
var _default = KeplerGlLogo;
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2NvbW1vbi9sb2dvLmpzIl0sIm5hbWVzIjpbIkxvZ29UaXRsZSIsInN0eWxlZCIsImRpdiIsIkxvZ29OYW1lIiwicHJvcHMiLCJ0aGVtZSIsImxvZ29Db2xvciIsIkxvZ29WZXJzaW9uIiwic3VidGV4dENvbG9yIiwiTG9nb1dyYXBwZXIiLCJMb2dvU3ZnV3JhcHBlciIsIkxvZ29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