\r
export interface Container extends Parent {\r
new (): Container;\r
- viewbox(): ViewBox;\r
- viewbox(x: ViewBoxLike | number, y?: number, width?: number, height?: number,): this;\r
}\r
interface Library { Container: Container }\r
\r
at(opts: StopProperties): Stop;\r
update(block?: Function): this;\r
fill(): string;\r
+ fill(...any): never;\r
toString(): string;\r
from(x: number, y: number): this;\r
to(x: number, y: number): this;\r
to(): string;\r
show(target: string): this;\r
show(): string;\r
+ show(...any): never;\r
target(target: string): this;\r
target(): string;\r
}\r
native(): SVGMatrix;\r
toString(): string;\r
}\r
- interface Container {\r
+ interface Element {\r
ctm(): Matrix;\r
screenCTM(): Matrix;\r
}\r
at(pos: number): _Number;\r
}\r
interface Library { Number: _Number; }\r
+ \r
+ type NumberAlias = _Number | number | string;\r
\r
// parent.js\r
export interface Parent extends Element {\r
move(x: number, y: number): this;\r
size(width?: number, height?: number): this;\r
parse(array: PathArrayAlias): PathArrayPoint[];\r
+ parse(array: ArrayAlias): never;\r
bbox(): BBox;\r
}\r
interface Library { PathArray: PathArray; }\r
export interface Pattern extends Container {\r
new (): Pattern;\r
fill(): string;\r
+ fill(...any): never;\r
update(block: (pattern: Pattern) => void): this;\r
toString(): string;\r
}\r
y2: number;\r
};\r
parse(points: PointArrayAlias): ArrayPoint[];\r
+ parse(array: ArrayAlias): never;\r
move(x: number, y: number): this;\r
size(width?: number, height?: number): this;\r
bbox(): BBox;\r
width: number;\r
height: number;\r
zoom?: number;\r
- }\r
- interface Container {\r
toString(): string;\r
morph(source: ViewBoxAlias): ViewBox;\r
morph(x: number, y: number, width: number, height: number): ViewBox;\r
at(pos:number): ViewBox;\r
}\r
+ interface Container {\r
+ viewbox(): ViewBox;\r
+ viewbox(x: number, y: number, width: number, height: number): this;\r
+ viewbox(viewbox: ViewBoxLike): this;\r
+ }\r
interface Library { ViewBox: ViewBox; }\r
\r
export interface Animation {\r