Methods
public angle(x1: number, y1: number, x2: number, y2: number, x3?: number, y3?: number): number
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
x3?: number optional
-
y3?: number optional
Returns
number
public animation(params: any, ms: number, easing?: string, callback?: Function): RaphaelAnimation
Parameters
-
params: any
-
ms: number
-
easing?: string optional
-
callback?: Function optional
Returns
RaphaelAnimation
public bezierBBox(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): { min: { x: number; y: number; }; max: { x: number; y: number; }; }
Parameters
-
p1x: number
-
p1y: number
-
c1x: number
-
c1y: number
-
c2x: number
-
c2y: number
-
p2x: number
-
p2y: number
Returns
{ min: { x: number; y: number; }; max: { x: number; y: number; }; }
public bezierBBox(bez: Array<any>): { min: { x: number; y: number; }; max: { x: number; y: number; }; }
Parameters
Returns
{ min: { x: number; y: number; }; max: { x: number; y: number; }; }
public color(clr: string): { r: number; g: number; b: number; hex: string; error: boolean; h: number; s: number; v: number; l: number; }
Parameters
Returns
{ r: number; g: number; b: number; hex: string; error: boolean; h: number; s: number; v: number; l: number; }
public createUUID(): string
Returns
string
public deg(deg: number): number
Parameters
Returns
number
public findDotsAtSegment(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number, t: number): { x: number; y: number; m: { x: number; y: number; }; n: { x: number; y: number; }; start: { x: number; y: number; }; end: { x: number; y: number; }; alpha: number; }
Parameters
-
p1x: number
-
p1y: number
-
c1x: number
-
c1y: number
-
c2x: number
-
c2y: number
-
p2x: number
-
p2y: number
-
t: number
Returns
{ x: number; y: number; m: { x: number; y: number; }; n: { x: number; y: number; }; start: { x: number; y: number; }; end: { x: number; y: number; }; alpha: number; }
public format(token: string, parameters?: Array<any>): string
Parameters
-
token: string
-
parameters?: Array<any> optional
Returns
string
public fullfill(token: string, json: JSON): string
Parameters
Returns
string
public getPointAtLength(path: string, length: number): { x: number; y: number; alpha: number; }
Parameters
-
path: string
-
length: number
Returns
{ x: number; y: number; alpha: number; }
public getRGB(colour: string): { r: number; g: number; b: number; hex: string; error: boolean; }
Parameters
Returns
{ r: number; g: number; b: number; hex: string; error: boolean; }
public getSubpath(path: string, from: number, to: number): string
Parameters
-
path: string
-
from: number
-
to: number
Returns
string
public getTotalLength(path: string): number
Parameters
Returns
number
public hsb(h: number, s: number, b: number): string
Parameters
-
h: number
-
s: number
-
b: number
Returns
string
public hsb2rgb(h: number, s: number, v: number): { r: number; g: number; b: number; hex: string; }
Parameters
-
h: number
-
s: number
-
v: number
Returns
{ r: number; g: number; b: number; hex: string; }
public hsl(h: number, s: number, l: number): string
Parameters
-
h: number
-
s: number
-
l: number
Returns
string
public hsl2rgb(h: number, s: number, l: number): { r: number; g: number; b: number; hex: string; }
Parameters
-
h: number
-
s: number
-
l: number
Returns
{ r: number; g: number; b: number; hex: string; }
public is(o: any, type: string): boolean
Parameters
Returns
boolean
public isBBoxIntersect(bbox1: string, bbox2: string): boolean
Parameters
-
bbox1: string
-
bbox2: string
Returns
boolean
public isPointInsideBBox(bbox: string, x: number, y: number): boolean
Parameters
-
bbox: string
-
x: number
-
y: number
Returns
boolean
public isPointInsidePath(path: string, x: number, y: number): boolean
Parameters
-
path: string
-
x: number
-
y: number
Returns
boolean
public matrix(a: number, b: number, c: number, d: number, e: number, f: number): RaphaelMatrix
Parameters
-
a: number
-
b: number
-
c: number
-
d: number
-
e: number
-
f: number
Returns
RaphaelMatrix
public ninja()
public parsePathString(pathString: string): Array<string>
Parameters
Returns
Array<string>
public parsePathString(pathString: Array<string>): Array<string>
Parameters
-
pathString: Array<string>
Returns
Array<string>
public parseTransformString(TString: string): Array<string>
Parameters
Returns
Array<string>
public parseTransformString(TString: Array<string>): Array<string>
Parameters
Returns
Array<string>
public path2curve(pathString: string): Array<string>
Parameters
Returns
Array<string>
public path2curve(pathString: Array<string>): Array<string>
Parameters
-
pathString: Array<string>
Returns
Array<string>
public pathIntersection(path1: string, path2: string): Array<{ x: number; y: number; t1: number; t2: number; segment1: number; segment2: number; bez1: any[]; bez2: any[]; }>
Parameters
-
path1: string
-
path2: string
Returns
Array<{ x: number; y: number; t1: number; t2: number; segment1: number; segment2: number; bez1: any[]; bez2: any[]; }>
public pathToRelative(pathString: string): Array<string>
Parameters
Returns
Array<string>
public pathToRelative(pathString: Array<string>): Array<string>
Parameters
-
pathString: Array<string>
Returns
Array<string>
public rad(deg: number): number
Parameters
Returns
number
Parameters
Returns
RaphaelFont
public rgb(r: number, g: number, b: number): string
Parameters
-
r: number
-
g: number
-
b: number
Returns
string
public rgb2hsb(r: number, g: number, b: number): { h: number; s: number; b: number; }
Parameters
-
r: number
-
g: number
-
b: number
Returns
{ h: number; s: number; b: number; }
public rgb2hsl(r: number, g: number, b: number): { h: number; s: number; l: number; }
Parameters
-
r: number
-
g: number
-
b: number
Returns
{ h: number; s: number; l: number; }
public setWindow(newwin: Window)
Parameters
public snapTo(values: number, value: number, tolerance?: number): number
Parameters
-
values: number
-
value: number
-
tolerance?: number optional
Returns
number
public snapTo(values: Array<number>, value: number, tolerance?: number): number
Parameters
-
values: Array<number>
-
value: number
-
tolerance?: number optional
Returns
number
public toMatrix(path: string, transform: string): RaphaelMatrix
Parameters
-
path: string
-
transform: string
Returns
RaphaelMatrix
public toMatrix(path: string, transform: Array<string>): RaphaelMatrix
Parameters
-
path: string
-
transform: Array<string>
Returns
RaphaelMatrix
public transformPath(path: string, transform: string): string
Parameters
-
path: string
-
transform: string
Returns
string
public transformPath(path: string, transform: Array<string>): string
Parameters
-
path: string
-
transform: Array<string>
Returns
string