|
@@ -86,13 +86,13 @@ export class GraphView extends SCanvasView {
|
|
|
canvas.pen.color = new SColor(this.strokecolor);
|
|
|
canvas.brush.color = new SColor(this.bgcolor);
|
|
|
if (this.type == 0) {
|
|
|
- canvas.drawLine(80, 57, 120, 57);
|
|
|
+ canvas.drawLine(0, 14, 28, 14);
|
|
|
} else if (this.type == 1) {
|
|
|
- canvas.drawRect(50, 28, 100, 57);
|
|
|
+ canvas.drawRect(0, 0, 28, 28);
|
|
|
} else if (this.type == 2) {
|
|
|
if (this.img) {
|
|
|
console.log(this.img)
|
|
|
- canvas.drawImage(this.img, 86, 43, 28, 28)
|
|
|
+ canvas.drawImage(this.img, 0, 0, 28, 28)
|
|
|
}
|
|
|
}
|
|
|
}
|