plan 저장 전 선택한 setupsurface 선택된 경우 초기화
This commit is contained in:
parent
a183453390
commit
3811f224d6
@ -173,6 +173,13 @@ export function usePlan(params = {}) {
|
||||
* @param {boolean} saveAlert - 저장 완료 알림 표시 여부
|
||||
*/
|
||||
const saveCanvas = async (saveAlert = true) => {
|
||||
// 저장 전 선택되어 있는 object 제거
|
||||
const setupSurfaces = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE)
|
||||
|
||||
setupSurfaces.forEach((surface) => {
|
||||
surface.set({ fill: 'rgba(255,255,255,0.1)', strokeDashArray: [10, 4], strokeWidth: 1 })
|
||||
})
|
||||
|
||||
const canvasStatus = currentCanvasData('save')
|
||||
const result = await putCanvasStatus(canvasStatus, saveAlert)
|
||||
//캔버스 저장 완료 후
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user