면형상 배치 오류 수정
This commit is contained in:
parent
ae34bb741e
commit
2eedb90cb2
@ -258,6 +258,8 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
|
|
||||||
//설치 범위 지정 클릭 이벤트
|
//설치 범위 지정 클릭 이벤트
|
||||||
const toggleSelection = (setupSurface) => {
|
const toggleSelection = (setupSurface) => {
|
||||||
|
console.log('setupSurface', setupSurface)
|
||||||
|
|
||||||
const isExist = selectedModuleInstSurfaceArray.some((obj) => obj.parentId === setupSurface.parentId)
|
const isExist = selectedModuleInstSurfaceArray.some((obj) => obj.parentId === setupSurface.parentId)
|
||||||
//최초 선택일때
|
//최초 선택일때
|
||||||
if (!isExist) {
|
if (!isExist) {
|
||||||
@ -442,12 +444,12 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
|
|
||||||
let intvHor =
|
let intvHor =
|
||||||
flowDirection === 'south' || flowDirection === 'north'
|
flowDirection === 'south' || flowDirection === 'north'
|
||||||
? moduleSetupSurfaces[i].trestleDetail.moduleIntvlHor
|
? moduleSetupSurfaces[i].trestleDetail.moduleIntvlHor / 10
|
||||||
: moduleSetupSurfaces[i].trestleDetail.moduleIntvlVer
|
: moduleSetupSurfaces[i].trestleDetail.moduleIntvlVer / 10
|
||||||
let intvVer =
|
let intvVer =
|
||||||
flowDirection === 'south' || flowDirection === 'north'
|
flowDirection === 'south' || flowDirection === 'north'
|
||||||
? moduleSetupSurfaces[i].trestleDetail.moduleIntvlVer
|
? moduleSetupSurfaces[i].trestleDetail.moduleIntvlVer / 10
|
||||||
: moduleSetupSurfaces[i].trestleDetail.moduleIntvlHor
|
: moduleSetupSurfaces[i].trestleDetail.moduleIntvlHor / 10
|
||||||
|
|
||||||
const trestleLeft = moduleSetupSurfaces[i].left
|
const trestleLeft = moduleSetupSurfaces[i].left
|
||||||
const trestleTop = moduleSetupSurfaces[i].top
|
const trestleTop = moduleSetupSurfaces[i].top
|
||||||
@ -667,8 +669,6 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('placementRef', placementRef)
|
|
||||||
|
|
||||||
const isChidori = placementRef.isChidori.current === 'true' ? true : false
|
const isChidori = placementRef.isChidori.current === 'true' ? true : false
|
||||||
const setupLocation = placementRef.setupLocation.current
|
const setupLocation = placementRef.setupLocation.current
|
||||||
const isMaxSetup = placementRef.isMaxSetup.current === 'true' ? true : false
|
const isMaxSetup = placementRef.isMaxSetup.current === 'true' ? true : false
|
||||||
@ -1262,16 +1262,14 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
|
|
||||||
const flowDirection = moduleSetupSurface.flowDirection
|
const flowDirection = moduleSetupSurface.flowDirection
|
||||||
|
|
||||||
console.log('moduleSetupSurface', moduleSetupSurface)
|
|
||||||
|
|
||||||
let intvHor =
|
let intvHor =
|
||||||
flowDirection === 'south' || flowDirection === 'north'
|
flowDirection === 'south' || flowDirection === 'north'
|
||||||
? moduleSetupSurface.trestleDetail.moduleIntvlHor
|
? moduleSetupSurface.trestleDetail.moduleIntvlHor / 10
|
||||||
: moduleSetupSurface.trestleDetail.moduleIntvlVer
|
: moduleSetupSurface.trestleDetail.moduleIntvlVer / 10
|
||||||
let intvVer =
|
let intvVer =
|
||||||
flowDirection === 'south' || flowDirection === 'north'
|
flowDirection === 'south' || flowDirection === 'north'
|
||||||
? moduleSetupSurface.trestleDetail.moduleIntvlVer
|
? moduleSetupSurface.trestleDetail.moduleIntvlVer / 10
|
||||||
: moduleSetupSurface.trestleDetail.moduleIntvlHor
|
: moduleSetupSurface.trestleDetail.moduleIntvlHor / 10
|
||||||
|
|
||||||
//처마면 배치
|
//처마면 배치
|
||||||
if (setupLocation === 'eaves') {
|
if (setupLocation === 'eaves') {
|
||||||
|
|||||||
@ -637,7 +637,7 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) {
|
|||||||
y: pointer.y + length3 / 2,
|
y: pointer.y + length3 / 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
x: pointer.x - length1 / 2 + length4 * Math.cos(angle),
|
x: pointer.x - length1 / 2 + length4 * Math.cos(degreesToRadians(angle)),
|
||||||
y: pointer.y + length3 / 2 - length4 * Math.sin(degreesToRadians(angle)),
|
y: pointer.y + length3 / 2 - length4 * Math.sin(degreesToRadians(angle)),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user