Skip to content

Commit

Permalink
chore: adapt g devtool (#6164)
Browse files Browse the repository at this point in the history
Co-authored-by: antv <[email protected]>
  • Loading branch information
Aarebecca and antv authored Aug 9, 2024
1 parent 77558e7 commit e62fe66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/g6/__tests__/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ async function render() {
const testCase = demos[Demo as keyof typeof demos];
if (!testCase) return;

const result = await testCase({ container: canvas, animation: Animation, theme: Theme });
const graph = await testCase({ container: canvas, animation: Animation, theme: Theme });

Object.assign(window, { graph: result });
Object.assign(window, { graph, __g_instances__: Object.values(graph.getCanvas().getLayers()) });

renderForm(panels.panel, testCase.form);
}
Expand Down

0 comments on commit e62fe66

Please sign in to comment.