mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
path function to allow (string | number)[]
It is totally legal to have something like this: paper.path(['M' + (startX), (startY), 'L' + (startX), (startY)]);
This commit is contained in:
Vendored
+1
-1
@@ -210,7 +210,7 @@ interface RaphaelPaper {
|
||||
getFont(family: string, weight?: number, style?: string, stretch?: string): RaphaelFont;
|
||||
height: number;
|
||||
image(src: string, x: number, y: number, width: number, height: number): RaphaelElement;
|
||||
path(pathString?: string): RaphaelPath;
|
||||
path(pathString?: string | (string | number)[]): RaphaelPath;
|
||||
print(x: number, y: number, str: string, font: RaphaelFont, size?: number, origin?: string, letter_spacing?: number): RaphaelPath;
|
||||
rect(x: number, y: number, width: number, height: number, r?: number): RaphaelElement;
|
||||
remove(): void;
|
||||
|
||||
Reference in New Issue
Block a user