|
@@ -29,10 +29,10 @@ export const Component = defineComponent({
|
|
|
|
|
|
const ctx = canvasRef.value?.getContext("2d") as CanvasRenderingContext2D;
|
|
|
|
|
|
- const width = data.layout.size[0];
|
|
|
- const height = data.layout.size[1];
|
|
|
- canvas.width = Math.ceil(Math.max(1, width));
|
|
|
- canvas.height = Math.ceil(Math.max(1, height));
|
|
|
+ const width = Math.ceil(Math.max(1, data.layout.size[0] *1.5));
|
|
|
+ const height = Math.ceil(Math.max(1, data.layout.size[1] *1.5));
|
|
|
+ canvas.width = width
|
|
|
+ canvas.height = height
|
|
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
|
ctx.lineWidth = data.value.lineWidth;
|
|
|
ctx.strokeStyle = data.value.lineColor;
|