From a434829a6c6d8f9d4d2e000e65ace1d558de9463 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Fri, 13 Sep 2024 10:35:57 +0800 Subject: [PATCH] initialize viewportDimensions to (0,0) in ThermionViewer --- thermion_dart/lib/thermion_dart/thermion_viewer.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thermion_dart/lib/thermion_dart/thermion_viewer.dart b/thermion_dart/lib/thermion_dart/thermion_viewer.dart index f7e2b927..e16bde5d 100644 --- a/thermion_dart/lib/thermion_dart/thermion_viewer.dart +++ b/thermion_dart/lib/thermion_dart/thermion_viewer.dart @@ -61,7 +61,7 @@ abstract class ThermionViewer { /// /// The current dimensions of the viewport (in physical pixels). /// - late (double, double) viewportDimensions; + var viewportDimensions = (0.0,0.0); /// /// The current ratio of logical to physical pixels. @@ -575,7 +575,7 @@ abstract class ThermionViewer { double aperture, double shutterSpeed, double sensitivity); /// - /// Rotate the camera by [rads] around the given axis. Note this is not persistent - any viewport navigation will reset the camera transform. + /// Rotate the camera by [rads] around the given axis. /// Future setCameraRotation(Quaternion quaternion); @@ -728,6 +728,7 @@ abstract class ThermionViewer { /// Sets the options for manipulating the camera via the viewport. /// ManipulatorMode.FREE_FLIGHT and ManipulatorMode.MAP are currently unsupported and will throw an exception. /// + @Deprecated("Use ThermionGestureHandler instead") Future setCameraManipulatorOptions( {ManipulatorMode mode = ManipulatorMode.ORBIT, double orbitSpeedX = 0.01,