Extends Item
Inherited by Path, CompoundPath
Functions
PostScript-style drawing commands
- Parameters:
- point: Point
- Parameters:
- x: Number
- y: Number
- Parameters:
- point: Point
- Parameters:
- x: Number
- y: Number
- Parameters:
- handle1X: Number
- handle1Y: Number
- handle2X: Number
- handle2Y: Number
- toX: Number
- toY: Number
- Parameters:
- throughX: Number
- throughY: Number
- toX: Number
- toY: Number
- t: Number — optional
- Parameters:
- handleX: Number
- handleY: Number
- toX: Number
- toY: Number
- Parameters:
- point: Point
- clockwise: Boolean — optional
- Parameters:
- x: Number
- y: Number
- clockwise: Boolean — optional
- Parameters:
- throughX: Number
- throughY: Number
- toX: Number
- toY: Number
- Parameters:
- vector: Point
- Parameters:
- x: Number
- y: Number
- Parameters:
- throughX: Number
- throughY: Number
- toX: Number
- toY: Number
- parameter: Number — optional
- Parameters:
- vector: Point
- clockwise: Boolean — optional
- Parameters:
- x: Number
- y: Number
- clockwise: Boolean — optional
- Parameters:
- throughX: Number
- throughY: Number
- toX: Number
- toY: Number
Closes the path. If it is closed, Illustrator connects the first and last segments.
Geometric Tests
Checks if the interior of the path intersects with the interior of the specified path.
- Parameters:
- item: PathItem
- Returns:
- Boolean — true if the paths intersect, false otherwise
Checks if the interior of the path contains the interior of the specified path.
- Parameters:
- item: PathItem
- Returns:
- Boolean — true if the path contains the specified path, false otherwise
Checks if the specified point is contained within the interior of the path.
- Parameters:
- point: Point
- Returns:
- Boolean — true if the point is contained within the path, false otherwise
Boolean Operations
Returns all interesections between two Path items in an array of CurveLocation objects. CompoundPath items are support too.
- Parameters:
- path: PathItem
- Returns:
- Array of CurveLocation
Inheritance
- Item
-
- name
- position
- style
- selected
- fullySelected
- locked
- visible
- clipMask
- targeted
- blendMode
- opacity
- isolated
- knockout
- alphaIsShape
- data
- document
- layer
- parent
- children
- firstChild
- lastChild
- nextSibling
- previousSibling
- index
- bounds
- strokeBounds
- controlBounds
- strokeColor
- strokeWidth
- strokeCap
- strokeJoin
- dashOffset
- dashArray
- miterLimit
- strokeOverprint
- fillColor
- fillOverprint
- windingRule
- resolution
- rasterize(items[, type[, resolution, antialiasing[, width, height]]])
- remove()
- removeChildren()
- copyTo(document)
- copyTo(item)
- clone()
- getKnockout(inherited)
- reverseChildren()
- hitTest(point[, request[, tolerance]])
- hitTest(point, tolerance)
- expand([flags[, steps]])
- rasterize([type[, resolution[, antialiasing[, width, height]]]])
- hasChildren()
- isEditable()
- isValid()
- appendTop(item)
- appendBottom(item)
- moveAbove(item)
- moveBelow(item)
- isAbove(item)
- isBelow(item)
- isParent(item)
- isChild(item)
- isDescendant(item)
- isAncestor(item)
- isGroupedWith(item)
- scale(sx, sy[, center])
- scale(scale[, center])
- translate(t)
- rotate(angle[, center])
- shear(shx, shy)
- transform(matrix[, flags])