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 {
53
53
changeDetection : ChangeDetectionStrategy . OnPush ,
54
54
} )
55
55
class DefaultCameraShakeStory {
56
- options = input < Partial < NgtsCameraShakeOptions > > ( ) ;
56
+ options = input < NgtsCameraShakeOptions > ( { } ) ;
57
57
}
58
58
59
59
@Component ( {
@@ -67,7 +67,7 @@ class DefaultCameraShakeStory {
67
67
changeDetection : ChangeDetectionStrategy . OnPush ,
68
68
} )
69
69
class WithOrbitControlsCameraShakeStory {
70
- options = input < Partial < NgtsCameraShakeOptions > > ( ) ;
70
+ options = input < NgtsCameraShakeOptions > ( { } ) ;
71
71
}
72
72
73
73
export default {
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ interface ControlsProto {
11
11
removeEventListener : ( event : string , callback : ( event : any ) => void ) => void ;
12
12
}
13
13
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 = {
15
19
intensity : 1 ,
16
20
decayRate : 0.65 ,
17
21
maxYaw : 0.1 ,
You can’t perform that action at this time.
0 commit comments