@@ -11,7 +11,7 @@ export function handleSnapPoints({
11
11
overlayRef,
12
12
fadeFromIndex,
13
13
openTime,
14
- direction
14
+ direction,
15
15
} : {
16
16
activeSnapPoint : Writable < number | string | null > ;
17
17
snapPoints : Writable < ( number | string ) [ ] | undefined > ;
@@ -118,7 +118,7 @@ export function handleSnapPoints({
118
118
) } )`,
119
119
transform : isVertical ( $direction )
120
120
? `translate3d(0, ${ dimension } px, 0)`
121
- : `translate3d(${ dimension } px, 0, 0)`
121
+ : `translate3d(${ dimension } px, 0, 0)` ,
122
122
} ) ;
123
123
124
124
const $fadeFromIndex = get ( fadeFromIndex ) ;
@@ -133,14 +133,14 @@ export function handleSnapPoints({
133
133
transition : `opacity ${ TRANSITIONS . DURATION } s cubic-bezier(${ TRANSITIONS . EASE . join (
134
134
","
135
135
) } )`,
136
- opacity : "0"
136
+ opacity : "0" ,
137
137
} ) ;
138
138
} else {
139
139
set ( $overlayRef , {
140
140
transition : `opacity ${ TRANSITIONS . DURATION } s cubic-bezier(${ TRANSITIONS . EASE . join (
141
141
","
142
142
) } )`,
143
- opacity : "1"
143
+ opacity : "1" ,
144
144
} ) ;
145
145
}
146
146
activeSnapPoint . update ( ( ) => {
@@ -155,7 +155,7 @@ export function handleSnapPoints({
155
155
draggedDistance,
156
156
closeDrawer,
157
157
velocity,
158
- dismissible
158
+ dismissible,
159
159
} : {
160
160
draggedDistance : number ;
161
161
closeDrawer : ( ) => void ;
@@ -182,7 +182,7 @@ export function handleSnapPoints({
182
182
183
183
if ( isOverlaySnapPoint ) {
184
184
set ( $overlayRef , {
185
- transition : `opacity ${ TRANSITIONS . DURATION } s cubic-bezier(${ TRANSITIONS . EASE . join ( "," ) } )`
185
+ transition : `opacity ${ TRANSITIONS . DURATION } s cubic-bezier(${ TRANSITIONS . EASE . join ( "," ) } )` ,
186
186
} ) ;
187
187
}
188
188
@@ -254,7 +254,7 @@ export function handleSnapPoints({
254
254
set ( $drawerRef , {
255
255
transform : isVertical ( $direction )
256
256
? `translate3d(0, ${ newValue } px, 0)`
257
- : `translate3d(${ newValue } px, 0, 0)`
257
+ : `translate3d(${ newValue } px, 0, 0)` ,
258
258
} ) ;
259
259
}
260
260
@@ -318,6 +318,6 @@ export function handleSnapPoints({
318
318
activeSnapPointIndex,
319
319
onRelease,
320
320
onDrag,
321
- snapPointsOffset
321
+ snapPointsOffset,
322
322
} ;
323
323
}
0 commit comments