@longline/aqua-ui 1.0.158 → 1.0.159
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.
|
@@ -64,6 +64,9 @@ var ClusterMarkerBase = function (props) {
|
|
|
64
64
|
var value = 0;
|
|
65
65
|
// Calculate total value of ringfields:
|
|
66
66
|
var totalValue = props.ringValues.reduce(function (acc, f) { return f + acc; }, 0);
|
|
67
|
+
// Prevent div0:
|
|
68
|
+
if (totalValue == 0)
|
|
69
|
+
return null;
|
|
67
70
|
var rings = [];
|
|
68
71
|
props.ringValues.forEach(function (ringValue, idx) {
|
|
69
72
|
var relativeValue = ringValue / totalValue;
|
package/package.json
CHANGED
package/styles/StyleBase.js
CHANGED
|
@@ -3,6 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import { createGlobalStyle } from 'styled-components';
|
|
6
|
-
var StyleBase = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\n body {\n font-family: Roboto;\n font-style: normal;\n font-weight: 400;\n font-display:
|
|
6
|
+
var StyleBase = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\n body {\n font-family: Roboto;\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n color: ", ";\n }\n\n b, strong {\n font-weight: 700;\n }\n\n i, em {\n font-style: italic;\n }\n\n small, sub, sup { font-size: .83em; }\n sub { vertical-align: sub; }\n sup { vertical-align: super; }\n"], ["\n\n body {\n font-family: Roboto;\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n color: ", ";\n }\n\n b, strong {\n font-weight: 700;\n }\n\n i, em {\n font-style: italic;\n }\n\n small, sub, sup { font-size: .83em; }\n sub { vertical-align: sub; }\n sup { vertical-align: super; }\n"])), function (p) { return p.theme.colors.font; });
|
|
7
7
|
export { StyleBase };
|
|
8
8
|
var templateObject_1;
|