##// END OF EJS Templates
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made...
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made compatibility stubs with @deprected comments * Improved handling of functional component output, added support for boolean, null, undefined and widgets. * RenditionBase: fixed startup for the DocumentFragment nodes * startupWidgets: fixed startup of the widget when passed domNode of the widget. * DjxFragment converted to the functional component

File last commit:

r2:8ec37bf1b4d1 default
r63:1a0018655d1c v1.1.0 default
Show More
place.d.ts
51 lines | 2.1 KiB | video/mp2t | TypeScriptLexer
cin
created typings for basic part of dojo and dijit further work is required to...
r2 import { DomGeometryBox } from "dojo/dom-geometry";
import dijit = require("../main");
import { PlacePosition, LayoutNodeFunction, PlaceCorner, PlaceLocation } from "../place";
type placeOnScreenAround = (node: Element, aroundNode: Element, aroundCorners: Object | any[], layoutNode?: LayoutNodeFunction) => void;
/**
* Deprecated back compatibility module, new code should use dijit/place directly instead of using this module.
*/
declare module "dojo/_base/kernel" {
interface Dijit {
/**
* Deprecated method to return the dimensions and scroll position of the viewable area of a browser window.
*
* New code should use windowUtils.getBox()
*/
getViewport(): DomGeometryBox;
placeOnScreen(node: Element, pos?: PlacePosition, corners?: PlaceCorner[], padding?: PlacePosition, layoutNode?: LayoutNodeFunction): PlaceLocation;
/**
* Like dijit.placeOnScreenAroundNode(), except it accepts an arbitrary object for the "around" argument and finds a proper processor to place a node.
*
* Deprecated, new code should use dijit/place.around() instead.
*/
placeOnScreenAroundElement: placeOnScreenAround;
/**
* Position node adjacent or kitty-corner to aroundNode such that it's fully visible in viewport.
*
* Deprecated, new code should use dijit/place.around() instead.
*/
placeOnScreenAroundNode: placeOnScreenAround;
/**
* Like dijit.placeOnScreenAroundNode(), except that the "around" parameter is an arbitrary rectangle on the screen (x, y, width, height) instead of a dom node.
*
* Deprecated, new code should use dijit/place.around() instead.
*/
placeOnScreenAroundRectangle: placeOnScreenAround;
/**
* Deprecated method, unneeded when using dijit/place directly.
*
* Transforms the passed array of preferred positions into a format suitable for passing as the aroundCorners argument to dijit/place.placeOnScreenAroundElement.
*/
getPopupAroundAlignment(position: string[], leftToRight?: boolean): { [s: string]: PlaceCorner };
}
}
export = dijit;