Instance Method
transform(_:selection:) transform:selection: transform_selection_
Applies an affine transformation to selected elements of the shape.
Declaration
func transform(_ transform: AffineTransform, selection: NSOrderedSet?)Declaration
- (void) transform:(NSAffineTransform *) transform selection:(NSOrderedSet *) selection;Declaration
transform_selection_(transform: NSAffineTransform, selection: NSOrderedSet)Parameters
selectionThe elements to transform, or
nilfor the complete shape.
Discussion
A path selection contains nodes, while a transformable shape selection contains the shape itself. Pass nil to transform the complete shape.
See Also
Geometry
Applies an affine transformation to the complete shape.
Applies an affine transformation and aligns the resulting coordinates to a grid without registering undo or notifying the layer.
Translates the complete shape by an offset.
Copies corresponding positions and transformation values from another shape.