##// END OF EJS Templates
`dojo.store.api` replaced `dojo.promise.Promise<T>` with `PromiseLike<T>` type
`dojo.store.api` replaced `dojo.promise.Promise<T>` with `PromiseLike<T>` type

File last commit:

r0:ab570232df7d default
r12:1e87acba35f3 v1.0.3 default
Show More
VectorText.d.ts
49 lines | 1.1 KiB | video/mp2t | TypeScriptLexer
cin
Initial commit, project structure.
r0 declare namespace dojox {
namespace gfx {
interface VectorFont {
family: string;
size: string;
type: string;
}
interface VectorText {
align: string;
decoration: string;
fitting: number; // TODO enum? vectorFontFitting
height: number;
leading: number;
text: string;
type: string;
width: number;
x: number;
y: number;
draw(
group: dojox.gfx.shape.Container,
text: Text,
font: Font,
fill: Fill,
stroke: Stroke
): Group;
getBaseLine(scale?: number): number;
getCenterLine(scale?: number): number;
getLineHeight(scale?: number): number;
getWidth(text: string, scale?: number): number;
initialized(): boolean;
load(url: string): this;
onLoad(font: VectorText): void;
onLoadBegin(url: string): void;
}
interface VectorTextConstructor extends dojo._base.DeclareConstructor<VectorText> {
new(url?: string): VectorText;
prototype: VectorText;
}
}
}
declare module 'dojox/gfx/VectorText' {
type VectorText = dojox.gfx.VectorText;
const VectorText: dojox.gfx.VectorTextConstructor;
export = VectorText;
}