canvasSize 수정
This commit is contained in:
parent
5eb70a176e
commit
3762b6b81e
@ -49,7 +49,7 @@ export default function PlanSizeSetting(props) {
|
|||||||
setPlanSizeSettingMode((prev) => {
|
setPlanSizeSettingMode((prev) => {
|
||||||
return {
|
return {
|
||||||
...prev,
|
...prev,
|
||||||
[name]: Number(value),
|
[name]: Number(value) / 10,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -72,7 +72,7 @@ export default function PlanSizeSetting(props) {
|
|||||||
type="text"
|
type="text"
|
||||||
className="input-origin block"
|
className="input-origin block"
|
||||||
name={`originHorizon`}
|
name={`originHorizon`}
|
||||||
value={planSizeSettingMode.originHorizon}
|
value={planSizeSettingMode.originHorizon * 10}
|
||||||
onChange={(e) => onlyNumberInputChange(e, changeInput)}
|
onChange={(e) => onlyNumberInputChange(e, changeInput)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -85,7 +85,7 @@ export default function PlanSizeSetting(props) {
|
|||||||
type="text"
|
type="text"
|
||||||
className="input-origin block"
|
className="input-origin block"
|
||||||
name={`originVertical`}
|
name={`originVertical`}
|
||||||
value={planSizeSettingMode.originVertical}
|
value={planSizeSettingMode.originVertical * 10}
|
||||||
onChange={(e) => onlyNumberInputChange(e, changeInput)}
|
onChange={(e) => onlyNumberInputChange(e, changeInput)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -612,6 +612,9 @@ export function useCanvasSetting(executeEffect = true) {
|
|||||||
|
|
||||||
/** 도면크기 설정 */
|
/** 도면크기 설정 */
|
||||||
setPlanSizeSettingMode({ ...planSizeSettingMode, originHorizon: res.originHorizon, originVertical: res.originVertical })
|
setPlanSizeSettingMode({ ...planSizeSettingMode, originHorizon: res.originHorizon, originVertical: res.originVertical })
|
||||||
|
canvas.setWidth(res.originHorizon)
|
||||||
|
canvas.setHeight(res.originVertical)
|
||||||
|
canvas.renderAll()
|
||||||
|
|
||||||
/** 데이터 설정 */
|
/** 데이터 설정 */
|
||||||
setSettingModalFirstOptions({
|
setSettingModalFirstOptions({
|
||||||
|
|||||||
@ -43,7 +43,7 @@ export const fontSizeState = atom({
|
|||||||
export const canvasSizeState = atom({
|
export const canvasSizeState = atom({
|
||||||
key: 'canvasSize',
|
key: 'canvasSize',
|
||||||
default: {
|
default: {
|
||||||
vertical: 1000,
|
vertical: 1600,
|
||||||
horizontal: 1600,
|
horizontal: 1600,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user