EDOBE XDOM EM Specifications Page 143

  • Download
  • Add to my manuals
  • Print
  • Page
    / 231
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 142
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 143
PathPoint
Represents the anchor and control-handle endpoints for a path segment. Each point (the anchor point,
left-direction point, and right-direction point) is an array containing X and Y position coordinates.
Use the PathPoint object to retrieve information about the points that describe existing path
segments. The properties are read-only. Access PathPoint
objects through the SubPathItem.pathPoints
property.
Use PathPointInfo with PathItems.add() to create path points. The properties are writeable.
For paths that are straight segments (not curved), the coordinates of all three points are the same. For
curved segements, the the coordinates are different. The difference between the anchor point and the left
or right direction points determines the arc of the curve. You use the left direction point to bend the curve
"outward" or make it convex; you use the right direction point to bend the curve "inward" or make it
concave.
Properties
Property Value type What it is
anchor
array of number
Read-only. The X and Y coordinates of the anchor point of the
curve.
kind
PointKind
Read-only. The role (corner or smooth) this point plays in the
containing path segment.
leftDirection
array of number
Read-only. The location of the left-direction endpoint (’in’
position).
parent
SubPathItem
Read-only. The containing subpath object.
rightDirection
array of number
Read-only. The location of the right-direction endpoint (’out’
position).
typename
string
Read-only. The class name of the referenced PathPoint
object.
Page view 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 230 231

Comments to this Manuals

No comments