Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix(soba): adjust provider for orthographic camera
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Apr 25, 2022
1 parent 4d594d1 commit 69a7499
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
BooleanInput,
coerceBooleanProperty,
NgtPreObjectInit,
provideCommonCameraRef,
provideObjectHosRef,
startWithUndefined,
tapEffect,
Expand All @@ -19,13 +20,7 @@ import * as THREE from 'three';
selector: 'ngt-soba-orthographic-camera',
template: `<ng-content></ng-content>`,
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
provideObjectHosRef(
NgtSobaOrthographicCamera,
(camera) => camera.instance,
(camera) => camera.parentRef
),
],
providers: [provideCommonCameraRef(NgtSobaOrthographicCamera)],
})
export class NgtSobaOrthographicCamera extends NgtOrthographicCamera {
@Input() set makeDefault(makeDefault: BooleanInput) {
Expand Down

0 comments on commit 69a7499

Please sign in to comment.