- Demo: Rename import to match named dist export

This commit is contained in:
Brett Zamir
2018-11-22 08:53:09 +08:00
parent 4716a1985f
commit 5ba350061e

View File

@@ -25,7 +25,7 @@
</div>
<script type="module">
import Canvas from '../editor/svgcanvas.js';
import SvgCanvas from '../editor/svgcanvas.js';
const container = document.querySelector('#editorContainer');
const {width, height} = {width: 500, height: 300};
@@ -42,7 +42,7 @@ const config = {
baseUnit: 'px',
};
window.canvas = new Canvas(container, config);
window.canvas = new SvgCanvas(container, config);
canvas.updateCanvas(width, height);
window.fill = function (colour) {