복사된 object 사이즈 변경 시 길이 반영 안되는 현상 수정
This commit is contained in:
parent
d031c0d6e0
commit
81d04ff25a
@ -17,6 +17,7 @@ export function useCommonUtils() {
|
||||
const { addCanvasMouseEventListener, addDocumentEventListener, initEvent } = useEvent()
|
||||
const dimensionSettings = useRecoilValue(dimensionLineSettingsState)
|
||||
const dimensionLineTextFont = useRecoilValue(fontSelector('dimensionLineText'))
|
||||
const lengthTextFont = useRecoilValue(fontSelector('lengthText'))
|
||||
const commonTextFont = useRecoilValue(fontSelector('commonText'))
|
||||
const [commonUtils, setCommonUtilsState] = useRecoilState(commonUtilsState)
|
||||
const { addPopup } = usePopup()
|
||||
@ -561,6 +562,7 @@ export function useCommonUtils() {
|
||||
|
||||
obj.clone((cloned) => {
|
||||
clonedObj = cloned
|
||||
clonedObj.fontSize = lengthTextFont.fontSize.value
|
||||
})
|
||||
|
||||
addCanvasMouseEventListener('mouse:move', (e) => {
|
||||
@ -595,6 +597,7 @@ export function useCommonUtils() {
|
||||
//배치면일 경우
|
||||
if (obj.name === 'roof') {
|
||||
clonedObj.setCoords()
|
||||
clonedObj.fire('modified')
|
||||
clonedObj.fire('polygonMoved')
|
||||
clonedObj.set({ direction: obj.direction, directionText: obj.directionText, roofMaterial: obj.roofMaterial })
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user