<template>
    <canvas id="drawPolyline1" width="800" height="100" />
</template>

<script lang="ts">
    import { SCanvasView, SColor, SPainter } from "@saga-web/draw/lib";

    class TestView extends SCanvasView {

        constructor() {
            super("drawPolyline1")
        }

        onDraw(canvas: SPainter): void {
            canvas.drawLine(0,0, 100, 100);
        }
    }

    export default {
        mounted() {
            new TestView();
        }
    }
</script>
