Instance Method
alignPoint(toGrid:type:) alignPointToGrid:type: alignPointToGrid_type_
A point aligned to the layer grid for a node type.
Declaration
- (NSPoint) alignPointToGrid:(NSPoint) point type:(GSNodeType) type;Declaration
alignPointToGrid_type_(point: NSPoint, type: GSNodeType) -> NSPointParameters
typeThe node type used for alignment.
Discussion
Off-curve nodes may use a finer grid than on-curve nodes. Returns the original point when rounding is temporarily disabled or no associated master is available.
See Also
Grid
Current grid settings used for layer rounding, or
nilwhen no grid is available.Current grid settings, limiting horizontal rounding to a maximum grid length.
Horizontal grid length used for layer rounding.
Vertical grid length used for layer rounding.
Temporarily disables grid rounding for layer operations.
See Also
Grid
Current grid settings used for layer rounding.
Current grid settings, limiting horizontal rounding to a maximum grid length.
Horizontal grid length used for layer rounding.
Vertical grid length used for layer rounding.
Temporarily disables grid rounding for layer operations.