formatting

This commit is contained in:
Nick Fisher
2025-06-17 11:51:37 +08:00
parent 71bae61015
commit a91aaae131

View File

@@ -18,7 +18,6 @@ import 'dart:async';
/// using the methods directly via FilamentApp.instance; /// using the methods directly via FilamentApp.instance;
/// ///
abstract class ThermionViewer { abstract class ThermionViewer {
/// ///
/// ///
/// ///
@@ -163,8 +162,8 @@ abstract class ThermionViewer {
/// ///
/// ///
Future<ThermionAsset> loadGltf(String uri, Future<ThermionAsset> loadGltf(String uri,
{ bool addToScene = true, {bool addToScene = true,
int numInstances = 1, int numInstances = 1,
bool keepData = false, bool keepData = false,
String? resourceUri, String? resourceUri,
bool loadAsync = false}); bool loadAsync = false});
@@ -178,15 +177,15 @@ abstract class ThermionViewer {
/// be loaded asynchronously (so expect some material/texture pop-in); /// be loaded asynchronously (so expect some material/texture pop-in);
/// ///
/// ///
Future<ThermionAsset> loadGltfFromBuffer(Uint8List data, Future<ThermionAsset> loadGltfFromBuffer(
{ Uint8List data, {
String? resourceUri, String? resourceUri,
int numInstances = 1, int numInstances = 1,
bool keepData = false, bool keepData = false,
int priority = 4, int priority = 4,
int layer = 0, int layer = 0,
bool loadResourcesAsync = false, bool loadResourcesAsync = false,
}); });
/// ///
/// Destroys [asset] and all underlying resources /// Destroys [asset] and all underlying resources
@@ -223,7 +222,7 @@ abstract class ThermionViewer {
/// ///
/// ///
/// ///
Future setLayerVisibility(VisibilityLayers layer, bool visible); Future setLayerVisibility(VisibilityLayers layer, bool visible);
/// ///
/// Set the world space position for [lightEntity] to the given coordinates. /// Set the world space position for [lightEntity] to the given coordinates.
@@ -270,7 +269,9 @@ abstract class ThermionViewer {
/// ///
/// ///
Future<ThermionAsset> createGeometry(Geometry geometry, Future<ThermionAsset> createGeometry(Geometry geometry,
{List<MaterialInstance>? materialInstances, bool keepData = false, bool addToScene=true}); {List<MaterialInstance>? materialInstances,
bool keepData = false,
bool addToScene = true});
/// ///
/// Returns a gizmo for translating/rotating objects. /// Returns a gizmo for translating/rotating objects.