@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/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
- return (0, import_lodash2.isNil)(dom?.offsetParent) || style?.display === "none";
674
+ if (style?.display === "none") {
675
+ return true;
676
+ }
677
+ return false;
672
678
  };
673
679
  var isRectInit = (rect) => {
674
680
  if (!rect) {