Class: DVRect

DVRect

new DVRect(args)

A DVisual graph element indicate a Rect
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Description
x double the x value of the Rect's start node(left top node)
y double the y value of the Rect's start node(left top node)
height double the height of the Rect
y double the width of the Rect
others others <optional>
!!!the same with DVPolygon's arguments.!!!(others is not an argument,but an annotation)
Source:
Example
new DVLine({'beginX':100,'beginY':100,'endX':20,'endY':20,'style':'dash'});

Methods

draw(dv)

draw the Rect on dv's canvas
Parameters:
Name Type Description
dv DVisual the Dvisual instance you want to draw
Source: