##// END OF EJS Templates
some fixes after testing
some fixes after testing

File last commit:

r0:ab570232df7d default
r5:af2703f9110e 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;
}