@3plate/graph-core 0.1.16 → 0.1.17

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.cjs CHANGED
@@ -2984,7 +2984,17 @@ var Canvas = class {
2984
2984
  }
2985
2985
  }
2986
2986
  }
2987
- await new Promise(requestAnimationFrame);
2987
+ await new Promise((resolve) => {
2988
+ let resolved = false;
2989
+ const done = () => {
2990
+ if (!resolved) {
2991
+ resolved = true;
2992
+ resolve();
2993
+ }
2994
+ };
2995
+ requestAnimationFrame(done);
2996
+ setTimeout(done, 50);
2997
+ });
2988
2998
  const isVertical = this.orientation === "TB" || this.orientation === "BT";
2989
2999
  for (const node of newNodes.values()) {
2990
3000
  node.measure(isVertical);