스크린샷 찍을 경우 0,0 을 기준으로 50% 축소

This commit is contained in:
hyojun.choi 2025-07-07 13:42:50 +09:00
parent 16432f94cd
commit 2b0df28ab9

View File

@ -124,8 +124,8 @@ export default function CircuitTrestleSetting({ id }) {
//
const beforeCapture = () => {
// setCanvasZoom(100)
const x = canvas.width / 2
const y = canvas.height / 2
const x = 0
const y = 0
canvas.zoomToPoint(new fabric.Point(x, y), 0.5)
changeFontSize('lengthText', '28')
changeFontSize('circuitNumber', '28')