\r
// attr.js\r
interface Element {\r
+ attr(): object;\r
attr(name: string): any;\r
attr(obj: Object): this;\r
attr(name: string, value: any, namespace?: string): this;\r
// rect.js\r
export interface Rect extends Shape {\r
new (): Rect;\r
+ radius(x: number, y?: number): this;\r
}\r
interface Library { Rect: Rect; }\r
interface Container {\r
}\r
interface FontData {\r
family?: string;\r
- size?: number;\r
+ size?: NumberAlias;\r
anchor?: string;\r
- leading?: string;\r
+ leading?: NumberAlias;\r
weight?: string;\r
style?: string\r
}\r
text(text: string): this;\r
text(block: (text: Text) => void): this;\r
size(fontSize: NumberAlias): this;\r
- leading(leading: number): this;\r
- lines(): number;\r
+ leading(): number;\r
+ leading(leading: NumberAlias): this;\r
+ lines(): Set;\r
rebuild(enabled: boolean): this;\r
build(enabled: boolean): this;\r
plain(text: string): this;\r
attr(name: string, value: any, namespace?: string): Animation;\r
attr(obj: Object): Animation;\r
attr(name: string): any;\r
+ attr(): object;\r
\r
viewbox(x: number, y: number, w: number, h: number): Animation;\r
\r