API Docs for: 3.5.1
Show:

VMLDrawing Class

VML implementation of the Drawing class. VMLDrawing is not intended to be used directly. Instead, use the Drawing class. If the browser lacks SVG and Canvas capabilities, the Drawing class will point to the VMLDrawing class.

Methods

_draw

() private

Draws the graphic.

_trackSize

(
  • w
  • h
)
private

Updates the size of the graphics object

Parameters:

clear

()

Clears the path.

closePath

()

Ends a fill and stroke

curveTo

(
  • cp1x
  • cp1y
  • cp2x
  • cp2y
  • x
  • y
)

Draws a bezier curve.

Parameters:

  • cp1x Number

    x-coordinate for the first control point.

  • cp1y Number

    y-coordinate for the first control point.

  • cp2x Number

    x-coordinate for the second control point.

  • cp2y Number

    y-coordinate for the second control point.

  • x Number

    x-coordinate for the end point.

  • y Number

    y-coordinate for the end point.

drawCircle

(
  • x
  • y
  • r
)
protected

Draws a circle. Used internally by CanvasCircle class.

Parameters:

drawDiamond

(
  • x
  • y
  • width
  • height
)
protected

Draws a diamond.

Parameters:

drawEllipse

(
  • x
  • y
  • w
  • h
)
protected

Draws an ellipse.

Parameters:

drawRect

(
  • x
  • y
  • w
  • h
  • ew
  • eh
)

Draws a rectangle with rounded corners.

Parameters:

  • x Number

    x-coordinate

  • y Number

    y-coordinate

  • w Number

    width

  • h Number

    height

  • ew Number

    width of the ellipse used to draw the rounded corners

  • eh Number

    height of the ellipse used to draw the rounded corners

drawRect

(
  • x
  • y
  • w
  • h
)

Draws a rectangle.

Parameters:

drawWedge

(
  • x
  • y
  • startAngle
  • arc
  • radius
  • yRadius
)
private

Draws a wedge.

Parameters:

  • 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.

end

()

Completes a drawing operation.

lineTo

(
  • point1
  • point2
)

Draws a line segment using the current line style from the current drawing position to the specified x and y coordinates.

Parameters:

  • point1 Number

    x-coordinate for the end point.

  • point2 Number

    y-coordinate for the end point.

moveTo

(
  • x
  • y
)

Moves the current drawing position to specified x and y coordinates.

Parameters:

  • x Number

    x-coordinate for the end point.

  • y Number

    y-coordinate for the end point.

quadraticCurveTo

(
  • cpx
  • cpy
  • x
  • y
)

Draws a quadratic bezier curve.

Parameters:

  • cpx Number

    x-coordinate for the control point.

  • cpy Number

    y-coordinate for the control point.

  • x Number

    x-coordinate for the end point.

  • y Number

    y-coordinate for the end point.

Properties

_currentX

Number private

Current x position of the drqwing.

_currentY

Number private

Current y position of the drqwing.