Compare commits
No commits in common. "9971c3eccaa97603d9738611782521cf3ac2d5f4" and "5cbd13cc3d9c05925a88b478da1d97abd63fd516" have entirely different histories.
9971c3ecca
...
5cbd13cc3d
|
|
@ -1712,7 +1712,6 @@ export default {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
lineLengthInPx: this.fusionCrosshairStyle.lineLength,
|
lineLengthInPx: this.fusionCrosshairStyle.lineLength,
|
||||||
},
|
},
|
||||||
mipViewportIds: ['viewport-fusion-3'],
|
|
||||||
})
|
})
|
||||||
|
|
||||||
toolGroup.setToolActive(VolumeRotateTool.toolName, {
|
toolGroup.setToolActive(VolumeRotateTool.toolName, {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ class FusionJumpToPointTool extends AnnotationDisplayTool {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
lineLengthInPx: 20,
|
lineLengthInPx: 20,
|
||||||
},
|
},
|
||||||
mipViewportIds: [],
|
|
||||||
},
|
},
|
||||||
}) {
|
}) {
|
||||||
super(toolProps, defaultToolProps)
|
super(toolProps, defaultToolProps)
|
||||||
|
|
@ -78,10 +77,7 @@ class FusionJumpToPointTool extends AnnotationDisplayTool {
|
||||||
|
|
||||||
const annotation = this._getViewportCrosshairAnnotation(viewport)
|
const annotation = this._getViewportCrosshairAnnotation(viewport)
|
||||||
const sourceViewportId = this.dragSourceViewportId || annotation?.data?.sourceViewportId || viewport.id
|
const sourceViewportId = this.dragSourceViewportId || annotation?.data?.sourceViewportId || viewport.id
|
||||||
const sourceIsMip = this._isMipViewportId(viewport.id)
|
this.setPoint(worldPoint, sourceViewportId, renderingEngine.id)
|
||||||
this.setPoint(worldPoint, sourceViewportId, renderingEngine.id, {
|
|
||||||
jumpToTargetViewports: sourceIsMip,
|
|
||||||
})
|
|
||||||
evt.preventDefault?.()
|
evt.preventDefault?.()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -501,11 +497,6 @@ class FusionJumpToPointTool extends AnnotationDisplayTool {
|
||||||
return fallbackColor || '#6fb9ff'
|
return fallbackColor || '#6fb9ff'
|
||||||
}
|
}
|
||||||
|
|
||||||
_isMipViewportId(viewportId) {
|
|
||||||
const mipViewportIds = this.configuration?.mipViewportIds
|
|
||||||
return Array.isArray(mipViewportIds) && mipViewportIds.includes(viewportId)
|
|
||||||
}
|
|
||||||
|
|
||||||
_normalizeAppearance(appearance = {}, sourceViewportId) {
|
_normalizeAppearance(appearance = {}, sourceViewportId) {
|
||||||
const lineWidth = Number.isFinite(appearance.lineWidth) ? appearance.lineWidth : 2
|
const lineWidth = Number.isFinite(appearance.lineWidth) ? appearance.lineWidth : 2
|
||||||
const lineLength = Number.isFinite(appearance.lineLength) ? appearance.lineLength : 9
|
const lineLength = Number.isFinite(appearance.lineLength) ? appearance.lineLength : 9
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue