directionText 추가
This commit is contained in:
parent
d5a155be04
commit
7ac16fbf5d
@ -427,6 +427,12 @@ export const usePolygon = () => {
|
||||
text = '西西南'
|
||||
}
|
||||
|
||||
const sameDirectionCnt = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF && obj.directionText === text)
|
||||
|
||||
text = text + (sameDirectionCnt.length + 1)
|
||||
|
||||
polygon.set('directionText', text)
|
||||
|
||||
const textObj = new fabric.Text(`${text} (${currentAngleType === ANGLE_TYPE.SLOPE ? arrow.pitch : getDegreeByChon(arrow.pitch)}${pitchText})`, {
|
||||
fontFamily: flowFontOptions.fontFamily.value,
|
||||
fontWeight: flowFontOptions.fontWeight.value.toLowerCase().includes('bold') ? 'bold' : 'normal',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user