1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/zrender/lib/graphic/Gradient.js

18 lines
352 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +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;