mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
18 lines
348 B
JavaScript
18 lines
348 B
JavaScript
function GradientContainer(imageData) {
|
|
this.src = imageData.value;
|
|
this.colorStops = [];
|
|
this.type = null;
|
|
this.x0 = 0.5;
|
|
this.y0 = 0.5;
|
|
this.x1 = 0.5;
|
|
this.y1 = 0.5;
|
|
this.promise = Promise.resolve(true);
|
|
}
|
|
|
|
GradientContainer.prototype.TYPES = {
|
|
LINEAR: 1,
|
|
RADIAL: 2
|
|
};
|
|
|
|
module.exports = GradientContainer;
|