dev #729
@ -7,6 +7,7 @@ import { useEffect, useRef } from 'react'
|
||||
import { fabric } from 'fabric'
|
||||
import { calculateAngle } from '@/util/qpolygon-utils'
|
||||
import {
|
||||
OUTER_LINE_TYPE,
|
||||
placementShapeDrawingAngle1State,
|
||||
placementShapeDrawingAngle2State,
|
||||
placementShapeDrawingArrow1State,
|
||||
@ -92,6 +93,7 @@ export function usePlacementShapeDrawing(id) {
|
||||
|
||||
useEffect(() => {
|
||||
setPoints([])
|
||||
setType(OUTER_LINE_TYPE.OUTER_LINE)
|
||||
|
||||
return () => {
|
||||
const placementShapeDrawingStartPoint = canvas.getObjects().find((obj) => obj.name === 'placementShapeDrawingStartPoint')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user