体数据放大变形问题解决
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b39ea3a032
commit
c930480336
|
|
@ -760,7 +760,9 @@ export default {
|
|||
},
|
||||
fusionOverlayModality: null,
|
||||
lastUpper: null,
|
||||
hasFusionUpperInitialized: false
|
||||
hasFusionUpperInitialized: false,
|
||||
timer: null,
|
||||
timeNum: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -2817,6 +2819,25 @@ export default {
|
|||
this.forceFitToWindow = !forceFitToWindow
|
||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].resize(forceFitToWindow)
|
||||
},
|
||||
// 重置视口
|
||||
resetRenderingEngine() {
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
this.timeNum = 0
|
||||
}
|
||||
this.timer = setInterval(() => {
|
||||
this.timeNum++
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
renderingEngine.resize(true, false)
|
||||
renderingEngine.render()
|
||||
if (this.timeNum >= 3) {
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
this.timeNum = 0
|
||||
}
|
||||
}, 500)
|
||||
},
|
||||
// 切换全屏
|
||||
toggleFullScreen(e, index) {
|
||||
this.fullScreenIndex = this.fullScreenIndex === index ? null : index
|
||||
|
|
@ -2824,9 +2845,8 @@ export default {
|
|||
if (this.readingTool === 3 || this.isMPR) {
|
||||
// this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series)
|
||||
this.$nextTick(() => {
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
renderingEngine.resize(true, false)
|
||||
renderingEngine.render()
|
||||
this.resetRenderingEngine()
|
||||
|
||||
if (this.readingTool === 3) {
|
||||
DicomEvent.$emit('isloaded', { isChange: false })
|
||||
}
|
||||
|
|
@ -3930,6 +3950,11 @@ export default {
|
|||
clearTimeout(this.saveCustomAnnotationTimer)
|
||||
this.saveCustomAnnotationTimer = null
|
||||
}
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
this.timeNum = 0
|
||||
}
|
||||
workSpeedclose(true)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue