From d3051a5902209af357c20afdf7b1b3ffba537162 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Fri, 5 Jan 2024 14:06:45 -0500 Subject: [PATCH] feat(ItkVtkViewProxy): move scale bar to upper left --- src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js b/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js index 44eed4f4..f2b4a0cf 100644 --- a/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js +++ b/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js @@ -19,7 +19,7 @@ export const VOLUME_DIFFUSE_DEFAULT = 1.0 export const VOLUME_AMBIENT_DEFAULT = 0.4 const CursorCornerAnnotation = - '
Index:${iIndex},${jIndex},${kIndex}
Position:${xPosition},${yPosition},${zPosition}
Value:${value}
Label:${annotation}
' + '
Index:${iIndex},${jIndex},${kIndex}
Position:${xPosition},${yPosition},${zPosition}
Value:${value}
Label:${annotation}
' const { vtkErrorMacro } = macro @@ -623,8 +623,8 @@ function ItkVtkViewProxy(publicAPI, model) { model.scaleBarCanvas = document.createElement('canvas') model.scaleBarCanvas.style.position = 'absolute' - model.scaleBarCanvas.style.left = '50%' - model.scaleBarCanvas.style.bottom = '15.0%' + model.scaleBarCanvas.style.right = '3em' + model.scaleBarCanvas.style.top = '12px' model.scaleBarCanvas.style.width = '100px' model.scaleBarCanvas.style.height = '30px' model.scaleBarCanvas.width = 100 * window.devicePixelRatio