travel/admin/node_modules/zrender/lib/graphic/Gradient.js

18 lines
352 B
JavaScript
Raw Normal View History

2024-06-24 11:28:18 +08:00
/**
* @param {Array.<Object>} colorStops
*/
var Gradient = function (colorStops) {
this.colorStops = colorStops || [];
};
Gradient.prototype = {
constructor: Gradient,
addColorStop: function (offset, color) {
this.colorStops.push({
offset: offset,
color: color
});
}
};
var _default = Gradient;
module.exports = _default;