Interface RaphaelElement

Hierarchy

Index

Properties

Methods

Properties

public id: string

public matrix: RaphaelMatrix

public next: RaphaelElement

public node: SVGElement

public paper: RaphaelPaper

public prev: RaphaelElement

public raphael: RaphaelStatic

Methods

public animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement

Parameters

  • params: { [key: string]: any; }
  • ms: number
  • easing?: string optional
  • callback?: Function optional

Returns

RaphaelElement

public animate(animation: RaphaelAnimation): RaphaelElement

Parameters

Returns

RaphaelElement

public animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement

Parameters

Returns

RaphaelElement

public animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement

Parameters

Returns

RaphaelElement

public attr(attrName: string, value: any): RaphaelElement

Parameters

  • attrName: string
  • value: any

Returns

RaphaelElement

public attr(params: any): RaphaelElement

Parameters

  • params: any

Returns

RaphaelElement

public attr(attrName: string): any

Parameters

  • attrName: string

Returns

any

public attr(attrNames: Array<string>): Array<any>

Parameters

  • attrNames: Array<string>

Returns

Array<any>

public click(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public clone(): RaphaelElement

Returns

RaphaelElement

public data(key: string): any

Parameters

  • key: string

Returns

any

public data(key: string, value: any): RaphaelElement

Parameters

  • key: string
  • value: any

Returns

RaphaelElement

public dblclick(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) => {}, onstart: (x: number, y: number, event: DragEvent) => {}, onend: (DragEvent: any) => {}, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement

Parameters

  • onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) => {}
  • onstart: (x: number, y: number, event: DragEvent) => {}
  • onend: (DragEvent: any) => {}
  • mcontext?: any optional
  • scontext?: any optional
  • econtext?: any optional

Returns

RaphaelElement

public getBBox(isWithoutTransform?: boolean): BoundingBox

Parameters

  • isWithoutTransform?: boolean optional

Returns

BoundingBox

public glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet

Parameters

  • glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; } optional

Returns

RaphaelSet

public hide(): RaphaelElement

Returns

RaphaelElement

public hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement

Parameters

  • f_in: Function
  • f_out: Function
  • icontext?: any optional
  • ocontext?: any optional

Returns

RaphaelElement

public insertAfter(): RaphaelElement

Returns

RaphaelElement

public insertBefore(): RaphaelElement

Returns

RaphaelElement

public isPointInside(x: number, y: number): boolean

Parameters

  • x: number
  • y: number

Returns

boolean

public isVisible(): boolean

Returns

boolean

public mousedown(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public mousemove(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public mouseout(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public mouseover(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public mouseup(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public onDragOver(f: Function): RaphaelElement

Parameters

  • f: Function

Returns

RaphaelElement

public pause(anim?: RaphaelAnimation): RaphaelElement

Parameters

Returns

RaphaelElement

public remove()

public removeData(key?: string): RaphaelElement

Parameters

  • key?: string optional

Returns

RaphaelElement

public resume(anim?: RaphaelAnimation): RaphaelElement

Parameters

Returns

RaphaelElement

public setTime(anim: RaphaelAnimation)

Parameters

public setTime(anim: RaphaelAnimation, value: number): RaphaelElement

Parameters

Returns

RaphaelElement

public show(): RaphaelElement

Returns

RaphaelElement

public status(): Array<{ anim: RaphaelAnimation; status: number; }>

Returns

Array<{ anim: RaphaelAnimation; status: number; }>

public status(anim: RaphaelAnimation): number

Parameters

Returns

number

public status(anim: RaphaelAnimation, value: number): RaphaelElement

Parameters

Returns

RaphaelElement

public stop(anim?: RaphaelAnimation): RaphaelElement

Parameters

Returns

RaphaelElement

public toBack(): RaphaelElement

Returns

RaphaelElement

public toFront(): RaphaelElement

Returns

RaphaelElement

public touchcancel(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public touchend(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public touchmove(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public touchstart(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public transform(): string

Returns

string

public transform(tstr: string): RaphaelElement

Parameters

  • tstr: string

Returns

RaphaelElement

public unclick(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public undblclick(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public undrag(): RaphaelElement

Returns

RaphaelElement

public unhover(): RaphaelElement

Returns

RaphaelElement

public unhover(f_in: Function, f_out: Function): RaphaelElement

Parameters

  • f_in: Function
  • f_out: Function

Returns

RaphaelElement

public unmousedown(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public unmousemove(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public unmouseout(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public unmouseover(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public unmouseup(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public untouchcancel(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public untouchend(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public untouchmove(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement

public untouchstart(handler: Function): RaphaelElement

Parameters

  • handler: Function

Returns

RaphaelElement