Edit in GitHubLog an issue

Line

Kind: class Extends: GraphicNode

Line leaf node shape. Lines have a stroke but no fill.

start#

start: Point

Start point of the Line in local coordinate space. To change the start point, use setStartEnd.

Kind: instance property of Line Read only: true

end#

end: Point

Endpoint of the Line in local coordinate space. To change the endpoint, use setStartEnd.

Kind: instance property of Line Read only: true

setStartEnd()#

setStartEnd(startX, startY, endX, endY)

Set the start and end points of the Line in local coordinate space. The values may be normalized by this setter, shifting the node's translation and counter-shifting the start/end points. So the start/end getters may return values different from the values you passed this setter, even though the line's visual bounds and appearance are the same.

ParamType
startXnumber
startYnumber
endXnumber
endYnumber

Kind: instance method of Line

Was this helpful?
Copyright © 2021 Adobe. All rights reserved.