File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,24 @@ export type _YAxis = _XOR<_Top, _Bottom>;
36
36
*/
37
37
export type ExtendedScrollToOptions = _XAxis & _YAxis & ScrollOptions ;
38
38
39
+ export interface ExtendedScrollOptions extends ScrollOptions {
40
+ /** A distance relative to the right edge of the viewport. */
41
+ right ?: number ,
42
+ /**
43
+ * A distance relative to the start edge of the viewport (left in ltr languages, right in rtl
44
+ * languages).
45
+ */
46
+ start ?: number ,
47
+ /**
48
+ * A distance relative to the end edge of the viewport (right in ltr languages, left in rtl
49
+ * languages).
50
+ */
51
+ end ?: number ,
52
+ /** A distance relative to the bottom edge of the viewport. */
53
+ bottom ?: number ,
54
+ }
55
+
56
+
39
57
/**
40
58
* Sends an event when the directive's element is scrolled. Registers itself with the
41
59
* ScrollDispatcher service to include itself as part of its collection of scrolling events that it
@@ -187,4 +205,10 @@ export class CdkScrollable implements OnInit, OnDestroy {
187
205
}
188
206
}
189
207
}
208
+
209
+ scrollTo ( options : ExtendedScrollOptions ) : void { }
210
+
211
+ scrollBy ( options : ExtendedScrollOptions ) : void { }
212
+
213
+ measureScrollOffset ( from : 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end' ) : number { }
190
214
}
You can’t perform that action at this time.
0 commit comments