dojox/gfx/arc (version 1.10)

Summary

This module contains the core graphics Arc functions.

See the dojox/gfx/arc reference documentation for more information.

Property Summary

  • curvePI4an object with properties of an arc around a unit circle from 0 to pi/4

Method Summary

  • arcAsBezier(last,rx,ry,xRotg,large,sweep,x,y) calculates an arc as a series of Bezier curves given the last point and a standard set of SVG arc parameters, it returns an array of arrays of parameters to form a series of absolute Bezier curves.
  • unitArcAsBezier(alpha) return a start point, 1st and 2nd control points, and an end point of a an arc, which is reflected on the x axis

Properties

curvePI4
Defined by: dojox/gfx/arc

an object with properties of an arc around a unit circle from 0 to pi/4

Methods

arcAsBezier(last,rx,ry,xRotg,large,sweep,x,y)
Defined by dojox/gfx/arc

calculates an arc as a series of Bezier curves given the last point and a standard set of SVG arc parameters, it returns an array of arrays of parameters to form a series of absolute Bezier curves.

Parameter Type Description
last Object

a point-like object as a start of the arc

rx Number

a horizontal radius for the virtual ellipse

ry Number

a vertical radius for the virtual ellipse

xRotg Number

a rotation of an x axis of the virtual ellipse in degrees

large Boolean

which part of the ellipse will be used (the larger arc if true)

sweep Boolean

direction of the arc (CW if true)

x Number

the x coordinate of the end point of the arc

y Number

the y coordinate of the end point of the arc

Returns:Array
unitArcAsBezier(alpha)
Defined by dojox/gfx/arc

return a start point, 1st and 2nd control points, and an end point of a an arc, which is reflected on the x axis

Parameter Type Description
alpha Number

angle in radians, the arc will be 2 * angle size

Error in the documentation? Can’t find what you are looking for? Let us know!