FrontPastel/node_modules/@mui/material/node/transitions/utils.js

22 lines
759 B
JavaScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTransitionProps = getTransitionProps;
exports.reflow = void 0;
const reflow = node => node.scrollTop;
exports.reflow = reflow;
function getTransitionProps(props, options) {
var _style$transitionDura, _style$transitionTimi;
const {
timeout,
easing,
style = {}
} = props;
return {
duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,
delay: style.transitionDelay
};
}