Compare commits
4 Commits
thermion_f
...
thermion_f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
951064e657 | ||
|
|
68ebf945a5 | ||
|
|
153817e859 | ||
|
|
ba0bc54fa7 |
22
CHANGELOG.md
22
CHANGELOG.md
@@ -3,6 +3,28 @@
|
|||||||
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.
|
||||||
|
|
||||||
|
## 2024-09-25
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Packages with breaking changes:
|
||||||
|
|
||||||
|
- [`thermion_flutter` - `v0.2.0-dev.3.0`](#thermion_flutter---v020-dev30)
|
||||||
|
|
||||||
|
Packages with other changes:
|
||||||
|
|
||||||
|
- There are no other changes in this release.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### `thermion_flutter` - `v0.2.0-dev.3.0`
|
||||||
|
|
||||||
|
- **BREAKING** **FIX**: remove EntityControllerMouseWidget (replace with GestureHandler).
|
||||||
|
- **BREAKING** **CHORE**: (flutter) cleanup for pub.dev publishing.
|
||||||
|
|
||||||
|
|
||||||
## 2024-09-25
|
## 2024-09-25
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|||||||
@@ -21,4 +21,5 @@ dependencies:
|
|||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
ffigen: ^12.0.0
|
ffigen: ^12.0.0
|
||||||
test:
|
test:
|
||||||
image:
|
image:
|
||||||
|
path:
|
||||||
@@ -1,3 +1,10 @@
|
|||||||
|
## 0.2.0-dev.3.0
|
||||||
|
|
||||||
|
> Note: This release has breaking changes.
|
||||||
|
|
||||||
|
- **BREAKING** **FIX**: remove EntityControllerMouseWidget (replace with GestureHandler).
|
||||||
|
- **BREAKING** **CHORE**: (flutter) cleanup for pub.dev publishing.
|
||||||
|
|
||||||
## 0.2.0-dev.2.0
|
## 0.2.0-dev.2.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ class ThermionFlutterPlugin {
|
|||||||
return ThermionFlutterPlatform.instance.destroyTexture(texture);
|
return ThermionFlutterPlatform.instance.destroyTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
static Future<ThermionFlutterTexture?> resizeTexture(
|
static Future<ThermionFlutterTexture?> resizeTexture(
|
||||||
ThermionFlutterTexture texture,
|
ThermionFlutterTexture texture,
|
||||||
int width,
|
int width,
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
import 'package:flutter/gestures.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
import 'dart:async';
|
|
||||||
|
|
||||||
import 'package:thermion_dart/thermion_dart/entities/entity_transform_controller.dart';
|
|
||||||
|
|
||||||
///
|
|
||||||
/// A widget that translates mouse gestures to zoom/pan/rotate actions.
|
|
||||||
///
|
|
||||||
class EntityTransformMouseControllerWidget extends StatelessWidget {
|
|
||||||
final EntityTransformController? transformController;
|
|
||||||
final Widget? child;
|
|
||||||
|
|
||||||
EntityTransformMouseControllerWidget(
|
|
||||||
{Key? key, required this.transformController, this.child})
|
|
||||||
: super(key: key);
|
|
||||||
|
|
||||||
Timer? _timer;
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return LayoutBuilder(
|
|
||||||
builder: (BuildContext context, BoxConstraints constraints) {
|
|
||||||
return Listener(
|
|
||||||
onPointerDown: (event) {
|
|
||||||
if (kPrimaryMouseButton & event.buttons != 0) {
|
|
||||||
transformController?.mouse1Down();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onPointerUp: (event) {
|
|
||||||
if (kPrimaryMouseButton & event.buttons != 0) {
|
|
||||||
transformController?.mouse1Up();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onPointerHover: (event) {
|
|
||||||
_timer?.cancel();
|
|
||||||
if (event.position.dx < 10) {
|
|
||||||
_timer = Timer.periodic(const Duration(milliseconds: 17), (_) {
|
|
||||||
transformController?.look(-30);
|
|
||||||
});
|
|
||||||
} else if (event.position.dx > constraints.maxWidth - 10) {
|
|
||||||
_timer = Timer.periodic(const Duration(milliseconds: 17), (_) {
|
|
||||||
transformController?.look(30);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
transformController?.look(event.delta.dx);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: child);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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.0-dev.2.0
|
version: 0.2.0-dev.3.0
|
||||||
homepage: https://thermion.dev
|
homepage: https://thermion.dev
|
||||||
repository: https://github.com/nmfisher/thermion
|
repository: https://github.com/nmfisher/thermion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user