{"map":"{\"version\":3,\"file\":\"inverted.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/inverted.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,MAAM,uBAAwE,UAAa;IACzF,MAAM,CAAC,KAAM,SAAQ,UAAU;QAC7B;;;;;WAKG;QACH,QAAQ;YACN,MAAM,CAAE,IAAqC,CAAC,aAAa,CAAC;gBAC1D,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE;oBACpC,IAAI,CAAC,CAAC,CAAC,GAAI,QAAmB,CAAM,CAAC,CAAC;gBACxC,CAAC;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC\"}","code":"/** @license\r\n *  Copyright 2016 - present The Material Motion Authors. All Rights Reserved.\r\n *\r\n *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n *  use this file except in compliance with the License. You may obtain a copy\r\n *  of the License at\r\n *\r\n *      http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n *  Unless required by applicable law or agreed to in writing, software\r\n *  distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\r\n *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r\n *  License for the specific language governing permissions and limitations\r\n *  under the License.\r\n */\r\nexport function withInverted(superclass) {\r\n    return class extends superclass {\r\n        /**\r\n         * Emits the complementary percentage of a number between 0 and 1\r\n         * (inclusive).\r\n         *\r\n         * For instance, if it receives `.33`, it will emit `.67`.\r\n         */\r\n        inverted() {\r\n            return this._nextOperator({\r\n                operation: ({ emit }) => ({ upstream }) => {\r\n                    emit((1 - upstream));\r\n                }\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=inverted.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/inverted.d.ts","text":"import { Constructor, MotionNextOperable, ObservableWithMotionOperators } from '../types';\r\nexport interface MotionInvertible<T> {\r\n    inverted<U extends T & number>(): ObservableWithMotionOperators<U>;\r\n}\r\nexport declare function withInverted<T, S extends Constructor<MotionNextOperable<T>>>(superclass: S): S & Constructor<MotionInvertible<T>>;\r\n"}}
