Clear Up
SharpKit Reference

Paper.add Method (Array)

Imports elements in JSON array in format {type: type, [attributes]}

Namespace: SharpKit.Raphael

Class: Paper

Syntax

public object add(Array json)

Parameters

json
Type: System.Array

Return Value

Type: System.Object
resulting set of imported elements

Examples

usage
paper.add([
{
type: "circle",
cx: 10,
cy: 10,
r: 5
},
{
type: "rect",
x: 10,
y: 10,
width: 10,
height: 10,
fill: "#fc0"
}
]);
            
© Copyright 2005-2011 SharpKit. All rights reserved.