conflict resolve
This commit is contained in:
parent
b321f75e6f
commit
8089caafdf
@ -7,7 +7,7 @@ import QPolygon from '@/components/fabric/QPolygon'
|
||||
|
||||
import RangeSlider from './ui/RangeSlider'
|
||||
import { useRecoilState, useRecoilValue } from 'recoil'
|
||||
import { canvasAtom, canvasSizeState, fontSizeState, sortedPolygonArray } from '@/store/canvasAtom'
|
||||
import { canvasAtom, canvasListState, canvasSizeState, fontSizeState, sortedPolygonArray } from '@/store/canvasAtom'
|
||||
import { QLine } from '@/components/fabric/QLine'
|
||||
import { getTests, getCanvasState, insertCanvasState } from '@/lib/canvas'
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ import QRect from '@/components/fabric/QRect'
|
||||
import QPolygon from '@/components/fabric/QPolygon'
|
||||
import { findTopTwoIndexesByDistance, getCenterPoint, getDirection, getStartIndex, rearrangeArray } from '@/util/canvas-util'
|
||||
import { useRecoilState } from 'recoil'
|
||||
import { fontSizeState, roofState, sortedPolygonArray, templatePolygonArrayState, wallState } from '@/store/canvasAtom'
|
||||
import { fontSizeState, roofState, sortedPolygonArray, wallState } from '@/store/canvasAtom'
|
||||
import { QLine } from '@/components/fabric/QLine'
|
||||
|
||||
export const Mode = {
|
||||
@ -29,7 +29,6 @@ export function useMode() {
|
||||
const [sortedArray, setSortedArray] = useRecoilState(sortedPolygonArray)
|
||||
const [roof, setRoof] = useRecoilState(roofState)
|
||||
const [wall, setWall] = useRecoilState(wallState)
|
||||
const [templatePolygonState, setTemplatePolygonState] = useRecoilState(templatePolygonArrayState)
|
||||
|
||||
const addEvent = (mode) => {
|
||||
switch (mode) {
|
||||
|
||||
@ -36,18 +36,7 @@ export const wallState = atom({
|
||||
dangerouslyAllowMutability: true,
|
||||
})
|
||||
|
||||
<<<<<<< HEAD
|
||||
export const canvasListState = atom({
|
||||
key: 'canvas',
|
||||
=======
|
||||
export const templatePolygonArrayState = atom({
|
||||
key: 'templatePolygon',
|
||||
default: {}, //object ex) big, mid, sht = {point : [{x1, y1}, {x2, y1}], direction : left or right or top or bottom}
|
||||
})
|
||||
|
||||
export const canvasAtom = atom({
|
||||
key: 'canvasState',
|
||||
>>>>>>> feature/mongo-test
|
||||
default: [],
|
||||
dangerouslyAllowMutability: true,
|
||||
default: [], //object ex) big, mid, sht = {point : [{x1, y1}, {x2, y1}], direction : left or right or top or bottom}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user