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