File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -625,6 +625,11 @@ export class NgtRenderer2 implements Renderer2 {
625
625
return ( ) => { } ;
626
626
}
627
627
628
+ if ( eventName === 'created' ) {
629
+ callback ( target ) ;
630
+ return ( ) => { } ;
631
+ }
632
+
628
633
if ( eventName === 'attached' ) {
629
634
iS . onAttach = callback ;
630
635
const parent = iS . parent && untracked ( iS . parent ) ;
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export type ThreeChildRemovedEvent = { type: 'childremoved'; target: any; child:
61
61
export interface NgtNodeEventMap < TInstance = NgtAnyRecord > {
62
62
attached : NgtAfterAttach < TInstance , any > ;
63
63
updated : TInstance ;
64
+ created : TInstance ;
64
65
// NOTE: this is named "disposed" to differentiate it from [dispose] property.
65
66
disposed : ThreeDisposeEvent ;
66
67
}
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ export const COMMON_EVENTS = [
50
50
type : 'any' ,
51
51
description : 'Fires when the element is updated with the updated instance' ,
52
52
} ,
53
+ {
54
+ name : '(created)' ,
55
+ type : 'any' ,
56
+ description : 'Fires when the element is created with the created instance' ,
57
+ } ,
53
58
] ;
54
59
55
60
export const OBJECT3D_EVENTS = [
You can’t perform that action at this time.
0 commit comments