"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const units = require("../../../../../../../../style-value-types@5.0.0/node_modules/style-value-types/dist/es/numbers/units.js");
var dashKeys = {
  offset: "stroke-dashoffset",
  array: "stroke-dasharray"
};
var camelKeys = {
  offset: "strokeDashoffset",
  array: "strokeDasharray"
};
function buildSVGPath(attrs, length, spacing, offset, useDashCase) {
  if (spacing === void 0) {
    spacing = 1;
  }
  if (offset === void 0) {
    offset = 0;
  }
  if (useDashCase === void 0) {
    useDashCase = true;
  }
  attrs.pathLength = 1;
  var keys = useDashCase ? dashKeys : camelKeys;
  attrs[keys.offset] = units.px.transform(-offset);
  var pathLength = units.px.transform(length);
  var pathSpacing = units.px.transform(spacing);
  attrs[keys.array] = "".concat(pathLength, " ").concat(pathSpacing);
}
exports.buildSVGPath = buildSVGPath;
//# sourceMappingURL=path.js.map
