@evergis/react 2.0.196 → 2.0.197
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/components/Legend/types.d.ts +3 -1
- package/dist/core/classification/types.d.ts +1 -1
- package/dist/react.cjs.development.js +11 -4
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +11 -4
- package/dist/react.esm.js.map +1 -1
- package/dist/utils/legend.d.ts +2 -0
- package/package.json +2 -2
package/dist/react.esm.js
CHANGED
|
@@ -3013,7 +3013,7 @@ const getLegendSymbolSize = symbol => {
|
|
|
3013
3013
|
return Math.max(DEFAULT_LEGEND_SYMBOL_SIZE, size);
|
|
3014
3014
|
};
|
|
3015
3015
|
const serializeSvgPointSymbol = symbol => {
|
|
3016
|
-
var _symbol$figure, _symbol$background2, _symbol$background3, _symbol$background4, _symbol$background5;
|
|
3016
|
+
var _symbol$figure, _symbol$background2, _symbol$background3, _symbol$background4, _symbol$background5, _symbol$figure2, _symbol$figure3;
|
|
3017
3017
|
|
|
3018
3018
|
if (!symbol) return null;
|
|
3019
3019
|
const figureFillColor = ((_symbol$figure = symbol.figure) == null ? void 0 : _symbol$figure.fillColor) || null;
|
|
@@ -3034,7 +3034,9 @@ const serializeSvgPointSymbol = symbol => {
|
|
|
3034
3034
|
} : {}, figureFillColor ? {
|
|
3035
3035
|
figure: {
|
|
3036
3036
|
id: 'symbol-figure',
|
|
3037
|
-
fillColor: figureFillColor
|
|
3037
|
+
fillColor: figureFillColor,
|
|
3038
|
+
strokeColor: ((_symbol$figure2 = symbol.figure) == null ? void 0 : _symbol$figure2.strokeColor) || null,
|
|
3039
|
+
strokeWidth: ((_symbol$figure3 = symbol.figure) == null ? void 0 : _symbol$figure3.strokeWidth) || null
|
|
3038
3040
|
}
|
|
3039
3041
|
} : {});
|
|
3040
3042
|
};
|
|
@@ -3146,7 +3148,7 @@ const DEFAULT_CLUSTER_SVG = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox
|
|
|
3146
3148
|
const SYMBOL_CLASSIFICATION = {
|
|
3147
3149
|
[GeometryType.Polygon]: ['fill.color', 'stroke.color', 'stroke.width'],
|
|
3148
3150
|
[GeometryType.Polyline]: ['stroke.color', 'stroke.width'],
|
|
3149
|
-
[GeometryType.Point]: ['angle', 'size', 'fill.color', 'fillColor', 'background.fillColor', 'background.strokeColor', 'background.strokeWidth', 'figure.fillColor', 'singleObjectSymbol.figure.fillColor', 'singleObjectSymbol.background.fillColor']
|
|
3151
|
+
[GeometryType.Point]: ['angle', 'size', 'fill.color', 'fillColor', 'background.fillColor', 'background.strokeColor', 'background.strokeWidth', 'figure.fillColor', 'figure.strokeColor', 'figure.strokeWidth', 'singleObjectSymbol.figure.fillColor', 'singleObjectSymbol.background.fillColor']
|
|
3150
3152
|
};
|
|
3151
3153
|
const SYMBOL_LIMITS = {
|
|
3152
3154
|
SIZE_MIN: 1,
|
|
@@ -3317,11 +3319,16 @@ const manipulateSvgSymbol = _ref2 => {
|
|
|
3317
3319
|
SVGContainer.svg(innerSvg);
|
|
3318
3320
|
}
|
|
3319
3321
|
} else {
|
|
3322
|
+
const strokeColor = getParameterValue(figure == null ? void 0 : figure.strokeColor);
|
|
3323
|
+
const strokeWidth = getParameterValue(figure == null ? void 0 : figure.strokeWidth) || (typeof (figure == null ? void 0 : figure.strokeColor) === 'object' ? 1 : 0);
|
|
3320
3324
|
const fillColor = getParameterValue(figure == null ? void 0 : figure.fillColor);
|
|
3321
3325
|
SVGContainer.size(currentSize + "px", currentSize + "px").viewbox(viewBox.join(' '));
|
|
3322
3326
|
SVGContainer.svg(innerSvg);
|
|
3323
3327
|
SVGContainer.find('#symbol-figure').each(item => {
|
|
3324
|
-
item.center(DEFAULT_SYMBOL_SIZE / 2, DEFAULT_SYMBOL_SIZE / 2).fill(fillColor || DEFAULT_SYMBOL_FILL_COLOR)
|
|
3328
|
+
item.center(DEFAULT_SYMBOL_SIZE / 2, DEFAULT_SYMBOL_SIZE / 2).fill(fillColor || DEFAULT_SYMBOL_FILL_COLOR).stroke({
|
|
3329
|
+
color: strokeColor,
|
|
3330
|
+
width: strokeWidth
|
|
3331
|
+
});
|
|
3325
3332
|
});
|
|
3326
3333
|
}
|
|
3327
3334
|
}
|