align
Adds an alignment transformation to the current step.
align(ref?: Output<TElement>, origin?: [number, number], refOrigin?: [number, number], scaleX?: number, scaleY?: number): this
Parameters
- ref — The view output element to which to align
- origin — The current output element (relative) origin to use for alignment ([0,0] - [1,1]), defaults to [0.5,0.5]
- refOrigin — The reference output element (relative) origin to use for alignment ([0,0] - [1,1]), defaults to [0.5,0.5]
- scaleX — The horizontal scale factor to apply
- scaleY — The vertical scale factor to apply
Related
- interface RenderContext.OutputTransform staticAn interface for an object that represents transformations to be applied to an output element.