Instance Method
setPosition(_:forLayerWidth:) setPosition:forLayerWidth: setPosition_forLayerWidth_
Sets the position in layer coordinates for a layer width.
Declaration
func setPosition(_ position: NSPoint, forLayerWidth width: CGFloat)Declaration
- (void) setPosition:(NSPoint) position forLayerWidth:(CGFloat) width;Declaration
setPosition_forLayerWidth_(position: NSPoint, width: float)Parameters
widthThe layer width used for orientation adjustment.
Discussion
For a node in a path, setting the position registers undo, aligns it to the layer grid, and notifies the path.
See Also
Position
The position in layer coordinates.
The position in layer coordinates for a layer width.
The position without orientation adjustment.
Sets the position without registering undo or notifying the path.
Sets the unrounded position and rounds the position to a grid without registering undo or notifying the path.
The unrounded position in layer coordinates.
The unrounded position in layer coordinates for a layer width.
The unrounded position without orientation adjustment.
Rounds the position to a grid.
Rounds the position to a grid without registering undo or notifying the path.