@univerjs/core 0.9.3 → 0.9.4

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/lib/es/index.js CHANGED
@@ -11804,9 +11804,9 @@ class Fg extends Po {
11804
11804
  updateDocumentDataPageSize(n, r) {
11805
11805
  const { documentStyle: s } = this.snapshot;
11806
11806
  if (!s.pageSize) {
11807
- n = n != null ? n : Number.POSITIVE_INFINITY, r = r != null ? r : Number.POSITIVE_INFINITY, s.pageSize = {
11808
- width: n,
11809
- height: r
11807
+ s.pageSize = {
11808
+ width: n != null ? n : Number.POSITIVE_INFINITY,
11809
+ height: r != null ? r : Number.POSITIVE_INFINITY
11810
11810
  };
11811
11811
  return;
11812
11812
  }
@@ -11820,9 +11820,9 @@ class Fg extends Po {
11820
11820
  c.size.width = i, c.size.height = o, c.positionH.posOffset = a, c.positionV.posOffset = l;
11821
11821
  }
11822
11822
  setZoomRatio(n = 1) {
11823
- this.snapshot.settings == null ? this.snapshot.settings = {
11823
+ this.snapshot.settings ? this.snapshot.settings.zoomRatio = n : this.snapshot.settings = {
11824
11824
  zoomRatio: n
11825
- } : this.snapshot.settings.zoomRatio = 1;
11825
+ };
11826
11826
  }
11827
11827
  setDisabled(n) {
11828
11828
  this.snapshot.disabled = n;
@@ -15683,7 +15683,7 @@ class pE extends Ve {
15683
15683
  }
15684
15684
  }
15685
15685
  var oc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(oc || {}), EE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(EE || {});
15686
- const _l = ht("core.image-io.service"), CE = "0.9.3", RE = {
15686
+ const _l = ht("core.image-io.service"), CE = "0.9.4", RE = {
15687
15687
  version: CE
15688
15688
  };
15689
15689
  function IE(e = "", t = As.ZH_CN, n = "") {
package/lib/index.js CHANGED
@@ -11804,9 +11804,9 @@ class Fg extends Po {
11804
11804
  updateDocumentDataPageSize(n, r) {
11805
11805
  const { documentStyle: s } = this.snapshot;
11806
11806
  if (!s.pageSize) {
11807
- n = n != null ? n : Number.POSITIVE_INFINITY, r = r != null ? r : Number.POSITIVE_INFINITY, s.pageSize = {
11808
- width: n,
11809
- height: r
11807
+ s.pageSize = {
11808
+ width: n != null ? n : Number.POSITIVE_INFINITY,
11809
+ height: r != null ? r : Number.POSITIVE_INFINITY
11810
11810
  };
11811
11811
  return;
11812
11812
  }
@@ -11820,9 +11820,9 @@ class Fg extends Po {
11820
11820
  c.size.width = i, c.size.height = o, c.positionH.posOffset = a, c.positionV.posOffset = l;
11821
11821
  }
11822
11822
  setZoomRatio(n = 1) {
11823
- this.snapshot.settings == null ? this.snapshot.settings = {
11823
+ this.snapshot.settings ? this.snapshot.settings.zoomRatio = n : this.snapshot.settings = {
11824
11824
  zoomRatio: n
11825
- } : this.snapshot.settings.zoomRatio = 1;
11825
+ };
11826
11826
  }
11827
11827
  setDisabled(n) {
11828
11828
  this.snapshot.disabled = n;
@@ -15683,7 +15683,7 @@ class pE extends Ve {
15683
15683
  }
15684
15684
  }
15685
15685
  var oc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(oc || {}), EE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(EE || {});
15686
- const _l = ht("core.image-io.service"), CE = "0.9.3", RE = {
15686
+ const _l = ht("core.image-io.service"), CE = "0.9.4", RE = {
15687
15687
  version: CE
15688
15688
  };
15689
15689
  function IE(e = "", t = As.ZH_CN, n = "") {