diff --git a/src/index.html b/src/index.html index 112f1ef..d7ec81c 100644 --- a/src/index.html +++ b/src/index.html @@ -16,7 +16,7 @@

Tools

Example Scenarios

diff --git a/src/wdg-editor/index.html b/src/wdg-editor/index.html index a47c3fd..909a769 100644 --- a/src/wdg-editor/index.html +++ b/src/wdg-editor/index.html @@ -7,5 +7,7 @@ -

Weighted Directed Graph Editor

+

DGF Prototype

+

Weighted Directed Graph Editor

+
\ No newline at end of file diff --git a/src/wdg-editor/index.js b/src/wdg-editor/index.js index e69de29..004f9dc 100644 --- a/src/wdg-editor/index.js +++ b/src/wdg-editor/index.js @@ -0,0 +1,9 @@ +import { Box } from '../classes/display/box.js'; +import { Scene } from '../classes/display/scene.js'; +import { WeightedDirectedGraph } from '../classes/supporting/wdg.js'; + +const rootElement = document.getElementById('scene'); +const rootBox = new Box('rootBox', rootElement).flex(); +window.disableSceneControls = true; +window.scene = new Scene('WDG Editor', rootBox); +window.graph = new WeightedDirectedGraph('new', window.scene, { editable: true }).withFlowchart();