graphics/js/GraphicBase.js:297
Drawing
provides a set of drawing methods used by Path
and custom shape classes.
Drawing
has the following implementations based on browser capability.
curveTo
cp1x
cp1y
cp2x
cp2y
x
y
Defined in
graphics/js/GraphicBase.js:309
Draws a bezier curve.
drawDiamond
x
y
width
height
Defined in
graphics/js/GraphicBase.js:374
Draws a diamond.
drawEllipse
x
y
w
h
Defined in
graphics/js/GraphicBase.js:363
Draws an ellipse.
drawRoundRect
x
y
w
h
ew
eh
Defined in
graphics/js/GraphicBase.js:341
Draws a rectangle with rounded corners.
drawWedge
x
y
startAngle
arc
radius
yRadius
Defined in
graphics/js/GraphicBase.js:385
Draws a wedge.
x
Number
x-coordinate of the wedge's center point
y
Number
y-coordinate of the wedge's center point
startAngle
Number
starting angle in degrees
arc
Number
sweep of the wedge. Negative values draw clockwise.
radius
Number
radius of wedge. If [optional] yRadius is defined, then radius is the x radius.
yRadius
Number
[optional] y radius for wedge.
lineTo
point1
point2
Defined in
graphics/js/GraphicBase.js:398
Draws a line segment using the current line style from the current drawing position to the specified x and y coordinates.
moveTo
x
y
Defined in
graphics/js/GraphicBase.js:414
Moves the current drawing position to specified x and y coordinates.
quadraticCurveTo
cpx
cpy
x
y
Defined in
graphics/js/GraphicBase.js:321
Draws a quadratic bezier curve.
relativeLineTo
point1
point2
Defined in
graphics/js/GraphicBase.js:406
Draws a line segment using the current line style from the current drawing position to the relative x and y coordinates.
relativeMoveTo
x
y
Defined in
graphics/js/GraphicBase.js:422
Moves the current drawing position relative to specified x and y coordinates.