project/node_modules/zrender/lib/graphic/Gradient.js

14 lines
336 B
JavaScript
Raw Normal View History

2024-07-14 15:48:34 +08:00
var Gradient = (function () {
function Gradient(colorStops) {
this.colorStops = colorStops || [];
}
Gradient.prototype.addColorStop = function (offset, color) {
this.colorStops.push({
offset: offset,
color: color
});
};
return Gradient;
}());
export default Gradient;