@flowgram.ai/renderer 0.1.14 → 0.1.16
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/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -628,8 +628,14 @@ import { Disposable } from "@flowgram.ai/utils";
|
|
|
628
628
|
// src/utils/element.ts
|
|
629
629
|
import { isNil } from "lodash";
|
|
630
630
|
var isHidden = (dom) => {
|
|
631
|
+
if (!dom || isNil(dom?.offsetParent)) {
|
|
632
|
+
return true;
|
|
633
|
+
}
|
|
631
634
|
const style = window.getComputedStyle(dom);
|
|
632
|
-
|
|
635
|
+
if (style?.display === "none") {
|
|
636
|
+
return true;
|
|
637
|
+
}
|
|
638
|
+
return false;
|
|
633
639
|
};
|
|
634
640
|
var isRectInit = (rect) => {
|
|
635
641
|
if (!rect) {
|