UNPKG

material-motion

Version:

Makes it easy to add rich, interactive motion to your application.

63 lines 2.74 kB
/** @license * Copyright 2016 - present The Material Motion Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ import { withDebounce, } from './_debounce'; import { withFilter, } from './_filter'; import { withFlattenIterables, } from './_flattenIterables'; import { withMap, } from './_map'; import { withMathOperator, } from './_mathOperator'; import { withMulticast, } from './_multicast'; import { withNextOperator, } from './_nextOperator'; import { withReactiveMap, } from './_reactiveMap'; import { withReactiveNextOperator, } from './_reactiveNextOperator'; import { withRemember, } from './_remember'; import { withRead, } from './_read'; import { withSlidingWindow, } from './_slidingWindow'; import { withTap, } from './_tap'; export function withFoundationalMotionOperators(superclass) { // If we don't pass through an explicit value for `T`, it is inferred to be `{}`, // which is incorrect. If we explicitly defined `T`, TypeScript won't infer // `S`. Thus, we manually infer `S` with `typeof`. Moreover, type inferrance // happens at definition time, so we need to define each step as a separate // constant. const result = withNextOperator(superclass); const result1 = withReactiveNextOperator(result); const result2 = withTap(result1); const result3 = withMap(result2); const result4 = withReactiveMap(result3); const result5 = withFilter(result4); const result6 = withMulticast(result5); const result7 = withRemember(result6); const result8 = withDebounce(result7); const result9 = withSlidingWindow(result8); const result10 = withRead(result9); const result11 = withMathOperator(result10); const result12 = withFlattenIterables(result11); return result12; } export * from './_debounce'; export * from './_filter'; export * from './_flattenIterables'; export * from './_map'; export * from './_mathOperator'; export * from './_multicast'; export * from './_nextOperator'; export * from './_reactiveMap'; export * from './_reactiveNextOperator'; export * from './_remember'; export * from './_read'; export * from './_slidingWindow'; export * from './_tap'; //# sourceMappingURL=index.js.map