xiaokuaisong-shopapp/uniapp05/node_modules/zrender/lib/graphic/Gradient.js

14 lines
336 B
JavaScript
Raw Normal View History

2024-10-18 08:05:19 +00: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;