diff src/render/StreamedGraph.ts @ 108:5e6840229a05

rewrite freeStatements rendering to put more planning in layout
author drewp@bigasterisk.com
date Fri, 18 Mar 2022 11:57:38 -0700
parents 042bd3361339
children cbcd82d21356
line wrap: on
line diff
--- a/src/render/StreamedGraph.ts	Sun Mar 13 22:02:30 2022 -0700
+++ b/src/render/StreamedGraph.ts	Fri Mar 18 11:57:38 2022 -0700
@@ -6,6 +6,7 @@
 import { GraphView } from "./GraphView";
 import { StreamedGraphClient } from "../layout/StreamedGraphClient";
 import { style, addFontToRootPage } from "./style";
+import { ViewConfig } from "../layout/ViewConfig";
 
 // export * from "./graph_queries";
 
@@ -107,8 +108,11 @@
     if (!this.graphViewDirty) return;
 
     if ((this.graph as VersionedGraph).store && this.graph.store) {
+
+      const vc = new ViewConfig()
+
       await this._graphAreaShowGraph(
-        new GraphView(this.url, this.view, this.graph.store)
+        new GraphView([this.url], this.graph.store, vc)
       );
       this.graphViewDirty = false;
     } else {