Skip to content

Commit 16f85ab

Browse files
committed
fix(soba): expose NgtsCameraShakeOptions
1 parent 0b4641f commit 16f85ab

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

libs/soba/src/staging/camera-shake.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Objects {
5353
changeDetection: ChangeDetectionStrategy.OnPush,
5454
})
5555
class DefaultCameraShakeStory {
56-
options = input<Partial<NgtsCameraShakeOptions>>();
56+
options = input<NgtsCameraShakeOptions>({});
5757
}
5858

5959
@Component({
@@ -67,7 +67,7 @@ class DefaultCameraShakeStory {
6767
changeDetection: ChangeDetectionStrategy.OnPush,
6868
})
6969
class WithOrbitControlsCameraShakeStory {
70-
options = input<Partial<NgtsCameraShakeOptions>>();
70+
options = input<NgtsCameraShakeOptions>({});
7171
}
7272

7373
export default {

libs/soba/staging/src/lib/camera-shake.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ interface ControlsProto {
1111
removeEventListener: (event: string, callback: (event: any) => void) => void;
1212
}
1313

14-
const defaultOptions: Partial<Omit<CameraShake, 'object' | 'initialRotation' | 'updateInitialRotation' | 'update'>> = {
14+
export type NgtsCameraShakeOptions = Partial<
15+
Omit<CameraShake, 'object' | 'initialRotation' | 'updateInitialRotation' | 'update'>
16+
>;
17+
18+
const defaultOptions: NgtsCameraShakeOptions = {
1519
intensity: 1,
1620
decayRate: 0.65,
1721
maxYaw: 0.1,

0 commit comments

Comments
 (0)