svgedit-pl 7.4.4 → 7.4.6

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.
@@ -13215,7 +13215,7 @@ var a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A
13215
13215
  align_top: "Wyrównaj do góry",
13216
13216
  mode_select: "Narzędzie zaznaczania",
13217
13217
  mode_fhpath: "Narzędzie ołówka",
13218
- mode_line: "Narzędzie linii dupy",
13218
+ mode_line: "Narzędzie linii",
13219
13219
  mode_rect: "Narzędzie prostokąta",
13220
13220
  mode_square: "Narzędzie kwadratu",
13221
13221
  mode_fhrect: "Prostokąt ręczny",
@@ -72909,12 +72909,24 @@ var { $qa: FK, $id: $, $click: IK, isValidUnit: LK, getTypeMap: RK, convertUnit:
72909
72909
  this.editor = e;
72910
72910
  }
72911
72911
  displayTool(e) {
72912
- FK(`.${e}`).map((e) => e.style.removeProperty("display"));
72912
+ let t = FK(`.${e}`);
72913
+ if (t.length) {
72914
+ t.forEach((e) => e.style.removeProperty("display"));
72915
+ return;
72916
+ }
72917
+ let n = $(e);
72918
+ n && n.style.removeProperty("display");
72913
72919
  }
72914
72920
  hideTool(e) {
72915
- FK(`.${e}`).forEach((e) => {
72916
- e.style.display = "none";
72917
- });
72921
+ let t = FK(`.${e}`);
72922
+ if (t.length) {
72923
+ t.forEach((e) => {
72924
+ e.style.display = "none";
72925
+ });
72926
+ return;
72927
+ }
72928
+ let n = $(e);
72929
+ n && (n.style.display = "none");
72918
72930
  }
72919
72931
  get selectedElement() {
72920
72932
  return this.editor.selectedElement;
@@ -73798,7 +73810,7 @@ var { $id: tq, $click: nq, decode64: rq } = oW, iq = class extends OK {
73798
73810
  }
73799
73811
  loadSvgString(e, { noAlert: t } = {}) {
73800
73812
  if (this.svgCanvas.setSvgString(e) !== !1) {
73801
- this.updateCanvas();
73813
+ this.updateCanvas(), this.zoomChanged(window, "canvas", !0);
73802
73814
  return;
73803
73815
  }
73804
73816
  throw t || seAlert(this.i18next.t("notification.errorLoadingSVG")), Error("Error loading SVG");