/// /// declare module goog.graphics { class LinearGradient extends LinearGradient__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class LinearGradient__Class extends goog.graphics.Fill__Class { /** * Creates an immutable linear gradient fill object. * * @param {number} x1 Start X position of the gradient. * @param {number} y1 Start Y position of the gradient. * @param {number} x2 End X position of the gradient. * @param {number} y2 End Y position of the gradient. * @param {string} color1 Start color of the gradient. * @param {string} color2 End color of the gradient. * @param {?number=} opt_opacity1 Start opacity of the gradient, both or neither * of opt_opacity1 and opt_opacity2 have to be set. * @param {?number=} opt_opacity2 End opacity of the gradient. * @constructor * @extends {goog.graphics.Fill} * @deprecated goog.graphics is deprecated. It existed to abstract over browser * differences before the canvas tag was widely supported. See * http://en.wikipedia.org/wiki/Canvas_element for details. * @final */ constructor(x1: number, y1: number, x2: number, y2: number, color1: string, color2: string, opt_opacity1?: number, opt_opacity2?: number); /** * @return {number} The start X position of the gradient. */ getX1(): number; /** * @return {number} The start Y position of the gradient. */ getY1(): number; /** * @return {number} The end X position of the gradient. */ getX2(): number; /** * @return {number} The end Y position of the gradient. */ getY2(): number; /** * @return {?number} The start opacity of the gradient. */ getOpacity1(): number; /** * @return {?number} The end opacity of the gradient. */ getOpacity2(): number; } }