Compare commits

..

2 Commits

Author SHA1 Message Date
Nick Fisher 193eee0b81 chore(release): publish packages
- thermion_dart@0.2.1-dev.21.0
 - thermion_flutter@0.2.1-dev.21.0
 - thermion_flutter_platform_interface@0.2.1-dev.21.0
 - thermion_flutter_ffi@0.2.1-dev.21.0
 - thermion_flutter_web@0.2.0+12
2025-01-08 11:33:23 +08:00
Nick Fisher 069cebea3f feat!: use raw pointer scale (>1 meaning zoom in, <1 meaning zoom out) rather than binary -1/1 for DelegateInputHandler 2025-01-08 11:32:07 +08:00
12 changed files with 80 additions and 30 deletions
+42
View File
@@ -3,6 +3,48 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 2025-01-08
### Changes
---
Packages with breaking changes:
- [`thermion_dart` - `v0.2.1-dev.21.0`](#thermion_dart---v021-dev210)
Packages with other changes:
- [`thermion_flutter` - `v0.2.1-dev.21.0`](#thermion_flutter---v021-dev210)
- [`thermion_flutter_platform_interface` - `v0.2.1-dev.21.0`](#thermion_flutter_platform_interface---v021-dev210)
- [`thermion_flutter_ffi` - `v0.2.1-dev.21.0`](#thermion_flutter_ffi---v021-dev210)
- [`thermion_flutter_web` - `v0.2.0+12`](#thermion_flutter_web---v02012)
Packages with dependency updates only:
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
- `thermion_flutter_web` - `v0.2.0+12`
---
#### `thermion_dart` - `v0.2.1-dev.21.0`
- **BREAKING** **FEAT**: use raw pointer scale (>1 meaning zoom in, <1 meaning zoom out) rather than binary -1/1 for DelegateInputHandler.
#### `thermion_flutter` - `v0.2.1-dev.21.0`
- Bump "thermion_flutter" to `0.2.1-dev.21.0`.
#### `thermion_flutter_platform_interface` - `v0.2.1-dev.21.0`
- Bump "thermion_flutter_platform_interface" to `0.2.1-dev.21.0`.
#### `thermion_flutter_ffi` - `v0.2.1-dev.21.0`
- Bump "thermion_flutter_ffi" to `0.2.1-dev.21.0`.
## 2025-01-08
### Changes
+6
View File
@@ -1,3 +1,9 @@
## 0.2.1-dev.21.0
> Note: This release has breaking changes.
- **BREAKING** **FEAT**: use raw pointer scale (>1 meaning zoom in, <1 meaning zoom out) rather than binary -1/1 for DelegateInputHandler.
## 0.2.1-dev.20.0
- **FIX**: only use Windows-style ndkRoot when building on Windows.
@@ -269,7 +269,6 @@ class DelegateInputHandler implements InputHandler {
// noop
}
double? _lastScale;
@override
Future<void> onScaleUpdate(
@@ -284,21 +283,8 @@ class DelegateInputHandler implements InputHandler {
if (pointerCount == 1) {
_inputDeltas[InputType.SCALE1] =
Vector3(focalPointDelta.x, focalPointDelta.y, 0);
} else if (pointerCount == 2) {
var zoomDelta = 0.0;
if (_lastScale == null) {
if (scale < 0) {
zoomDelta = 1;
} else if (scale > 0) {
zoomDelta = -1;
}
_lastScale = scale;
} else {
zoomDelta = scale < _lastScale! ? 1 : -1;
_lastScale = scale;
}
_inputDeltas[InputType.SCALE2] = Vector3(0, 0, zoomDelta);
} else if (pointerCount == 2) {
_inputDeltas[InputType.SCALE2] = Vector3(0, 0, scale);
} else {
throw UnimplementedError("Only pointerCount <= 2 supported");
}
+1 -1
View File
@@ -1,6 +1,6 @@
name: thermion_dart
description: 3D rendering toolkit for Dart.
version: 0.2.1-dev.20.0
version: 0.2.1-dev.21.0
homepage: https://thermion.dev
repository: https://github.com/nmfisher/thermion
@@ -1,3 +1,7 @@
## 0.2.1-dev.21.0
- Bump "thermion_flutter" to `0.2.1-dev.21.0`.
## 0.2.1-dev.20.0
- Bump "thermion_flutter" to `0.2.1-dev.20.0`.
@@ -1,6 +1,6 @@
name: thermion_flutter
description: Flutter plugin for 3D rendering with the Thermion toolkit.
version: 0.2.1-dev.20.0
version: 0.2.1-dev.21.0
homepage: https://thermion.dev
repository: https://github.com/nmfisher/thermion
@@ -17,10 +17,10 @@ dependencies:
plugin_platform_interface: ^2.0.0
ffi: ^2.1.2
animation_tools_dart: ^0.1.0
thermion_dart: ^0.2.1-dev.20.0
thermion_flutter_platform_interface: ^0.2.1-dev.20.0
thermion_flutter_ffi: ^0.2.1-dev.20.0
thermion_flutter_web: ^0.2.0+11
thermion_dart: ^0.2.1-dev.21.0
thermion_flutter_platform_interface: ^0.2.1-dev.21.0
thermion_flutter_ffi: ^0.2.1-dev.21.0
thermion_flutter_web: ^0.2.0+12
logging: ^1.2.0
web: ^1.0.0
@@ -1,3 +1,7 @@
## 0.2.1-dev.21.0
- Bump "thermion_flutter_ffi" to `0.2.1-dev.21.0`.
## 0.2.1-dev.20.0
- Bump "thermion_flutter_ffi" to `0.2.1-dev.20.0`.
@@ -1,7 +1,7 @@
name: thermion_flutter_ffi
description: An FFI implementation for thermion_flutter (i.e. all platforms except web).
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.2.1-dev.20.0
version: 0.2.1-dev.21.0
environment:
sdk: ">=3.3.0 <4.0.0"
@@ -23,8 +23,8 @@ dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.0
thermion_flutter_platform_interface: ^0.2.1-dev.20.0
thermion_dart: ^0.2.1-dev.20.0
thermion_flutter_platform_interface: ^0.2.1-dev.21.0
thermion_dart: ^0.2.1-dev.21.0
logging: ^1.2.0
dependency_overrides:
thermion_flutter_platform_interface:
@@ -1,3 +1,7 @@
## 0.2.1-dev.21.0
- Bump "thermion_flutter_platform_interface" to `0.2.1-dev.21.0`.
## 0.2.1-dev.20.0
- Bump "thermion_flutter_platform_interface" to `0.2.1-dev.20.0`.
@@ -1,7 +1,7 @@
name: thermion_flutter_platform_interface
description: A common platform interface for the thermion_flutter plugin.
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.2.1-dev.20.0
version: 0.2.1-dev.21.0
environment:
sdk: ">=3.3.0 <4.0.0"
@@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.0
thermion_dart: ^0.2.1-dev.20.0
thermion_dart: ^0.2.1-dev.21.0
dev_dependencies:
flutter_test:
@@ -1,3 +1,7 @@
## 0.2.0+12
- Update a dependency to the latest release.
## 0.2.0+11
- Update a dependency to the latest release.
@@ -1,7 +1,7 @@
name: thermion_flutter_web
description: A web platform interface for the thermion_flutter plugin.
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.2.0+11
version: 0.2.0+12
environment:
sdk: ">=3.3.0 <4.0.0"
@@ -20,8 +20,8 @@ dependencies:
sdk: flutter
plugin_platform_interface: ^2.1.0
web: ^1.0.0
thermion_dart: ^0.2.1-dev.20.0
thermion_flutter_platform_interface: ^0.2.1-dev.20.0
thermion_dart: ^0.2.1-dev.21.0
thermion_flutter_platform_interface: ^0.2.1-dev.21.0
flutter_web_plugins:
sdk: flutter