##// END OF EJS Templates
updated _WidgetBase typings, added support for the generic type parameter to the constructor
updated _WidgetBase typings, added support for the generic type parameter to the constructor

File last commit:

r0:ab570232df7d default
r1:d55cc09feba1 default
Show More
metrics.d.ts
35 lines | 819 B | video/mp2t | TypeScriptLexer
declare namespace dojox {
namespace html {
namespace metrics {
interface FontMeasurements {
'100%': number;
'12pt': number;
'16px': number;
'1em': number;
'1ex': number;
large: number;
medium: number;
small: number;
'x-large': number;
'xx-large': number;
'x-small': number;
'xx-small': number;
}
interface Metrics {
getCachedFontMeasurements(recalculate?: boolean): FontMeasurements;
getFontMeasurements(): FontMeasurements;
getScrollbar(): dojo.DomGeometryWidthHeight;
getTextBox(text: string, style?: Object, className?: string): dojo.DomGeometryXYBox;
initOnFontResize(): void;
onFontResize(event: Event): void;
}
}
}
}
declare module 'dojox/html/metrics' {
const metrics: dojox.html.metrics.Metrics;
export = metrics;
}