@univerjs/engine-render 0.10.14-nightly.202511080715 → 0.11.0-nightly.202511151013

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
@@ -45946,7 +45946,6 @@ class v_ {
45946
45946
  }
45947
45947
  }
45948
45948
  const g0 = new v_();
45949
- /*! https://mths.be/codepointat v0.2.0 by @mathias */
45950
45949
  String.prototype.codePointAt || (function() {
45951
45950
  var r = (function() {
45952
45951
  try {
@@ -57279,7 +57278,13 @@ function re(r, t = 0) {
57279
57278
  const e = r == null ? void 0 : r.getSkeletonData(), a = Q1(t);
57280
57279
  if (!e)
57281
57280
  return null;
57282
- const { pages: s } = e, n = s[s.length - 1], { width: i, height: o } = n;
57281
+ const { pages: s } = e;
57282
+ if (!s || s.length === 0)
57283
+ return null;
57284
+ const n = s[s.length - 1];
57285
+ if (!n)
57286
+ return null;
57287
+ const { width: i, height: o } = n;
57283
57288
  if (a === 0)
57284
57289
  return { width: i, height: o };
57285
57290
  if (Math.abs(a) === Math.PI / 2)
package/lib/index.js CHANGED
@@ -45946,7 +45946,6 @@ class v_ {
45946
45946
  }
45947
45947
  }
45948
45948
  const g0 = new v_();
45949
- /*! https://mths.be/codepointat v0.2.0 by @mathias */
45950
45949
  String.prototype.codePointAt || (function() {
45951
45950
  var r = (function() {
45952
45951
  try {
@@ -57279,7 +57278,13 @@ function re(r, t = 0) {
57279
57278
  const e = r == null ? void 0 : r.getSkeletonData(), a = Q1(t);
57280
57279
  if (!e)
57281
57280
  return null;
57282
- const { pages: s } = e, n = s[s.length - 1], { width: i, height: o } = n;
57281
+ const { pages: s } = e;
57282
+ if (!s || s.length === 0)
57283
+ return null;
57284
+ const n = s[s.length - 1];
57285
+ if (!n)
57286
+ return null;
57287
+ const { width: i, height: o } = n;
57283
57288
  if (a === 0)
57284
57289
  return { width: i, height: o };
57285
57290
  if (Math.abs(a) === Math.PI / 2)