Skip to content

Commit 3a70d63

Browse files
authored
fix: fix async assign invoke (#223)
* fix: fix async assign invoke * fix: fix rust deps * chore: update version
1 parent d20b99f commit 3a70d63

File tree

20 files changed

+341
-543
lines changed

20 files changed

+341
-543
lines changed

packages/layout-gpu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/layout-gpu",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "graph layout algorithm implemented with GPGPU",
55
"license": "MIT",
66
"repository": {

packages/layout-gpu/src/fruchterman.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class FruchtermanLayout implements Layout<FruchtermanLayoutOptions> {
7171
* To directly assign the positions to the nodes.
7272
*/
7373
async assign(graph: Graph, options?: FruchtermanLayoutOptions) {
74-
this.genericFruchtermanLayout(true, graph, options);
74+
await this.genericFruchtermanLayout(true, graph, options);
7575
}
7676

7777
private async genericFruchtermanLayout(

packages/layout-gpu/src/gforce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class GForceLayout implements Layout<ForceLayoutOptions> {
8383
* To directly assign the positions to the nodes.
8484
*/
8585
async assign(graph: Graph, options?: ForceLayoutOptions) {
86-
this.genericForceLayout(true, graph, options);
86+
await this.genericForceLayout(true, graph, options);
8787
}
8888

8989
private async genericForceLayout(

0 commit comments

Comments
 (0)