@@ -9,10 +9,7 @@ import {
99 Injector ,
1010 Input ,
1111 NgZone ,
12- OnChanges ,
13- OnInit ,
1412 Output ,
15- SimpleChanges ,
1613 ViewChild ,
1714 ViewContainerRef ,
1815 computed ,
@@ -21,6 +18,9 @@ import {
2118 inject ,
2219 type ComponentRef ,
2320 type EffectRef ,
21+ type OnChanges ,
22+ type OnInit ,
23+ type SimpleChanges ,
2424 type Type ,
2525} from '@angular/core' ;
2626import { NgxResize , provideNgxResizeOptions , type NgxResizeResult } from 'ngx-resize' ;
@@ -233,7 +233,7 @@ export class NgtCanvas implements OnInit, OnChanges {
233233 }
234234
235235 ngOnInit ( ) {
236- // NOTE: we resolve glCanvas now , setup the configurator
236+ // NOTE: we resolve glCanvas at this point , setup the configurator
237237 this . configurator = this . initRoot ( this . glCanvas . nativeElement ) ;
238238
239239 this . destroyRef . onDestroy ( ( ) => {
@@ -245,7 +245,7 @@ export class NgtCanvas implements OnInit, OnChanges {
245245 } ) ;
246246 }
247247
248- // NOTE: runs outside of Zone due to emitInZone
248+ // NOTE: runs outside of Zone due to emitInZone: false
249249 onResize ( result : NgxResizeResult ) {
250250 if ( result . width > 0 && result . height > 0 ) {
251251 this . resizeEffectRef ?. destroy ( ) ;
@@ -261,7 +261,7 @@ export class NgtCanvas implements OnInit, OnChanges {
261261 this . configurator . configure ( { ...inputs ( ) , size : result } ) ;
262262
263263 if ( this . glRef ) {
264- this . glRef . changeDetectorRef . detectChanges ( ) ;
264+ this . cdr . detectChanges ( ) ;
265265 } else {
266266 this . render ( ) ;
267267 }
0 commit comments