@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/index.js
CHANGED
|
@@ -667,8 +667,14 @@ var import_utils5 = require("@flowgram.ai/utils");
|
|
|
667
667
|
// src/utils/element.ts
|
|
668
668
|
var import_lodash2 = require("lodash");
|
|
669
669
|
var isHidden = (dom) => {
|
|
670
|
+
if (!dom || (0, import_lodash2.isNil)(dom?.offsetParent)) {
|
|
671
|
+
return true;
|
|
672
|
+
}
|
|
670
673
|
const style = window.getComputedStyle(dom);
|
|
671
|
-
|
|
674
|
+
if (style?.display === "none") {
|
|
675
|
+
return true;
|
|
676
|
+
}
|
|
677
|
+
return false;
|
|
672
678
|
};
|
|
673
679
|
var isRectInit = (rect) => {
|
|
674
680
|
if (!rect) {
|