"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const schedule = require("./src-transition-schedule.cjs");
function durationFunction(id, value) {
  return function() {
    schedule.set(this, id).duration = +value.apply(this, arguments);
  };
}
function durationConstant(id, value) {
  return value = +value, function() {
    schedule.set(this, id).duration = value;
  };
}
function transition_duration(value) {
  var id = this._id;
  return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : schedule.get(this.node(), id).duration;
}
exports.default = transition_duration;
//# sourceMappingURL=src-transition-duration.cjs.map
