Merge branch 'dev' into feature/yj-layoutSetup
This commit is contained in:
commit
7fcaaece53
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user