File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Objects {
5353 changeDetection : ChangeDetectionStrategy . OnPush ,
5454} )
5555class 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} )
6969class WithOrbitControlsCameraShakeStory {
70- options = input < Partial < NgtsCameraShakeOptions > > ( ) ;
70+ options = input < NgtsCameraShakeOptions > ( { } ) ;
7171}
7272
7373export default {
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments