diff options
author | sanine <sanine.not@pm.me> | 2022-06-05 22:31:03 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-06-05 22:31:03 -0500 |
commit | fcb07257f0208612816c888b7b6f9b8ac4c4570e (patch) | |
tree | 272d1ceccf49ebfeced3ed93f1dd3fd9488d7c73 /src/main.js | |
parent | 980dc4390e5414b4892421dea3ebb99f1a5839ac (diff) |
add draggable 'windows'node-based
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js index 7e4ab79..5158cf3 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,8 @@ +import h from './Util/DomUtil.js'; import { Transform, Canvas } from './Map/Canvas.js'; import { Node, Shape, Point, Path, Polygon, Text } from './Map/Shapes.js'; - -function point(x, y) { this.x = x; this.y = y; }; +import { LayerData, LayerView, LayerController } from './Map/Layer.js'; +import DraggableWindow from './Draggable/Draggable.js'; const canvas = new Canvas('root'); const transform = new Transform(); @@ -22,3 +23,9 @@ const shapes = [ ]; canvas.render(transform, shapes); + + +const win = new DraggableWindow('Layers'); +const layerView = new LayerView(win.div); +const layerData = new LayerData(); +const layerController = new LayerController(layerData, layerView); |