Skip to content

Commit 230092f

Browse files
committed
docs(reslicecursorwidget): same display handle size on all devices
1 parent 56181a2 commit 230092f

File tree

1 file changed

+2
-1
lines changed
  • Sources/Widgets/Widgets3D/ResliceCursorWidget/example

1 file changed

+2
-1
lines changed

Sources/Widgets/Widgets3D/ResliceCursorWidget/example/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ const widget = vtkResliceCursorWidget.newInstance();
4848
const widgetState = widget.getWidgetState();
4949
widgetState.setKeepOrthogonality(true);
5050
widgetState.setOpacity(0.6);
51-
widgetState.setSphereRadius(10);
51+
// Use devicePixelRatio in order to have the same display handle size on all devices
52+
widgetState.setSphereRadius(10 * window.devicePixelRatio);
5253
widgetState.setLineThickness(5);
5354

5455
const showDebugActors = true;

0 commit comments

Comments
 (0)