import { isMotionValue } from "./dist-es-value-utils-is-motion-value.js";
import { transformPropOrder } from "./dist-es-render-html-utils-keys-transform.js";
import { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from "./dist-es-render-html-utils-scrape-motion-values.js";
function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
  const newValues = scrapeMotionValuesFromProps$1(props, prevProps, visualElement);
  for (const key in props) {
    if (isMotionValue(props[key]) || isMotionValue(prevProps[key])) {
      const targetKey = transformPropOrder.indexOf(key) !== -1 ? "attr" + key.charAt(0).toUpperCase() + key.substring(1) : key;
      newValues[targetKey] = props[key];
    }
  }
  return newValues;
}
export {
  scrapeMotionValuesFromProps
};
//# sourceMappingURL=dist-es-render-svg-utils-scrape-motion-values.js.map
