fixed-data-table-one.com
Version:
A React table component designed to allow presenting thousands of rows of data.
48 lines (40 loc) • 1.47 kB
JavaScript
var _getVendorPrefixedName = require('./getVendorPrefixedName');
var _getVendorPrefixedName2 = _interopRequireDefault(_getVendorPrefixedName);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var BrowserSupportCore = {
/**
* @return {bool} True if browser supports css animations.
*/
hasCSSAnimations: function hasCSSAnimations() {
return !!(0, _getVendorPrefixedName2.default)('animationName');
},
/**
* @return {bool} True if browser supports css transforms.
*/
hasCSSTransforms: function hasCSSTransforms() {
return !!(0, _getVendorPrefixedName2.default)('transform');
},
/**
* @return {bool} True if browser supports css 3d transforms.
*/
hasCSS3DTransforms: function hasCSS3DTransforms() {
return !!(0, _getVendorPrefixedName2.default)('perspective');
},
/**
* @return {bool} True if browser supports css transitions.
*/
hasCSSTransitions: function hasCSSTransitions() {
return !!(0, _getVendorPrefixedName2.default)('transition');
}
}; /**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule BrowserSupportCore
*/
module.exports = BrowserSupportCore;
;