mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
16 lines
311 B
JavaScript
16 lines
311 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
|
|
};
|