File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ export * from './lib/fbx-loader' ;
1
2
export * from './lib/font-loader' ;
2
3
export * from './lib/gltf-loader' ;
3
4
export * from './lib/loader' ;
Original file line number Diff line number Diff line change
1
+ import { Injector } from '@angular/core' ;
2
+ import { injectLoader } from 'angular-three' ;
3
+ import { assertInjector } from 'ngxtension/assert-injector' ;
4
+ import { FBXLoader } from 'three-stdlib' ;
5
+
6
+ function _injectFBX < TUrl extends string | string [ ] | Record < string , string > > (
7
+ input : ( ) => TUrl ,
8
+ { injector } : { injector ?: Injector } = { } ,
9
+ ) {
10
+ return assertInjector ( _injectFBX , injector , ( ) => {
11
+ return injectLoader ( ( ) => FBXLoader , input ) ;
12
+ } ) ;
13
+ }
14
+
15
+ _injectFBX . preload = < TUrl extends string | string [ ] | Record < string , string > > ( input : ( ) => TUrl ) => {
16
+ injectLoader . preload ( ( ) => FBXLoader , input ) ;
17
+ } ;
18
+
19
+ export type NgtsFBXLoader = typeof _injectFBX ;
20
+ export const injectFBX : NgtsFBXLoader = _injectFBX ;
You can’t perform that action at this time.
0 commit comments