summaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js
index 5c6db59..7e4ab79 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,5 +1,5 @@
import { Transform, Canvas } from './Map/Canvas.js';
-import { Node, Shape, Point, Path, Polygon } from './Map/Shapes.js';
+import { Node, Shape, Point, Path, Polygon, Text } from './Map/Shapes.js';
function point(x, y) { this.x = x; this.y = y; };
@@ -18,6 +18,7 @@ const shapes = [
new Node(200, 200),
new Node(300, 200),
]),
+ new Text(new Node(10, 100), 'hello, world!'),
];
canvas.render(transform, shapes);