You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
This is useful for building marking menus. Like `distanceFrom`, it accepts an `origin$` argument, which allows us to ensure it can only be called on `Observable<Point2D>`. (Another solution would have been `point$.subtractedBy(origin$).toPoint()`, but without the argument, we can't constrain `T`).
I inlined the Pythagorean theorem rather than returning `combineLatest({ distance: this.distanceFrom(origin$), angle: … })` to avoid emitting separately for each of `distance` and `angle`.
Part of #231
Reviewers: O2 Material Motion, O3 Material JavaScript platform reviewers, #material_motion
Tags: #material_motion
Differential Revision: http://codereview.cc/D3444
The Marking Menu demo will be a great showcase of an advanced interaction powered by Material Motion. It will need these operators:
toPolar(): Observable<{ angle, distance }>
toCartesian(): Observable<Point2D>
inIncrementsOf({ size: number }): Observable<number>
and will likely be composed of many smaller interactions, such as:
MarkingMenuItem
MarkingMenu
NextScreenPreview
The text was updated successfully, but these errors were encountered: