@evergis/react 2.0.188 → 2.0.189

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/react.esm.js CHANGED
@@ -3216,8 +3216,8 @@ const manipulateSvgSymbol = (SVGContainer, symbol, svg, bg) => {
3216
3216
  background,
3217
3217
  figure
3218
3218
  } = symbol;
3219
- const isUploadedFile = !bg && !(symbolData != null && symbolData.includes("symbol-bg")) && !(symbolData != null && symbolData.includes("symbol-figure"));
3220
- const innerSvg = symbolData == null ? void 0 : symbolData.replace(/<\?xml[^?]*\?>|<svg[^>]*>|<\/svg>/g, "");
3219
+ const isUploadedFile = !bg && !symbolData.includes("symbol-bg") && !symbolData.includes("symbol-figure");
3220
+ const innerSvg = symbolData.replace(/<\?xml[^?]*\?>|<svg[^>]*>|<\/svg>/g, "");
3221
3221
 
3222
3222
  if (isUploadedFile) {
3223
3223
  var _$exec;
@@ -6062,9 +6062,10 @@ const useSvgSymbol = (symbol, skipOffset) => {
6062
6062
  offset
6063
6063
  } = symbol;
6064
6064
  const newValue = value instanceof Color$1 ? value.toString("rgba") : value;
6065
- const newSymbol = JSON.parse(JSON.stringify(_extends({}, symbol, {
6065
+
6066
+ const newSymbol = _extends({}, JSON.parse(JSON.stringify(symbol)), {
6066
6067
  offset: skipOffset ? DEFAULT_SYMBOL_OFFSET : isSizeClassification(field) ? getOffsetParameterValue(offset) : offset
6067
- })));
6068
+ });
6068
6069
 
6069
6070
  if (field.indexOf(".") !== -1) {
6070
6071
  var _newSymbol$parts$;
@@ -6088,7 +6089,7 @@ const useSvgSymbol = (symbol, skipOffset) => {
6088
6089
  }
6089
6090
 
6090
6091
  manipulateSvg({
6091
- svg: data,
6092
+ svg: getParameterValue(data),
6092
6093
  newSymbol,
6093
6094
  bg: (_newSymbol$background = newSymbol.background) == null ? void 0 : _newSymbol$background.type
6094
6095
  });
@@ -6236,7 +6237,7 @@ const LegendSymbolRenderer = /*#__PURE__*/memo(_ref => {
6236
6237
  symbol: deserializeSymbol(symbol),
6237
6238
  size: getLegendSymbolSize(symbol) || DEFAULT_LEGEND_SYMBOL_SIZE,
6238
6239
  type: symbol.type,
6239
- svg: symbol.data,
6240
+ svg: getParameterValue(symbol.data),
6240
6241
  skipOffset: true
6241
6242
  });
6242
6243
  });