UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

144 lines (124 loc) 6.98 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="./groupelement.d.ts" /> /// <reference path="./svggraphics.d.ts" /> /// <reference path="./ellipseelement.d.ts" /> /// <reference path="./stroke.d.ts" /> /// <reference path="./fill.d.ts" /> /// <reference path="./rectelement.d.ts" /> /// <reference path="./pathelement.d.ts" /> /// <reference path="./textelement.d.ts" /> /// <reference path="./imageelement.d.ts" /> declare module goog.graphics { class SvgGroupElement extends SvgGroupElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class SvgGroupElement__Class extends goog.graphics.GroupElement__Class { /** * Thin wrapper for SVG group elements. * You should not construct objects from this constructor. The graphics * will return the object for you. * @param {Element} element The DOM element to wrap. * @param {goog.graphics.SvgGraphics} graphics The graphics creating * this element. * @constructor * @extends {goog.graphics.GroupElement} * @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(element: Element, graphics: goog.graphics.SvgGraphics); } class SvgEllipseElement extends SvgEllipseElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class SvgEllipseElement__Class extends goog.graphics.EllipseElement__Class { /** * Thin wrapper for SVG ellipse elements. * This is an implementation of the goog.graphics.EllipseElement interface. * You should not construct objects from this constructor. The graphics * will return the object for you. * @param {Element} element The DOM element to wrap. * @param {goog.graphics.SvgGraphics} graphics The graphics creating * this element. * @param {goog.graphics.Stroke?} stroke The stroke to use for this element. * @param {goog.graphics.Fill?} fill The fill to use for this element. * @constructor * @extends {goog.graphics.EllipseElement} * @final */ constructor(element: Element, graphics: goog.graphics.SvgGraphics, stroke: goog.graphics.Stroke, fill: goog.graphics.Fill); } class SvgRectElement extends SvgRectElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class SvgRectElement__Class extends goog.graphics.RectElement__Class { /** * Thin wrapper for SVG rectangle elements. * This is an implementation of the goog.graphics.RectElement interface. * You should not construct objects from this constructor. The graphics * will return the object for you. * @param {Element} element The DOM element to wrap. * @param {goog.graphics.SvgGraphics} graphics The graphics creating * this element. * @param {goog.graphics.Stroke?} stroke The stroke to use for this element. * @param {goog.graphics.Fill?} fill The fill to use for this element. * @constructor * @extends {goog.graphics.RectElement} * @final */ constructor(element: Element, graphics: goog.graphics.SvgGraphics, stroke: goog.graphics.Stroke, fill: goog.graphics.Fill); } class SvgPathElement extends SvgPathElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class SvgPathElement__Class extends goog.graphics.PathElement__Class { /** * Thin wrapper for SVG path elements. * This is an implementation of the goog.graphics.PathElement interface. * You should not construct objects from this constructor. The graphics * will return the object for you. * @param {Element} element The DOM element to wrap. * @param {goog.graphics.SvgGraphics} graphics The graphics creating * this element. * @param {goog.graphics.Stroke?} stroke The stroke to use for this element. * @param {goog.graphics.Fill?} fill The fill to use for this element. * @constructor * @extends {goog.graphics.PathElement} * @final */ constructor(element: Element, graphics: goog.graphics.SvgGraphics, stroke: goog.graphics.Stroke, fill: goog.graphics.Fill); } class SvgTextElement extends SvgTextElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class SvgTextElement__Class extends goog.graphics.TextElement__Class { /** * Thin wrapper for SVG text elements. * This is an implementation of the goog.graphics.TextElement interface. * You should not construct objects from this constructor. The graphics * will return the object for you. * @param {Element} element The DOM element to wrap. * @param {goog.graphics.SvgGraphics} graphics The graphics creating * this element. * @param {goog.graphics.Stroke?} stroke The stroke to use for this element. * @param {goog.graphics.Fill?} fill The fill to use for this element. * @constructor * @extends {goog.graphics.TextElement} * @final */ constructor(element: Element, graphics: goog.graphics.SvgGraphics, stroke: goog.graphics.Stroke, fill: goog.graphics.Fill); } class SvgImageElement extends SvgImageElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class SvgImageElement__Class extends goog.graphics.ImageElement__Class { /** * Thin wrapper for SVG image elements. * This is an implementation of the goog.graphics.ImageElement interface. * You should not construct objects from this constructor. The graphics * will return the object for you. * @param {Element} element The DOM element to wrap. * @param {goog.graphics.SvgGraphics} graphics The graphics creating * this element. * @constructor * @extends {goog.graphics.ImageElement} * @final */ constructor(element: Element, graphics: goog.graphics.SvgGraphics); } }