Class: DVCurve

DVCurve

new DVCurve(args)

A DVisual graph element indicate a quadratic Curve
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
beginX double the x value of the start node
beginY double the y value of the start node
endX double the x value of the stop node
endY double the y value of the stop node
cpx double the x value of the control node
cpy double the y value of the control node
color DVColor <optional>
new DVColor() the color of the dot,black in default
lineWidth double <optional>
'1' the lineWidth of line
Source:
Example
new DVLine({'beginX':100,'beginY':100,'endX':20,'endY':20,'style':'dash'});

Methods

draw(dv)

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