- Demo: Rename import to match named dist export
parent
4716a1985f
commit
5ba350061e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue