securityos/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs

21 lines
438 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/**
* Reset an axis to the provided origin box.
*
* This is a mutative operation.
*/
function copyAxisInto(axis, originAxis) {
axis.min = originAxis.min;
axis.max = originAxis.max;
}
/**
* Reset a box to the provided origin box.
*
* This is a mutative operation.
*/
function copyBoxInto(box, originBox) {
copyAxisInto(box.x, originBox.x);
copyAxisInto(box.y, originBox.y);
}
export { copyAxisInto, copyBoxInto };