Compare commits

..

6 Commits

Author SHA1 Message Date
c4a894fdd1 Merge branch 'feature/sketon_cha' of https://git.hanasys.jp/qcast3/qcast-front into feature/ysCha
# Conflicts:
#	src/util/skeleton-utils.js
2025-09-25 18:29:29 +09:00
95f0428ceb trestleState.constTp === data.constTp), 2025-09-25 18:27:07 +09:00
e94b703e6c Merge remote-tracking branch 'origin/dev' into feature/ysCha
# Conflicts:
#	src/components/floor-plan/modal/basic/step/Trestle.jsx
2025-09-25 11:13:47 +09:00
9c0403c947 trestleState.constTp === data.constTp), 2025-09-25 10:54:50 +09:00
4df39defc6 next trestleState.constTp 2025-09-25 10:50:02 +09:00
a1edaf03fb next trestleState.constTp 2025-09-25 10:44:18 +09:00
3 changed files with 1470 additions and 376 deletions

View File

@ -6,6 +6,8 @@ import { calculateAngle, drawRidgeRoof, drawShedRoof, toGeoJSON } from '@/util/q
import * as turf from '@turf/turf'
import { LINE_TYPE, POLYGON_TYPE } from '@/common/common'
import Big from 'big.js'
import { drawSkeletonRidgeRoof, drawSkeletonWithTransformedEdges } from '@/util/skeleton-utils'
import { logger } from '@/util/logger'
export const QPolygon = fabric.util.createClass(fabric.Polygon, {
type: 'QPolygon',
@ -242,6 +244,12 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
* @param settingModalFirstOptions
*/
drawHelpLine(settingModalFirstOptions) {
// canvas에 skeleton 상태 저장 객체 초기화
if (!this.canvas.skeletonStates) {
this.canvas.skeletonStates = {};
this.canvas.skeletonLines = [];
}
/* innerLines 초기화 */
this.canvas
.getObjects()
@ -318,7 +326,10 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
drawRidgeRoof(this.id, this.canvas, textMode)
}
} else {
drawRidgeRoof(this.id, this.canvas, textMode)
drawSkeletonRidgeRoof(this.id, this.canvas, textMode)
//drawRidgeRoof(this.id, this.canvas, textMode)
}
},

View File

@ -21,6 +21,7 @@ const Trestle = forwardRef((props, ref) => {
const [isAutoSelecting, setIsAutoSelecting] = useState(false) //
const [autoSelectTimeout, setAutoSelectTimeout] = useState(null) //
const autoSelectTimeoutRef = useRef(null)
// ()
const AUTO_SELECT_TIMEOUT = 700 // API
const {
@ -467,7 +468,8 @@ const Trestle = forwardRef((props, ref) => {
...selectedRoofBase,
},
construction: {
...constructionList.find((data) => newAddedRoofs[index].construction.constTp === data.constTp),
//...constructionList.find((data) => newAddedRoofs[index].construction.constTp === data.constTp),
...constructionList.find((data) => trestleState.constTp === data.constTp),
cvrYn,
snowGdPossYn,
cvrChecked,

File diff suppressed because it is too large Load Diff