@@ -160,7 +160,8 @@ abstract class BaseVolumeViewport extends Viewport {
160160
161161 protected applyViewOrientation (
162162 orientation : OrientationAxis | OrientationVectors ,
163- resetCamera = true
163+ resetCamera = true ,
164+ suppressEvents = false
164165 ) {
165166 const { viewPlaneNormal, viewUp } =
166167 this . _getOrientationVectors ( orientation ) || { } ;
@@ -178,7 +179,11 @@ abstract class BaseVolumeViewport extends Viewport {
178179
179180 if ( resetCamera ) {
180181 const t = this as unknown as IVolumeViewport ;
181- t . resetCamera ( { resetOrientation : false , resetRotation : false } ) ;
182+ t . resetCamera ( {
183+ resetOrientation : false ,
184+ resetRotation : false ,
185+ suppressEvents,
186+ } ) ;
182187 }
183188 }
184189
@@ -870,7 +875,11 @@ abstract class BaseVolumeViewport extends Viewport {
870875 if ( refViewPlaneNormal && ! isNegativeNormal && ! isSameNormal ) {
871876 // Need to update the orientation vectors correctly for this case
872877 // this.setCameraNoEvent({ viewPlaneNormal: refViewPlaneNormal, viewUp });
873- this . setOrientation ( { viewPlaneNormal : refViewPlaneNormal , viewUp } ) ;
878+ this . setOrientation (
879+ { viewPlaneNormal : refViewPlaneNormal , viewUp } ,
880+ true ,
881+ true
882+ ) ;
874883 this . setViewReference ( viewRef ) ;
875884 return ;
876885 }
@@ -1510,7 +1519,8 @@ abstract class BaseVolumeViewport extends Viewport {
15101519 */
15111520 public setOrientation (
15121521 _orientation : OrientationAxis | OrientationVectors ,
1513- _immediate = true
1522+ _immediate = true ,
1523+ _suppressEvents = false
15141524 ) : void {
15151525 console . warn ( 'Method "setOrientation" needs implementation' ) ;
15161526 }
0 commit comments