UNPKG

material-motion-views-dom

Version:
48 lines 2.69 kB
"use strict"; /** @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. */ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const getEventStreamFromElement_1 = require("./getEventStreamFromElement"); // If/when we care about isomorphic dependents, we can check `typeof window` // here and export an empty stream if it's undefined. exports.viewportDimensions$ = getEventStreamFromElement_1.getEventStreamFromElement('resize', window).startWith({ value: {} })._map({ // Using _map instead of rewriteTo because it should be reevaluated on // every resize. transform: () => ({ width: window.innerWidth, height: window.innerHeight, }), })._remember(); tslib_1.__exportStar(require("./combineStyleStreams"), exports); var combineStyleStreams_1 = require("./combineStyleStreams"); exports.combineStyleStreams = combineStyleStreams_1.default; tslib_1.__exportStar(require("./convertTouchEventsToPointerEvents"), exports); var convertTouchEventsToPointerEvents_1 = require("./convertTouchEventsToPointerEvents"); exports.convertTouchEventsToPointerEvents = convertTouchEventsToPointerEvents_1.default; tslib_1.__exportStar(require("./createCustomPropertyObserver"), exports); var createCustomPropertyObserver_1 = require("./createCustomPropertyObserver"); exports.createCustomPropertyObserver = createCustomPropertyObserver_1.default; tslib_1.__exportStar(require("./getEventStreamFromElement"), exports); var getEventStreamFromElement_2 = require("./getEventStreamFromElement"); exports.getEventStreamFromElement = getEventStreamFromElement_2.default; tslib_1.__exportStar(require("./getPointerEventStreamsFromElement"), exports); var getPointerEventStreamsFromElement_1 = require("./getPointerEventStreamsFromElement"); exports.getPointerEventStreamsFromElement = getPointerEventStreamsFromElement_1.default; tslib_1.__exportStar(require("./SliderProperties"), exports); var SliderProperties_1 = require("./SliderProperties"); exports.SliderProperties = SliderProperties_1.default; //# sourceMappingURL=index.js.map