@univerjs/engine-render 0.11.0 → 0.12.0

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
@@ -45537,7 +45537,6 @@ class t_ {
45537
45537
  }
45538
45538
  }
45539
45539
  const g0 = new t_();
45540
- /*! https://mths.be/codepointat v0.2.0 by @mathias */
45541
45540
  String.prototype.codePointAt || (function() {
45542
45541
  var r = (function() {
45543
45542
  try {
@@ -56870,7 +56869,13 @@ function re(r, t = 0) {
56870
56869
  const e = r == null ? void 0 : r.getSkeletonData(), a = Q1(t);
56871
56870
  if (!e)
56872
56871
  return null;
56873
- const { pages: s } = e, n = s[s.length - 1], { width: i, height: o } = n;
56872
+ const { pages: s } = e;
56873
+ if (!s || s.length === 0)
56874
+ return null;
56875
+ const n = s[s.length - 1];
56876
+ if (!n)
56877
+ return null;
56878
+ const { width: i, height: o } = n;
56874
56879
  if (a === 0)
56875
56880
  return { width: i, height: o };
56876
56881
  if (Math.abs(a) === Math.PI / 2)
package/lib/index.js CHANGED
@@ -45537,7 +45537,6 @@ class t_ {
45537
45537
  }
45538
45538
  }
45539
45539
  const g0 = new t_();
45540
- /*! https://mths.be/codepointat v0.2.0 by @mathias */
45541
45540
  String.prototype.codePointAt || (function() {
45542
45541
  var r = (function() {
45543
45542
  try {
@@ -56870,7 +56869,13 @@ function re(r, t = 0) {
56870
56869
  const e = r == null ? void 0 : r.getSkeletonData(), a = Q1(t);
56871
56870
  if (!e)
56872
56871
  return null;
56873
- const { pages: s } = e, n = s[s.length - 1], { width: i, height: o } = n;
56872
+ const { pages: s } = e;
56873
+ if (!s || s.length === 0)
56874
+ return null;
56875
+ const n = s[s.length - 1];
56876
+ if (!n)
56877
+ return null;
56878
+ const { width: i, height: o } = n;
56874
56879
  if (a === 0)
56875
56880
  return { width: i, height: o };
56876
56881
  if (Math.abs(a) === Math.PI / 2)