"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const units = require("./dist-es-value-types-numbers-units.cjs");
const dashKeys = {
  offset: "stroke-dashoffset",
  array: "stroke-dasharray"
};
const camelKeys = {
  offset: "strokeDashoffset",
  array: "strokeDasharray"
};
function buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {
  attrs.pathLength = 1;
  const keys = useDashCase ? dashKeys : camelKeys;
  attrs[keys.offset] = units.px.transform(-offset);
  const pathLength = units.px.transform(length);
  const pathSpacing = units.px.transform(spacing);
  attrs[keys.array] = `${pathLength} ${pathSpacing}`;
}
exports.buildSVGPath = buildSVGPath;
//# sourceMappingURL=dist-es-render-svg-utils-path.cjs.map
