71 lines
1.6 KiB
JavaScript
71 lines
1.6 KiB
JavaScript
import { atom } from 'recoil'
|
|
|
|
export const OUTER_LINE_TYPE = {
|
|
OUTER_LINE: 'outerLine', // 외벽선
|
|
RIGHT_ANGLE: 'rightAngle', // 직각
|
|
DOUBLE_PITCH: 'doublePitch',
|
|
ANGLE: 'angle', // 각도
|
|
DIAGONAL_LINE: 'diagonalLine', // 대각선
|
|
}
|
|
|
|
/**
|
|
* 외벽선 작성에서 사용하는 recoilState
|
|
*/
|
|
|
|
export const placementShapeDrawingLength1State = atom({
|
|
//길이1
|
|
key: 'placementShapeDrawingLength1State',
|
|
default: 0,
|
|
})
|
|
|
|
export const placementShapeDrawingLength2State = atom({
|
|
// 길이2
|
|
key: 'placementShapeDrawingLength2State',
|
|
default: 0,
|
|
})
|
|
|
|
export const placementShapeDrawingArrow1State = atom({
|
|
// 방향1
|
|
key: 'placementShapeDrawingArrow1State',
|
|
default: '',
|
|
})
|
|
|
|
export const placementShapeDrawingArrow2State = atom({
|
|
// 방향2
|
|
key: 'placementShapeDrawingArrow2State',
|
|
default: '',
|
|
})
|
|
|
|
export const placementShapeDrawingAngle1State = atom({
|
|
// 각도1
|
|
key: 'placementShapeDrawingAngle1State',
|
|
default: 0,
|
|
})
|
|
|
|
export const placementShapeDrawingAngle2State = atom({
|
|
// 각도2
|
|
key: 'placementShapeDrawingAngle2State',
|
|
default: 0,
|
|
})
|
|
|
|
export const placementShapeDrawingDiagonalState = atom({
|
|
// 대각선
|
|
key: 'placementShapeDrawingDiagonalState',
|
|
default: 0,
|
|
})
|
|
|
|
export const placementShapeDrawingTypeState = atom({
|
|
key: 'placementShapeDrawingTypeState',
|
|
default: OUTER_LINE_TYPE.OUTER_LINE,
|
|
})
|
|
|
|
export const placementShapeDrawingPointsState = atom({
|
|
key: 'placementShapeDrawingPointsState',
|
|
default: [],
|
|
})
|
|
|
|
export const placementShapeDrawingFixState = atom({
|
|
key: 'placementShapeDrawingFixState',
|
|
default: false,
|
|
})
|