比例尺页面放大缩小报错问题
continuous-integration/drone/push Build is failing Details

uat_us
wangxiaoshuang 2026-04-01 09:35:36 +08:00
parent 3d538d6e67
commit 8a88a64c36
3 changed files with 8 additions and 14 deletions

View File

@ -762,7 +762,6 @@ export default {
lastUpper: null,
hasFusionUpperInitialized: false,
timer: null,
timeNum: 0,
FullTimerOut: null,
isDelay: false
}
@ -2826,22 +2825,17 @@ export default {
if (this.timer) {
clearInterval(this.timer)
this.timer = null
this.timeNum = 0
}
let index = null
this.timer = setInterval(() => {
this.timeNum++
this.timer = setTimeout(() => {
index = index || index === 0 ? index : this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.SliceIndex
const renderingEngine = getRenderingEngine(renderingEngineId)
renderingEngine.resize(true, false)
renderingEngine.render()
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index)
if (this.timeNum >= 3) {
clearInterval(this.timer)
clearTimeout(this.timer)
this.timer = null
this.timeNum = 0
}
}, 500)
}, 100)
},
setDelay(time) {
if (this.FullTimerOut) return false
@ -3962,7 +3956,6 @@ export default {
if (this.timer) {
clearInterval(this.timer)
this.timer = null
this.timeNum = 0
}
if (this.FullTimerOut) {
clearTimeout(this.FullTimerOut)

View File

@ -1624,7 +1624,7 @@ export default {
this.getBidirectional(obj.segments, null, false)
})
}
if (this.segmentationId && this.segmentIndex) {
if (this.segmentationId && this.segmentIndex && this.segmentList && this.segmentList.length > 0) {
let segment = this.segmentList.find(item => item.segmentationId === this.segmentationId).segments.find(item => item.segmentIndex === this.segmentIndex)
console.log(segment, 'segment')
this.selectSegmentGroup(segment)

View File

@ -321,6 +321,7 @@ class ScaleOverlayTool extends AnnotationDisplayTool {
const bottomLeft = annotation.data.handles.points[2];
const bottomRight = annotation.data.handles.points[3];
const pointSet1 = [topLeft, bottomLeft, topRight, bottomRight];
if(!bottomLeft) return false
const worldWidthViewport = vec3.distance(bottomLeft, bottomRight);
const worldHeightViewport = vec3.distance(topLeft, bottomLeft);
const hscaleBounds = this.computeScaleBounds(canvasSize, 0.05, 0.05, location);