A collection of path items.
Go to Property Listing | Method Listing
Property |
Type |
Access |
Description |
---|---|---|---|
Int |
readonly |
Number of elements in the collection. |
|
readonly |
The object's container. |
||
readonly |
The class name of the object. |
PathItem add ()
Create a path.
PathItem ellipse ([top:Number=Number], [left:Number=Number], [width:Number=Number], [height:Number=Number], [reversed:Boolean=Boolean], [inscribed:Boolean=Boolean])
Create an elliptical path item.
Parameter |
Type |
Description |
---|---|---|
top |
The ellipse's bounds. (default: 100) |
|
left |
The ellipse's bounds. (default: 100) |
|
width |
The ellipse's bounds. (default: 50) |
|
height |
The height of the ellipse. (default: 100) |
|
reversed |
Is the ellipse path reversed? (default: false) |
|
inscribed |
Is the ellipse path inscribed? (default: true) |
PathItem getByName (name:String)
Get the first element in the collection with the provided name.
Parameter |
Type |
Description |
---|---|---|
name |
PathItem polygon ([centerX:Number=Number], [centerY:Number=Number], [radius:Number=Number], [sides:Int32=Int32], [reversed:Boolean=Boolean])
Used to create a regular polygon path item. Not for path item access.
Parameter |
Type |
Description |
---|---|---|
centerX |
(default: 200) |
|
centerY |
(default: 300) |
|
radius |
The radius of the polygon points. (default: 50) |
|
sides |
Int32 |
The number of sides on the polygon. (default: 8) |
reversed |
Is the polygon path reversed? (default: false) |
PathItem rectangle (top:Number, left:Number, width:Number, height:Number, [reversed:Boolean=Boolean])
Used to create a rectangular path item. Not for path item access.
Parameter |
Type |
Description |
---|---|---|
top |
The top coordinate of the rectangle's bounds. |
|
left |
The left coordinate of the rectangle's bounds. |
|
width |
The width of the rectangle. |
|
height |
The height of the rectangle. |
|
reversed |
Is the rectangle path reversed? (default: false) |
undefined removeAll ()
Deletes all elements.
PathItem roundedRectangle (top:Number, left:Number, width:Number, height:Number, [horizontalRadius:Number=Number], [verticalRadius:Number=Number], [reversed:Boolean=Boolean])
Used to create a rounded-corner rectangular path item. Not for path item access.
Parameter |
Type |
Description |
---|---|---|
top |
||
left |
||
width |
||
height |
||
horizontalRadius |
Horizontal corner radius. (default: 15) |
|
verticalRadius |
Vertical corner radius. (default: 20) |
|
reversed |
Is the rectangle path reversed? (default: false) |
PathItem star ([centerX:Number=Number], [centerY:Number=Number], [radius:Number=Number], [innerRadius:Number=Number], [points:Int32=Int32], [reversed:Boolean=Boolean])
Used to create a star-shaped path item. Not for path item access.
Parameter |
Type |
Description |
---|---|---|
centerX |
(default: 200) |
|
centerY |
(default: 300) |
|
radius |
The outside radius of the star points. (default: 50) |
|
innerRadius |
The inside radius of the star points. (default: 20) |
|
points |
Int32 |
The number of points on the star. (default: 5) |
reversed |
Is the star path reversed? (default: false) |