"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const render = require("./utils/render.js");
const scrapeMotionValues = require("./utils/scrape-motion-values.js");
const useVisualState = require("../../motion/utils/use-visual-state.js");
const createRenderState = require("./utils/create-render-state.js");
const buildAttrs = require("./utils/build-attrs.js");
var svgMotionConfig = {
  useVisualState: useVisualState.makeUseVisualState({
    scrapeMotionValuesFromProps: scrapeMotionValues.scrapeMotionValuesFromProps,
    createRenderState: createRenderState.createSvgRenderState,
    onMount: function(props, instance, _a) {
      var renderState = _a.renderState, latestValues = _a.latestValues;
      try {
        renderState.dimensions = typeof instance.getBBox === "function" ? instance.getBBox() : instance.getBoundingClientRect();
      } catch (e) {
        renderState.dimensions = {
          x: 0,
          y: 0,
          width: 0,
          height: 0
        };
      }
      buildAttrs.buildSVGAttrs(renderState, latestValues, { enableHardwareAcceleration: false }, props.transformTemplate);
      render.renderSVG(instance, renderState);
    }
  })
};
exports.svgMotionConfig = svgMotionConfig;
//# sourceMappingURL=config-motion.js.map
