99 input ,
1010 untracked ,
1111} from '@angular/core' ;
12- import { injectStore , NgtArgs , NgtSelection , omit , pick , resolveRef } from 'angular-three' ;
12+ import { injectStore , NgtArgs , NgtSelectionApi , omit , pick , resolveRef } from 'angular-three' ;
1313import { mergeInputs } from 'ngxtension/inject-inputs' ;
1414import { OutlineEffect } from 'postprocessing' ;
1515import * as THREE from 'three' ;
@@ -36,7 +36,7 @@ const defaultOptions: NgtpOutlineOptions = {
3636export class NgtpOutline {
3737 options = input ( defaultOptions , { transform : mergeInputs ( defaultOptions ) } ) ;
3838
39- private ngtSelection = inject ( NgtSelection , { optional : true } ) ;
39+ private selectionApi = inject ( NgtSelectionApi , { optional : true } ) ;
4040 private effectComposer = inject ( NgtpEffectComposer ) ;
4141 private store = injectStore ( ) ;
4242
@@ -135,7 +135,7 @@ export class NgtpOutline {
135135
136136 effect ( ( onCleanup ) => {
137137 // NOTE: we run this effect if declarative NgtSelection is not enabled
138- if ( ! this . ngtSelection ) {
138+ if ( ! this . selectionApi ) {
139139 // NOTE: if NgtSelection is not used and selection is not provided, we throw
140140 if ( this . selection ( ) === undefined ) {
141141 throw new Error ( '[NGT PostProcessing]: ngtp-outline requires selection input or use NgtSelection' ) ;
@@ -149,10 +149,10 @@ export class NgtpOutline {
149149 }
150150
151151 // NOTE: we run this effect if declarative NgtSelection is enabled
152- const selectionEnabled = this . ngtSelection . enabled ( ) ;
152+ const selectionEnabled = this . selectionApi . enabled ( ) ;
153153 if ( ! selectionEnabled ) return ;
154154 const cleanup = this . handleSelectionChangeEffect (
155- this . ngtSelection . selected ,
155+ this . selectionApi . selected ,
156156 this . effect ,
157157 this . store . invalidate ,
158158 ) ;
0 commit comments