1
- import { computed , effect , ElementRef , Injector , isSignal , signal , untracked } from '@angular/core' ;
1
+ import { computed , effect , ElementRef , Injector , isSignal , Signal , signal , untracked } from '@angular/core' ;
2
2
import { injectBeforeRender , resolveRef } from 'angular-three' ;
3
3
import { assertInjector } from 'ngxtension/assert-injector' ;
4
4
import { AnimationAction , AnimationClip , AnimationMixer , Object3D } from 'three' ;
@@ -7,11 +7,12 @@ import { AnimationAction, AnimationClip, AnimationMixer, Object3D } from 'three'
7
7
* name: any to allow consumers to pass in type-safe animation clips
8
8
*/
9
9
type NgtsAnimationClipWithoutName = Omit < AnimationClip , 'name' > & { name : any } ;
10
- type NgtsAnimationClip = Omit < NgtsAnimationClipWithoutName , 'clone' > & { clone : ( ) => NgtsAnimationClip } ;
11
- type NgtsAnimationClips < TAnimationNames extends string > = {
10
+ export type NgtsAnimationClip = Omit < NgtsAnimationClipWithoutName , 'clone' > & { clone : ( ) => NgtsAnimationClip } ;
11
+ export type NgtsAnimationClips < TAnimationNames extends string > = {
12
12
[ Name in TAnimationNames ] : Omit < NgtsAnimationClip , 'name' > & { name : Name } ;
13
13
} [ TAnimationNames ] ;
14
- type NgtsAnimationApi < T extends NgtsAnimationClip > = {
14
+ export type NgtsAnimationApi < T extends NgtsAnimationClip > = {
15
+ ready : Signal < boolean > ;
15
16
clips : T [ ] ;
16
17
mixer : AnimationMixer ;
17
18
names : T [ 'name' ] [ ] ;
0 commit comments