@progress/kendo-react-animation
Version:
React Animation component assists with animating HTML elements. KendoReact Animation package
27 lines (26 loc) • 986 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { animationStyles as s } from "@progress/kendo-react-common";
const e = (t) => {
if (!t || !t.ownerDocument.defaultView)
return 0;
const o = t.ownerDocument.defaultView.getComputedStyle(t), n = parseFloat(o.marginTop), r = parseFloat(o.marginBottom);
return t.offsetHeight + n + r;
}, i = (t) => {
if (!t || !t.ownerDocument.defaultView)
return 0;
const o = t.ownerDocument.defaultView.getComputedStyle(t), n = parseFloat(o.marginLeft), r = parseFloat(o.marginRight);
return t.offsetWidth + n + r;
}, c = {
outerHeight: e,
outerWidth: i,
styles: s
};
export {
c as default
};