Skip to content

vyaz-monorepo / core/src / FrameTransform

Interface: FrameTransform

Defined in: core/src/layout/TextFrameLayoutEngine.ts:77

Rigid transform a renderer applies to TextFrameLayoutResult.lines so a sideways-* writing mode or an explicit rotation takes visual effect. The layout math itself (line breaking, measuring, positioning) is unchanged.

Properties

layoutBox

layoutBox: object

Defined in: core/src/layout/TextFrameLayoutEngine.ts:85

The box lines occupy in their own pre-rotation coordinate space. The renderer rotates this box about its centre; for rotate of 90 / 270 the visible canvas is this box with width and height swapped.

height

height: number

width

width: number


rotate

rotate: number

Defined in: core/src/layout/TextFrameLayoutEngine.ts:79

Net clockwise rotation in degrees, normalised to [0, 360).

Released under the MIT License.