import { MotionValue } from '@motionone/types'; const data = new WeakMap(); function getAnimationData(element) { if (!data.has(element)) { data.set(element, { transforms: [], values: new Map(), }); } return data.get(element); } function getMotionValue(motionValues, name) { if (!motionValues.has(name)) { motionValues.set(name, new MotionValue()); } return motionValues.get(name); } export { getAnimationData, getMotionValue };