{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/dom/index.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EACL,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AAErC,4EAA4E;AAC5E,qDAAqD;AACrD,MAAM,CAAC,MAAM,mBAAmB,GAAG,yBAAyB,CAC1D,QAAQ,EAAE,MAAwB,CACnC,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,EAAW,EAAE,CAAC,CAAC,IAAI,CAAC;IACvC,sEAAsE;IACtE,gBAAgB;IAChB,SAAS,EAAE,MAAM,CACf;QACE,KAAK,EAAE,MAAM,CAAC,UAAU;QACxB,MAAM,EAAE,MAAM,CAAC,WAAW;KAC3B,CACF;CACF,CAAC,CAAC,SAAS,EAAE,CAAC;AAGf,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAEnG,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEzF,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAEnF,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,iCAAiC,EAAE,MAAM,qCAAqC,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\nimport { getEventStreamFromElement, } from './getEventStreamFromElement';\r\n// If/when we care about isomorphic dependents, we can check `typeof window`\r\n// here and export an empty stream if it's undefined.\r\nexport const viewportDimensions$ = getEventStreamFromElement('resize', window).startWith({ value: {} })._map({\r\n    // Using _map instead of rewriteTo because it should be reevaluated on\r\n    // every resize.\r\n    transform: () => ({\r\n        width: window.innerWidth,\r\n        height: window.innerHeight,\r\n    }),\r\n})._remember();\r\nexport * from './combineStyleStreams';\r\nexport { default as combineStyleStreams } from './combineStyleStreams';\r\nexport * from './convertTouchEventsToPointerEvents';\r\nexport { default as convertTouchEventsToPointerEvents } from './convertTouchEventsToPointerEvents';\r\nexport * from './createCustomPropertyObserver';\r\nexport { default as createCustomPropertyObserver } from './createCustomPropertyObserver';\r\nexport * from './getEventStreamFromElement';\r\nexport { default as getEventStreamFromElement } from './getEventStreamFromElement';\r\nexport * from './getPointerEventStreamsFromElement';\r\nexport { default as getPointerEventStreamsFromElement } from './getPointerEventStreamsFromElement';\r\n//# sourceMappingURL=index.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/dom/index.d.ts","text":"/** @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\nimport { ObservableWithMotionOperators } from '../types';\r\nexport declare const viewportDimensions$: ObservableWithMotionOperators<{\r\n    width: number;\r\n    height: number;\r\n}>;\r\nexport * from './combineStyleStreams';\r\nexport { default as combineStyleStreams } from './combineStyleStreams';\r\nexport * from './convertTouchEventsToPointerEvents';\r\nexport { default as convertTouchEventsToPointerEvents } from './convertTouchEventsToPointerEvents';\r\nexport * from './createCustomPropertyObserver';\r\nexport { default as createCustomPropertyObserver } from './createCustomPropertyObserver';\r\nexport * from './getEventStreamFromElement';\r\nexport { default as getEventStreamFromElement } from './getEventStreamFromElement';\r\nexport * from './getPointerEventStreamsFromElement';\r\nexport { default as getPointerEventStreamsFromElement } from './getPointerEventStreamsFromElement';\r\n"}}
