From a9d90f966b2710760088e923ad0b67e4f33ea380 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 2 Oct 2024 17:59:34 +0800 Subject: [PATCH] chore: make pub.dev happy --- thermion_dart/lib/src/input/src/delegate_gesture_handler.dart | 1 + .../implementations/fixed_orbit_camera_rotation_delegate.dart | 3 +-- thermion_dart/lib/src/viewer/src/web_wasm/src/camera.dart | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/thermion_dart/lib/src/input/src/delegate_gesture_handler.dart b/thermion_dart/lib/src/input/src/delegate_gesture_handler.dart index c6550975..4a4f3321 100644 --- a/thermion_dart/lib/src/input/src/delegate_gesture_handler.dart +++ b/thermion_dart/lib/src/input/src/delegate_gesture_handler.dart @@ -134,6 +134,7 @@ class DelegateInputHandler implements InputHandler { break; } + // ignore: unnecessary_null_comparison if (keyType != null) { keyAction = _actions[keyType]; diff --git a/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart b/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart index b8e0fcef..34fe118b 100644 --- a/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart +++ b/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart @@ -4,7 +4,6 @@ import '../../../viewer/src/shared_types/camera.dart'; import '../../../viewer/viewer.dart'; import '../../input.dart'; import '../input_handler.dart'; -import 'dart:math'; class FixedOrbitRotateInputHandlerDelegate implements InputHandlerDelegate { final ThermionViewer viewer; @@ -46,7 +45,7 @@ class FixedOrbitRotateInputHandlerDelegate implements InputHandlerDelegate { _queuedRotationDelta += Vector2(delta.x, delta.y); break; case InputAction.TRANSLATE: - _queuedZoomDelta += delta!.z; + _queuedZoomDelta += delta.z; break; case InputAction.PICK: // Assuming PICK is used for zoom in this context diff --git a/thermion_dart/lib/src/viewer/src/web_wasm/src/camera.dart b/thermion_dart/lib/src/viewer/src/web_wasm/src/camera.dart index 4db29392..49bf4379 100644 --- a/thermion_dart/lib/src/viewer/src/web_wasm/src/camera.dart +++ b/thermion_dart/lib/src/viewer/src/web_wasm/src/camera.dart @@ -1,6 +1,5 @@ import 'package:vector_math/vector_math_64.dart'; -import '../../shared_types/camera.dart'; import '../../thermion_viewer_base.dart'; class ThermionWasmCamera extends Camera {