Compare commits
No commits in common. "95acaa9d9d99a1f257820dafcff0d93dcefef0bc" and "0dde17ef061c019d0e4343b23ea8714e0e75aa27" have entirely different histories.
95acaa9d9d
...
0dde17ef06
@ -123,10 +123,9 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
|
|
||||||
// 캡쳐 전 처리
|
// 캡쳐 전 처리
|
||||||
const beforeCapture = () => {
|
const beforeCapture = () => {
|
||||||
// setCanvasZoom(100)
|
setCanvasZoom(100)
|
||||||
const x = canvas.width / 2
|
canvas.set({ zoom: 1 })
|
||||||
const y = canvas.height / 2
|
canvas.viewportTransform = [1, 0, 0, 1, 0, 0]
|
||||||
canvas.zoomToPoint(new fabric.Point(x, y), 0.5)
|
|
||||||
changeFontSize('lengthText', '28')
|
changeFontSize('lengthText', '28')
|
||||||
changeFontSize('circuitNumber', '28')
|
changeFontSize('circuitNumber', '28')
|
||||||
changeFontSize('flowText', '28')
|
changeFontSize('flowText', '28')
|
||||||
@ -135,9 +134,6 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
|
|
||||||
// 캡쳐 후 처리
|
// 캡쳐 후 처리
|
||||||
const afterCapture = () => {
|
const afterCapture = () => {
|
||||||
setCanvasZoom(100)
|
|
||||||
canvas.set({ zoom: 1 })
|
|
||||||
canvas.viewportTransform = [1, 0, 0, 1, 0, 0]
|
|
||||||
changeFontSize('lengthText', lengthText.fontSize.value)
|
changeFontSize('lengthText', lengthText.fontSize.value)
|
||||||
changeFontSize('circuitNumber', circuitNumberText.fontSize.value)
|
changeFontSize('circuitNumber', circuitNumberText.fontSize.value)
|
||||||
changeFontSize('flowText', flowText.fontSize.value)
|
changeFontSize('flowText', flowText.fontSize.value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user