"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const tslib_es6 = require("../../../../../../../tslib@2.6.2/node_modules/tslib/tslib.es6.js");
const index = require("../index.js");
const scrapeMotionValues = require("./utils/scrape-motion-values.js");
const visualElement = require("../html/visual-element.js");
const buildAttrs = require("./utils/build-attrs.js");
const camelToDash = require("../dom/utils/camel-to-dash.js");
const camelCaseAttrs = require("./utils/camel-case-attrs.js");
const transform = require("../html/utils/transform.js");
const render = require("./utils/render.js");
const defaults = require("../dom/value-types/defaults.js");
var svgVisualElement = index.visualElement(tslib_es6.__assign(tslib_es6.__assign({}, visualElement.htmlConfig), { getBaseTarget: function(props, key) {
  return props[key];
}, readValueFromInstance: function(domElement, key) {
  var _a;
  if (transform.isTransformProp(key)) {
    return ((_a = defaults.getDefaultValueType(key)) === null || _a === void 0 ? void 0 : _a.default) || 0;
  }
  key = !camelCaseAttrs.camelCaseAttributes.has(key) ? camelToDash.camelToDash(key) : key;
  return domElement.getAttribute(key);
}, scrapeMotionValuesFromProps: scrapeMotionValues.scrapeMotionValuesFromProps, build: function(_element, renderState, latestValues, options, props) {
  buildAttrs.buildSVGAttrs(renderState, latestValues, options, props.transformTemplate);
}, render: render.renderSVG }));
exports.svgVisualElement = svgVisualElement;
//# sourceMappingURL=visual-element.js.map
