@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.
- package/dist/SignEditor.js +11 -11
- package/dist/licenses.txt +1 -1
- package/package.json +2 -2
package/dist/SignEditor.js
CHANGED
|
@@ -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 =
|
|
56588
|
-
const
|
|
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
|
|
56591
|
-
Array.prototype.forEach.call(
|
|
56592
|
-
|
|
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
|
|
56597
|
-
c.append(
|
|
56596
|
+
const k = d.firstChild;
|
|
56597
|
+
c.append(k);
|
|
56598
56598
|
}
|
|
56599
|
-
const
|
|
56600
|
-
for (const
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-factor/gem-ui-components",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
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"
|