@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 +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2941,7 +2941,17 @@ var Canvas = class {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
2944
|
-
await new Promise(
|
|
2944
|
+
await new Promise((resolve) => {
|
|
2945
|
+
let resolved = false;
|
|
2946
|
+
const done = () => {
|
|
2947
|
+
if (!resolved) {
|
|
2948
|
+
resolved = true;
|
|
2949
|
+
resolve();
|
|
2950
|
+
}
|
|
2951
|
+
};
|
|
2952
|
+
requestAnimationFrame(done);
|
|
2953
|
+
setTimeout(done, 50);
|
|
2954
|
+
});
|
|
2945
2955
|
const isVertical = this.orientation === "TB" || this.orientation === "BT";
|
|
2946
2956
|
for (const node of newNodes.values()) {
|
|
2947
2957
|
node.measure(isVertical);
|