@smart-factor/gem-ui-components 0.0.59 → 0.0.60

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.
@@ -56583,24 +56583,24 @@ const EJ = () => {
56583
56583
  Ke.uniquifyElems(d);
56584
56584
  const h = bs("width", d.getAttribute("width")), A = bs("height", d.getAttribute("height")), f = d.getAttribute("viewBox"), g = f ? f.split(" ") : [0, 0, h, A];
56585
56585
  for (n = 0; n < 4; ++n) g[n] = Number(g[n]);
56586
- const _ = Number(Ke.getSvgContent().getAttribute("height"));
56587
- i = A > h ? "scale(" + _ / 3 / g[3] + ")" : "scale(" + _ / 3 / g[2] + ")", i = "translate(0) " + i + " translate(0)", c = Ke.getDOMDocument().createElementNS(Xt.SVG, "symbol");
56588
- const y = Ss();
56586
+ const _ = Number(Ke.getSvgContent().getAttribute("height")), y = A > h ? "scale(" + _ / 3 / g[3] + ")" : "scale(" + _ / 3 / g[2] + ")";
56587
+ i = Number.isFinite(e) ? `scale(${e})` : y, i = "translate(0) " + i + " translate(0)", c = Ke.getDOMDocument().createElementNS(Xt.SVG, "symbol");
56588
+ const C = Ss();
56589
56589
  if (NA()) {
56590
- const B = d.querySelectorAll("linearGradient, radialGradient, pattern");
56591
- Array.prototype.forEach.call(B, (k) => {
56592
- y.appendChild(k);
56590
+ const k = d.querySelectorAll("linearGradient, radialGradient, pattern");
56591
+ Array.prototype.forEach.call(k, (L) => {
56592
+ C.appendChild(L);
56593
56593
  });
56594
56594
  }
56595
56595
  for (; d.firstChild; ) {
56596
- const B = d.firstChild;
56597
- c.append(B);
56596
+ const k = d.firstChild;
56597
+ c.append(k);
56598
56598
  }
56599
- const C = d.attributes;
56600
- for (const B of C) c.setAttribute(B.nodeName, B.value);
56599
+ const B = d.attributes;
56600
+ for (const k of B) c.setAttribute(k.nodeName, k.value);
56601
56601
  c.id = Ke.getNextId(), Ke.setImportIds(a, { symbol: c, xform: i }), Ss().append(c), l.addSubCommand(new jk(c));
56602
56602
  }
56603
- r = Ke.getDOMDocument().createElementNS(Xt.SVG, "use"), r.id = Ke.getNextId(), Ke.setHref(r, "#" + c.id), (Ke.getCurrentGroup() || Ke.getCurrentDrawing().getCurrentLayer()).append(r), l.addSubCommand(new jk(r)), Ke.clearSelection(), e || (r.setAttribute("transform", i), rg(r)), t.put(r, "symbol", c), t.put(r, "ref", c), Ke.addToSelection([r]), Ke.addCommandToHistory(l), Ke.call("changed", [Ke.getSvgContent()]);
56603
+ r = Ke.getDOMDocument().createElementNS(Xt.SVG, "use"), r.id = Ke.getNextId(), Ke.setHref(r, "#" + c.id), (Ke.getCurrentGroup() || Ke.getCurrentDrawing().getCurrentLayer()).append(r), l.addSubCommand(new jk(r)), Ke.clearSelection(), Number.isFinite(e) && (r.setAttribute("transform", i), rg(r)), t.put(r, "symbol", c), t.put(r, "ref", c), Ke.addToSelection([r]), Ke.addCommandToHistory(l), Ke.call("changed", [Ke.getSvgContent()]);
56604
56604
  } catch (a) {
56605
56605
  return console.error(a), null;
56606
56606
  }
package/dist/licenses.txt CHANGED
@@ -1911,7 +1911,7 @@ SOFTWARE.
1911
1911
  ---
1912
1912
 
1913
1913
  Name: svgedit-pl
1914
- Version: 7.3.17
1914
+ Version: 7.3.18
1915
1915
  License: (MIT AND Apache-2.0 AND ISC AND LGPL-3.0-or-later AND X11)
1916
1916
  Private: false
1917
1917
  Description: Powerful SVG-Editor for your browser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",
@@ -107,7 +107,7 @@
107
107
  "react-router-dom": "^6.26.0",
108
108
  "react-use": "^17.6.0",
109
109
  "sass": "^1.85.1",
110
- "svgedit-pl": "^7.3.17",
110
+ "svgedit-pl": "^7.3.18",
111
111
  "swagger-typescript-api": "^13.0.23",
112
112
  "vite-plugin-static-copy": "^2.3.0",
113
113
  "zod": "^3.24.2"