A path or drawing object, such as the outline of a shape or a straight or curved line, which contains sub paths that comprise its geometry.
Go to Property Listing | Method Listing
add, duplicate, remove, removeAll, duplicate, makeSelection, fillPath, strokePath, makeClippingPath, select, deselect
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
The type of path. |
||
read/write |
The name of the path item. |
||
readonly |
The object's container. |
||
readonly |
The sub path objects for this path item. |
||
readonly |
The class name of the object. |
PathItem add ()
Adds an element.
undefined deselect ()
Unselects the selection, no path items are selected.
PathItem duplicate (relativeObject:Object, insertionLocation:ElementPlacement)
Duplicate this object.
Parameter |
Type |
Description |
---|---|---|
relativeObject |
||
insertionLocation |
PathItem duplicate ([name:String])
Duplicates this path item.
Parameter |
Type |
Description |
---|---|---|
name |
The name for the new path. |
undefined fillPath ([fillColor:Varies], [mode:ColorBlendMode], [opacity:Number], [preserveTransparency:Boolean], [feather:Number], [antiAlias:Boolean], [wholePath:Boolean])
Fills the area enclosed by the path.
Parameter |
Type |
Description |
---|---|---|
fillColor |
Varies |
The color of the fill for this path. |
mode |
The blending mode of the fill for this path. |
|
opacity |
The opacity of the fill for this path (as a percentage). Range: 0.0 to 100.0. |
|
preserveTransparency |
If true, transparency is preserved. |
|
feather |
The feather amount in pixels. Range: 0.0 to 250.0. |
|
antiAlias |
If true, uses anti-aliasing for the selection. |
|
wholePath |
If true, uses all subpaths when doing the fill. |
undefined makeClippingPath ([flatness:Number])
Makes this path item the clipping path for this document.
Parameter |
Type |
Description |
---|---|---|
flatness |
Flatness in device pixels; tells the PostScript printer how to approximate curves. Range: 0.2 to 100). |
undefined makeSelection ([feather:Number], [antiAlias:Boolean], [operation:SelectionType])
Makes a selection object, whose border is the path, from this path item object.
Parameter |
Type |
Description |
---|---|---|
feather |
The feather amount in pixels. Range: 0.0 to 250.0. |
|
antiAlias |
If true, the selection uses anti-aliasing. |
|
operation |
The selection behavior relative to the existing selection (when a selection already exists). |
undefined remove ()
Deletes this object.
undefined removeAll ()
Deletes all elements.
undefined select ()
Makes this path item the active or selected path item.
undefined strokePath ([tool:ToolType], [simulatePressure:Boolean])
Strokes the path.