##// END OF EJS Templates
Added tag v1.0.3 for changeset 1e87acba35f3
Added tag v1.0.3 for changeset 1e87acba35f3

File last commit:

r0:ab570232df7d default
r13:063868694d83 default
Show More
VectorText.d.ts
49 lines | 1.1 KiB | video/mp2t | TypeScriptLexer
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;
}