Clear Up
SharpKit Reference

Raphael.el Property

You can add your own method to elements. This is usefull when you want to hack default functionality or want to wrap some common transformation or attributes in one method. In difference to canvas methods, you can redefine element method at any time. Expending element methods wouldn’t affect set.

Namespace: SharpKit.Raphael

Class: Raphael

Syntax

public object el { get; set; }

Return Value

Type: System.Object

Examples

usage
Raphael.el.red = function () {
this.attr({fill: "#f00"});
};
// then use it
paper.circle(100, 100, 20).red();
            
© Copyright 2005-2011 SharpKit. All rights reserved.