比例尺页面放大缩小报错问题
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)
this.timer = null
this.timeNum = 0
}
}, 500)
clearTimeout(this.timer)
this.timer = null
}, 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

@ -120,7 +120,7 @@
</el-switch>
<span style="margin-left: 5px;">{{
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
}}</span>
}}</span>
</div>
<!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show">
<span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span>
@ -202,7 +202,7 @@
<div v-for="k in statsKey" :key="k" class="statsBox">
<span>{{ k }}</span>
<span v-if="item.stats[k]">{{ Number(item.stats[k].value).toFixed(2)
}}<i>{{ item.stats[k].unit }}</i></span>
}}<i>{{ item.stats[k].unit }}</i></span>
</div>
</template>
<div class="serialNum" slot="reference">{{ index + 1 }}</div>
@ -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);