|
|
/// <reference path="dojo.d.ts" />
|
|
|
/// <reference path="_base.d.ts" />
|
|
|
/// <reference path="fx.d.ts" />
|
|
|
|
|
|
declare namespace dojo {
|
|
|
|
|
|
interface NodeListAnimationArgs extends Omit<_base.AnimationArguments, "node"> {
|
|
|
auto?: false;
|
|
|
}
|
|
|
|
|
|
interface NodeListAutoAnimationArgs extends Omit<_base.AnimationArguments, "node"> {
|
|
|
auto: true;
|
|
|
}
|
|
|
|
|
|
interface NodeList<T extends Node> {
|
|
|
|
|
|
_anim(obj: any, method: string, args?: NodeListAnimationArgs): _base.Animation;
|
|
|
_anim(obj: any, method: string, args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* wipe in all elements of this NodeList via `dojo/fx.wipeIn()`
|
|
|
*/
|
|
|
wipeIn(args?: NodeListAnimationArgs): _base.Animation;
|
|
|
wipeIn(args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* wipe out all elements of this NodeList via `dojo/fx.wipeOut()`
|
|
|
*/
|
|
|
wipeOut(args?: NodeListAnimationArgs): _base.Animation;
|
|
|
wipeOut(args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* slide all elements of the node list to the specified place via `dojo/fx.slideTo()`
|
|
|
*/
|
|
|
slideTo(args?: NodeListAnimationArgs): _base.Animation;
|
|
|
slideTo(args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* fade in all elements of this NodeList via `dojo.fadeIn`
|
|
|
*/
|
|
|
fadeIn(args?: NodeListAnimationArgs): _base.Animation;
|
|
|
fadeIn(args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* fade out all elements of this NodeList via `dojo.fadeOut`
|
|
|
*/
|
|
|
fadeOut(args?: NodeListAnimationArgs): _base.Animation;
|
|
|
fadeOut(args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* Animate all elements of this NodeList across the properties specified.
|
|
|
* syntax identical to `dojo.animateProperty`
|
|
|
*/
|
|
|
animateProperty(args?: NodeListAnimationArgs): _base.Animation;
|
|
|
animateProperty(args: NodeListAutoAnimationArgs): this;
|
|
|
|
|
|
/**
|
|
|
* Animate one or more CSS properties for all nodes in this list.
|
|
|
* The returned animation object will already be playing when it
|
|
|
* is returned. See the docs for `dojo.anim` for full details.
|
|
|
*/
|
|
|
anim(properties: _base.AnimationArgumentsProperties, duration?: number, easing?: (n?: number) => number, onEnd?: Function, delay?: number): _base.Animation;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
declare module 'dojo/NodeList-fx' {
|
|
|
type NodeList<T extends Node> = dojo.NodeList<T>;
|
|
|
const NodeList: dojo.NodeListConstructor;
|
|
|
export = NodeList;
|
|
|
}
|
|
|
|