Compare commits

...

4 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
Nick Fisher
c59aa6f43e chore(release): publish packages
- thermion_dart@0.2.1-dev.20.0
 - thermion_flutter@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
2025-01-08 09:48:34 +08:00
Nick Fisher
8e41c32bd2 fix: only use Windows-style ndkRoot when building on Windows 2025-01-08 09:43:20 +08:00
13 changed files with 144 additions and 31 deletions

View File

@@ -3,6 +3,91 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
---
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
- [`thermion_dart` - `v0.2.1-dev.20.0`](#thermion_dart---v021-dev200)
- [`thermion_flutter` - `v0.2.1-dev.20.0`](#thermion_flutter---v021-dev200)
- [`thermion_flutter_platform_interface` - `v0.2.1-dev.20.0`](#thermion_flutter_platform_interface---v021-dev200)
- [`thermion_flutter_ffi` - `v0.2.1-dev.20.0`](#thermion_flutter_ffi---v021-dev200)
- [`thermion_flutter_web` - `v0.2.0+11`](#thermion_flutter_web---v02011)
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+11`
---
#### `thermion_dart` - `v0.2.1-dev.20.0`
- **FIX**: only use Windows-style ndkRoot when building on Windows.
#### `thermion_flutter` - `v0.2.1-dev.20.0`
- Bump "thermion_flutter" to `0.2.1-dev.20.0`.
#### `thermion_flutter_platform_interface` - `v0.2.1-dev.20.0`
- Bump "thermion_flutter_platform_interface" to `0.2.1-dev.20.0`.
#### `thermion_flutter_ffi` - `v0.2.1-dev.20.0`
- Bump "thermion_flutter_ffi" to `0.2.1-dev.20.0`.
## 2024-11-21 ## 2024-11-21
### Changes ### Changes

View File

@@ -1,3 +1,13 @@
## 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.
## 0.2.1-dev.19.0 ## 0.2.1-dev.19.0
> Note: This release has breaking changes. > Note: This release has breaking changes.

View File

@@ -213,7 +213,7 @@ void main(List<String> args) async {
} }
var ndkRoot = var ndkRoot =
File(compilerPath).parent.parent.uri.toFilePath(windows: true); File(compilerPath).parent.parent.uri.toFilePath(windows: Platform.isWindows);
var stlPath = File([ var stlPath = File([
ndkRoot, ndkRoot,

View File

@@ -269,7 +269,6 @@ class DelegateInputHandler implements InputHandler {
// noop // noop
} }
double? _lastScale;
@override @override
Future<void> onScaleUpdate( Future<void> onScaleUpdate(
@@ -284,21 +283,8 @@ class DelegateInputHandler implements InputHandler {
if (pointerCount == 1) { if (pointerCount == 1) {
_inputDeltas[InputType.SCALE1] = _inputDeltas[InputType.SCALE1] =
Vector3(focalPointDelta.x, focalPointDelta.y, 0); Vector3(focalPointDelta.x, focalPointDelta.y, 0);
} else if (pointerCount == 2) { } else if (pointerCount == 2) {
var zoomDelta = 0.0; _inputDeltas[InputType.SCALE2] = Vector3(0, 0, scale);
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 { } else {
throw UnimplementedError("Only pointerCount <= 2 supported"); throw UnimplementedError("Only pointerCount <= 2 supported");
} }

View File

@@ -1,6 +1,6 @@
name: thermion_dart name: thermion_dart
description: 3D rendering toolkit for Dart. description: 3D rendering toolkit for Dart.
version: 0.2.1-dev.19.0 version: 0.2.1-dev.21.0
homepage: https://thermion.dev homepage: https://thermion.dev
repository: https://github.com/nmfisher/thermion repository: https://github.com/nmfisher/thermion

View File

@@ -1,3 +1,11 @@
## 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`.
## 0.2.1-dev.19.0 ## 0.2.1-dev.19.0
- Update a dependency to the latest release. - Update a dependency to the latest release.

View File

@@ -1,6 +1,6 @@
name: thermion_flutter name: thermion_flutter
description: Flutter plugin for 3D rendering with the Thermion toolkit. description: Flutter plugin for 3D rendering with the Thermion toolkit.
version: 0.2.1-dev.19.0 version: 0.2.1-dev.21.0
homepage: https://thermion.dev homepage: https://thermion.dev
repository: https://github.com/nmfisher/thermion repository: https://github.com/nmfisher/thermion
@@ -17,10 +17,10 @@ dependencies:
plugin_platform_interface: ^2.0.0 plugin_platform_interface: ^2.0.0
ffi: ^2.1.2 ffi: ^2.1.2
animation_tools_dart: ^0.1.0 animation_tools_dart: ^0.1.0
thermion_dart: ^0.2.1-dev.19.0 thermion_dart: ^0.2.1-dev.21.0
thermion_flutter_platform_interface: ^0.2.1-dev.19.0 thermion_flutter_platform_interface: ^0.2.1-dev.21.0
thermion_flutter_ffi: ^0.2.1-dev.19.0 thermion_flutter_ffi: ^0.2.1-dev.21.0
thermion_flutter_web: ^0.2.0+10 thermion_flutter_web: ^0.2.0+12
logging: ^1.2.0 logging: ^1.2.0
web: ^1.0.0 web: ^1.0.0

View File

@@ -1,3 +1,11 @@
## 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`.
## 0.2.1-dev.19.0 ## 0.2.1-dev.19.0
- Update a dependency to the latest release. - Update a dependency to the latest release.

View File

@@ -1,7 +1,7 @@
name: thermion_flutter_ffi name: thermion_flutter_ffi
description: An FFI implementation for thermion_flutter (i.e. all platforms except web). description: An FFI implementation for thermion_flutter (i.e. all platforms except web).
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.2.1-dev.19.0 version: 0.2.1-dev.21.0
environment: environment:
sdk: ">=3.3.0 <4.0.0" sdk: ">=3.3.0 <4.0.0"
@@ -23,8 +23,8 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
plugin_platform_interface: ^2.1.0 plugin_platform_interface: ^2.1.0
thermion_flutter_platform_interface: ^0.2.1-dev.19.0 thermion_flutter_platform_interface: ^0.2.1-dev.21.0
thermion_dart: ^0.2.1-dev.19.0 thermion_dart: ^0.2.1-dev.21.0
logging: ^1.2.0 logging: ^1.2.0
dependency_overrides: dependency_overrides:
thermion_flutter_platform_interface: thermion_flutter_platform_interface:

View File

@@ -1,3 +1,11 @@
## 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`.
## 0.2.1-dev.19.0 ## 0.2.1-dev.19.0
- Update a dependency to the latest release. - Update a dependency to the latest release.

View File

@@ -1,7 +1,7 @@
name: thermion_flutter_platform_interface name: thermion_flutter_platform_interface
description: A common platform interface for the thermion_flutter plugin. description: A common platform interface for the thermion_flutter plugin.
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.2.1-dev.19.0 version: 0.2.1-dev.21.0
environment: environment:
sdk: ">=3.3.0 <4.0.0" sdk: ">=3.3.0 <4.0.0"
@@ -11,7 +11,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
plugin_platform_interface: ^2.1.0 plugin_platform_interface: ^2.1.0
thermion_dart: ^0.2.1-dev.19.0 thermion_dart: ^0.2.1-dev.21.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:

View File

@@ -1,3 +1,11 @@
## 0.2.0+12
- Update a dependency to the latest release.
## 0.2.0+11
- Update a dependency to the latest release.
## 0.2.0+10 ## 0.2.0+10
- Update a dependency to the latest release. - Update a dependency to the latest release.

View File

@@ -1,7 +1,7 @@
name: thermion_flutter_web name: thermion_flutter_web
description: A web platform interface for the thermion_flutter plugin. description: A web platform interface for the thermion_flutter plugin.
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.2.0+10 version: 0.2.0+12
environment: environment:
sdk: ">=3.3.0 <4.0.0" sdk: ">=3.3.0 <4.0.0"
@@ -20,8 +20,8 @@ dependencies:
sdk: flutter sdk: flutter
plugin_platform_interface: ^2.1.0 plugin_platform_interface: ^2.1.0
web: ^1.0.0 web: ^1.0.0
thermion_dart: ^0.2.1-dev.19.0 thermion_dart: ^0.2.1-dev.21.0
thermion_flutter_platform_interface: ^0.2.1-dev.19.0 thermion_flutter_platform_interface: ^0.2.1-dev.21.0
flutter_web_plugins: flutter_web_plugins:
sdk: flutter sdk: flutter