@univerjs/engine-render 0.15.4 → 0.15.5

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
@@ -34425,8 +34425,8 @@ class a3 extends D2 {
34425
34425
  }
34426
34426
  get ancestorGroup() {
34427
34427
  let e = null, a = this.getParent();
34428
- for (; a != null; )
34429
- a.classType === Z.GROUP && (e = a), a = a.getParent();
34428
+ for (; a != null && a; )
34429
+ a.classType === Z.GROUP && (e = a), a.classType === Z.GROUP ? a = a.getParent() : a = null;
34430
34430
  return e;
34431
34431
  }
34432
34432
  get skewX() {
package/lib/index.js CHANGED
@@ -34425,8 +34425,8 @@ class a3 extends D2 {
34425
34425
  }
34426
34426
  get ancestorGroup() {
34427
34427
  let e = null, a = this.getParent();
34428
- for (; a != null; )
34429
- a.classType === Z.GROUP && (e = a), a = a.getParent();
34428
+ for (; a != null && a; )
34429
+ a.classType === Z.GROUP && (e = a), a.classType === Z.GROUP ? a = a.getParent() : a = null;
34430
34430
  return e;
34431
34431
  }
34432
34432
  get skewX() {