@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.
@@ -3213,8 +3213,8 @@ const manipulateSvgSymbol = (SVGContainer, symbol, svg, bg) => {
3213
3213
  background,
3214
3214
  figure
3215
3215
  } = symbol;
3216
- const isUploadedFile = !bg && !(symbolData != null && symbolData.includes("symbol-bg")) && !(symbolData != null && symbolData.includes("symbol-figure"));
3217
- const innerSvg = symbolData == null ? void 0 : symbolData.replace(/<\?xml[^?]*\?>|<svg[^>]*>|<\/svg>/g, "");
3216
+ const isUploadedFile = !bg && !symbolData.includes("symbol-bg") && !symbolData.includes("symbol-figure");
3217
+ const innerSvg = symbolData.replace(/<\?xml[^?]*\?>|<svg[^>]*>|<\/svg>/g, "");
3218
3218
 
3219
3219
  if (isUploadedFile) {
3220
3220
  var _$exec;
@@ -6059,9 +6059,10 @@ const useSvgSymbol = (symbol, skipOffset) => {
6059
6059
  offset
6060
6060
  } = symbol;
6061
6061
  const newValue = value instanceof Color.Color ? value.toString("rgba") : value;
6062
- const newSymbol = JSON.parse(JSON.stringify(_extends({}, symbol, {
6062
+
6063
+ const newSymbol = _extends({}, JSON.parse(JSON.stringify(symbol)), {
6063
6064
  offset: skipOffset ? DEFAULT_SYMBOL_OFFSET : isSizeClassification(field) ? getOffsetParameterValue(offset) : offset
6064
- })));
6065
+ });
6065
6066
 
6066
6067
  if (field.indexOf(".") !== -1) {
6067
6068
  var _newSymbol$parts$;
@@ -6085,7 +6086,7 @@ const useSvgSymbol = (symbol, skipOffset) => {
6085
6086
  }
6086
6087
 
6087
6088
  manipulateSvg({
6088
- svg: data,
6089
+ svg: getParameterValue(data),
6089
6090
  newSymbol,
6090
6091
  bg: (_newSymbol$background = newSymbol.background) == null ? void 0 : _newSymbol$background.type
6091
6092
  });
@@ -6233,7 +6234,7 @@ const LegendSymbolRenderer = /*#__PURE__*/React.memo(_ref => {
6233
6234
  symbol: deserializeSymbol(symbol),
6234
6235
  size: getLegendSymbolSize(symbol) || DEFAULT_LEGEND_SYMBOL_SIZE,
6235
6236
  type: symbol.type,
6236
- svg: symbol.data,
6237
+ svg: getParameterValue(symbol.data),
6237
6238
  skipOffset: true
6238
6239
  });
6239
6240
  });