"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GradientStopInstances = void 0;
const SVGInstance_js_1 = require("../../../node/instance/SVGInstance.js");
const SVGStopInstance_js_1 = require("../../instances/SVGStopInstance.js");
class GradientStopInstances extends SVGInstance_js_1.SVGInstance {
    addStop(position, color) {
        const stop = new SVGStopInstance_js_1.SVGStopInstance(this);
        stop.attr("offset", position);
        stop.attr("stop-color", color);
        this.appendInstance(stop);
        return stop;
    }
}
exports.GradientStopInstances = GradientStopInstances;
//# sourceMappingURL=gradientStopInstances.js.map