diff --git a/index.html b/index.html index bd2e6e4..57d2720 100644 --- a/index.html +++ b/index.html @@ -8,9 +8,6 @@ - - - diff --git a/index.js b/index.js index 02dbd46..af1059a 100644 --- a/index.js +++ b/index.js @@ -16,12 +16,12 @@ app.addEventListener('load', function () { app.setTool('Draw'); app.setDrawShape(tools.Draw.options[0]); //var layer = new dwv.gui.DrawLayer('layerGroup0') - factory = new dwv.tool.draw.CircleFactory(); - var point1 = new dwv.math.Point2D(10, 10) - var point2 = new dwv.math.Point2D(10, 100) - var draw = factory.create([point1, point2], app.getToolboxController().getSelectedTool().style, app.getActiveLayerGroup().getActiveViewLayer().getViewController()) - app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer().add(draw) - console.log(app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer().getChildren()[0]) +// factory = new dwv.tool.draw.CircleFactory(); +// var point1 = new dwv.math.Point2D(10, 10) +// var point2 = new dwv.math.Point2D(10, 100) +// var draw = factory.create([point1, point2], app.getToolboxController().getSelectedTool().style, app.getActiveLayerGroup().getActiveViewLayer().getViewController()) +// app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer().add(draw) +// console.log(app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer().getChildren()[0]) }); // load dicom data app.loadURLs(['https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm']); \ No newline at end of file