"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/keys-transform.mjs.js"),s=require("../../value/types/maps/defaults.mjs.js"),r=require("../../projection/geometry/models.mjs.js"),t=require("../dom/DOMVisualElement.mjs.js"),a=require("../dom/utils/camel-to-dash.mjs.js"),u=require("./utils/build-attrs.mjs.js"),i=require("./utils/camel-case-attrs.mjs.js"),o=require("./utils/is-svg-tag.mjs.js"),l=require("./utils/render.mjs.js"),m=require("./utils/scrape-motion-values.mjs.js");class n extends t.DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r.createBox}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(r,t){if(e.transformProps.has(t)){const e=s.getDefaultValueType(t);return e&&e.default||0}return t=i.camelCaseAttributes.has(t)?t:a.camelToDash(t),r.getAttribute(t)}scrapeMotionValuesFromProps(e,s,r){return m.scrapeMotionValuesFromProps(e,s,r)}build(e,s,r){u.buildSVGAttrs(e,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,s,r,t){l.renderSVG(e,s,r,t)}mount(e){this.isSVGTag=o.isSVGTag(e.tagName),super.mount(e)}}exports.SVGVisualElement=n;
//# sourceMappingURL=SVGVisualElement.mjs.js.map
