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

34 lines (28 loc) 1.43 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="./abstractposition.d.ts" /> /// <reference path="../math/coordinate.d.ts" /> declare module goog.positioning { class ClientPosition extends ClientPosition__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class ClientPosition__Class extends goog.positioning.AbstractPosition__Class { /** * Encapsulates a popup position where the popup is positioned relative to the * window (client) coordinates. This calculates the correct position to * use even if the element is relatively positioned to some other element. This * is for trying to position an element at the spot of the mouse cursor in * a MOUSEMOVE event. Just use the event.clientX and event.clientY as the * parameters. * * @param {number|goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ constructor(arg1: number|goog.math.Coordinate, opt_arg2?: number); /** * Coordinate to position popup at. * @type {goog.math.Coordinate} */ coordinate: goog.math.Coordinate; } }