Merge branch 'dev' into feature/yj-layoutSetup

This commit is contained in:
yjnoh 2025-03-25 16:08:16 +09:00
commit 7fcaaece53
2 changed files with 5 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) {
//정렬된 폴리곤이 아니면(대각선이 존재하는 폴리곤일때) //정렬된 폴리곤이 아니면(대각선이 존재하는 폴리곤일때)
if (!polygon.isSortedPoints) { if (!polygon.isSortedPoints) {
//좌우 반전을 했으면 반대로 정의함 //좌우 반전을 했으면 반대로 정의함
if (isYInversion) { if (isYInversion || isXInversion) {
polygon.lines.forEach((line) => { polygon.lines.forEach((line) => {
if (line.attributes.type === LINE_TYPE.WALLLINE.EAVES) { if (line.attributes.type === LINE_TYPE.WALLLINE.EAVES) {
line.attributes.type = LINE_TYPE.SUBLINE.RIDGE line.attributes.type = LINE_TYPE.SUBLINE.RIDGE

View File

@ -176,6 +176,10 @@ export const usePolygon = () => {
* @param showDirectionText * @param showDirectionText
*/ */
const drawDirectionArrow = (polygon, showDirectionText = true) => { const drawDirectionArrow = (polygon, showDirectionText = true) => {
if (!polygon) {
return
}
if (polygon.points.length < 3) { if (polygon.points.length < 3) {
return return
} }