SOURCE

var miCanvas = new MiCanvas();

miCanvas.nodes.add(new Polygon({
    points: [
        {x: 100 , y: 100},
        {x: 130 , y: 120},
        {x: 150 , y: 100}
    ]
}))
* {
  margin: 0px;
}
body{
    padding: 10px;
}
canvas{
    border: 1px solid red;
}
console 命令行工具 X clear

                    
>
console