import{buildSVGAttrs as t}from"./utils/build-attrs.js";import{createSvgRenderState as e}from"./utils/create-render-state.js";import{scrapeMotionValuesFromProps as a}from"./utils/scrape-motion-values.js";import{svgVisualElement as o,renderSVG as r}from"./visual-element.js";import{makeUseVisualState as i}from"../../motion/utils/use-visual-state.js";var n={createVisualElement:function(t,e){return o(e,{enableHardwareAcceleration:!1})},useVisualState:i({scrapeMotionValuesFromProps:a,createRenderState:e,onMount:function(e,a,o){var i=o.renderState,n=o.latestValues;try{i.dimensions="function"==typeof a.getBBox?a.getBBox():a.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}"path"===a.tagName&&(i.totalPathLength=a.getTotalLength()),t(i,n,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),r(a,i)}})};export{n as svgMotionConfig};
//# sourceMappingURL=config-motion.js.map
