Function.Creator.createObject

dojo.require("dojox.gfx.canvas");
defined in dojox/gfx/canvas.js

creates an instance of the passed shapeType class

Usage

function (/*Function*/ shapeType, /*Object*/ rawShape) (view source)
parametertypedescription
shapeTypeFunctiona class constructor to create an instance of
rawShapeObjectproperties to be passed in to the classes "setShape" method overrideSize: Boolean: set the size explicitly, if true