Clear Up
SharpKit Reference

Raphael.fullfill Method (string, object)

A little bit more advanced format function than Raphael.format. Replaces construction of type “{[name]}” to the corresponding argument.

Namespace: SharpKit.Raphael

Class: Raphael

Syntax

public static string fullfill(string token, object json)

Parameters

token
Type: System.String
string to format
json
Type: System.Object
object which properties will be used as a replacement

Return Value

Type: System.String
formated string

Examples

usage
// this will draw a rectangular shape equivalent to "M10,20h40v50h-40z"
paper.path(Raphael.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']}z", {
x: 10,
y: 20,
dim: {
width: 40,
height: 50,
"negative width": -40
}
}));
            
© Copyright 2005-2011 SharpKit. All rights reserved.