|
@@ -23,7 +23,9 @@ export class ModelLoader {
|
|
|
? (await this.plugin.builders.data.readFile({ file: Asset.File(fileOrUrl), isBinary, label: props?.dataLabel })).data
|
|
|
: await this.plugin.builders.data.download({ url: fileOrUrl, isBinary, label: props?.dataLabel });
|
|
|
|
|
|
- return await this.handleTrajectory<P, S>(data, format, props, matrix, reprProvider, params) as any;
|
|
|
+ const hierarchy = await this.handleTrajectory<P, S>(data, format, props, matrix, reprProvider, params) as any;
|
|
|
+
|
|
|
+ return hierarchy;
|
|
|
}
|
|
|
|
|
|
async parse<P = any, S = {}>(parse: ParseParams, props?: PresetProps & { dataLabel?: string }, matrix?: Mat4, reprProvider?: TrajectoryHierarchyPresetProvider<P, S>, params?: P) {
|
|
@@ -71,6 +73,7 @@ export class ModelLoader {
|
|
|
|
|
|
return selector;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
constructor(private plugin: PluginContext) {
|