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

40 lines (33 loc) 1.66 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="./element.d.ts" /> /// <reference path="./abstractgraphics.d.ts" /> declare module goog.graphics { class GroupElement extends GroupElement__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class GroupElement__Class extends goog.graphics.Element__Class { /** * Interface for a graphics group element. * 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.AbstractGraphics} graphics The graphics creating * this element. * @constructor * @extends {goog.graphics.Element} * @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. */ constructor(element: Element, graphics: goog.graphics.AbstractGraphics); /** * Remove all drawing elements from the group. */ clear: any /*missing*/; /** * Set the size of the group element. * @param {number|string} width The width of the group element. * @param {number|string} height The height of the group element. */ setSize(width: number|string, height: number|string): void; } }