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;
///
abstract class ThermionViewer {
///
///
///
@@ -163,8 +162,8 @@ abstract class ThermionViewer {
///
///
Future<ThermionAsset> loadGltf(String uri,
{ bool addToScene = true,
int numInstances = 1,
{bool addToScene = true,
int numInstances = 1,
bool keepData = false,
String? resourceUri,
bool loadAsync = false});
@@ -178,15 +177,15 @@ abstract class ThermionViewer {
/// be loaded asynchronously (so expect some material/texture pop-in);
///
///
Future<ThermionAsset> loadGltfFromBuffer(Uint8List data,
{
String? resourceUri,
int numInstances = 1,
bool keepData = false,
int priority = 4,
int layer = 0,
bool loadResourcesAsync = false,
});
Future<ThermionAsset> loadGltfFromBuffer(
Uint8List data, {
String? resourceUri,
int numInstances = 1,
bool keepData = false,
int priority = 4,
int layer = 0,
bool loadResourcesAsync = false,
});
///
/// 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.
@@ -270,7 +269,9 @@ abstract class ThermionViewer {
///
///
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.