Open syed-qure opened 4 months ago
Should I just use viewport.getZoom()
and use its value in setScale inside ViewportOverlay and call it a day?
( evt: Types.EventTypes.CameraModifiedEvent ) => {
const enabledElement = cornerstone.getEnabledElement( evt.element );
const { viewport } = enabledElement;
setScale( viewport.getZoom() );
}
Describe the Bug
The zoom value that is calculated and shown in the ViewportsOverlay component does not match with the viewport.getZoom() value.
Steps to Reproduce
The current behavior
I think there is something wrong in the calculation of scale inside ViewportOverlay's
updateScale
functionThe expected behavior
The zoom value in the ViewportOverlay component should be equal to
viewport.getZoom()
OS
macOS 13.2.1 (22D68)
Node version
18.19.1
Browser
Arc v1.40.1 (49250)