71 lines
1.3 KiB
JavaScript
71 lines
1.3 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 outerLineLength1State = atom({
|
|
//길이1
|
|
key: 'outerLineLength1State',
|
|
default: 0,
|
|
})
|
|
|
|
export const outerLineLength2State = atom({
|
|
// 길이2
|
|
key: 'outerLineLength2State',
|
|
default: 0,
|
|
})
|
|
|
|
export const outerLineArrow1State = atom({
|
|
// 방향1
|
|
key: 'outerLineArrow1State',
|
|
default: '',
|
|
})
|
|
|
|
export const outerLineArrow2State = atom({
|
|
// 방향2
|
|
key: 'outerLineArrow2State',
|
|
default: '',
|
|
})
|
|
|
|
export const outerLineAngle1State = atom({
|
|
// 각도1
|
|
key: 'outerLineAngle1State',
|
|
default: 0,
|
|
})
|
|
|
|
export const outerLineAngle2State = atom({
|
|
// 각도2
|
|
key: 'outerLineAngle2State',
|
|
default: 0,
|
|
})
|
|
|
|
export const outerLineDiagonalState = atom({
|
|
// 대각선
|
|
key: 'outerLineDiagonalState',
|
|
default: 0,
|
|
})
|
|
|
|
export const outerLineTypeState = atom({
|
|
key: 'outerLineTypeState',
|
|
default: OUTER_LINE_TYPE.OUTER_LINE,
|
|
})
|
|
|
|
export const outerLinePointsState = atom({
|
|
key: 'outerLinePointsState',
|
|
default: [],
|
|
})
|
|
|
|
export const outerLineFixState = atom({
|
|
key: 'outerLineFixState',
|
|
default: false,
|
|
})
|