12 lines
429 B
JavaScript
12 lines
429 B
JavaScript
import { scaleCorrectors } from '../../projection/styles/scale-correction.mjs';
|
|
import { transformProps } from '../../render/html/utils/transform.mjs';
|
|
|
|
function isForcedMotionValue(key, { layout, layoutId }) {
|
|
return (transformProps.has(key) ||
|
|
key.startsWith("origin") ||
|
|
((layout || layoutId !== undefined) &&
|
|
(!!scaleCorrectors[key] || key === "opacity")));
|
|
}
|
|
|
|
export { isForcedMotionValue };
|