Compare commits
No commits in common. "0a90d32eca25fedd260ebd42b8a64e02d81c0907" and "78944640e8aae5f8c1fc7841db02eb4d7d509639" have entirely different histories.
0a90d32eca
...
78944640e8
@ -1,4 +1,4 @@
|
|||||||
import { ANGLE_TYPE, canvasState, currentAngleTypeSelector, globalPitchState, pitchTextSelector } from '@/store/canvasAtom'
|
import { ANGLE_TYPE, canvasState, currentAngleTypeSelector, pitchTextSelector } from '@/store/canvasAtom'
|
||||||
import { useRecoilValue } from 'recoil'
|
import { useRecoilValue } from 'recoil'
|
||||||
import { fabric } from 'fabric'
|
import { fabric } from 'fabric'
|
||||||
import { calculateIntersection, findAndRemoveClosestPoint, getDegreeByChon, getDegreeInOrientation, isPointOnLine } from '@/util/canvas-util'
|
import { calculateIntersection, findAndRemoveClosestPoint, getDegreeByChon, getDegreeInOrientation, isPointOnLine } from '@/util/canvas-util'
|
||||||
@ -17,7 +17,6 @@ export const usePolygon = () => {
|
|||||||
const lengthTextFontOptions = useRecoilValue(fontSelector('lengthText'))
|
const lengthTextFontOptions = useRecoilValue(fontSelector('lengthText'))
|
||||||
const currentAngleType = useRecoilValue(currentAngleTypeSelector)
|
const currentAngleType = useRecoilValue(currentAngleTypeSelector)
|
||||||
const pitchText = useRecoilValue(pitchTextSelector)
|
const pitchText = useRecoilValue(pitchTextSelector)
|
||||||
const globalPitch = useRecoilValue(globalPitchState)
|
|
||||||
|
|
||||||
const { getLengthByLine } = useLine()
|
const { getLengthByLine } = useLine()
|
||||||
|
|
||||||
@ -1338,7 +1337,7 @@ export const usePolygon = () => {
|
|||||||
defense = 'south'
|
defense = 'south'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
pitch = polygon.lines[index]?.attributes?.pitch ?? representLine?.attributes?.pitch ?? globalPitch
|
pitch = polygon.lines[index]?.attributes?.pitch ?? representLine?.attributes?.pitch ?? 0
|
||||||
|
|
||||||
const roof = new QPolygon(roofPoint, {
|
const roof = new QPolygon(roofPoint, {
|
||||||
fontSize: polygon.fontSize,
|
fontSize: polygon.fontSize,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user