MotionScript

@motion-script/core


@motion-script/core / TextBlockLine

Interface: TextBlockLine

Defined in: render/text-layout.ts:20

One laid-out line of a text block.

Properties

bottom

bottom: number

Defined in: render/text-layout.ts:29


carets

carets: number[]

Defined in: render/text-layout.ts:36

The x of every caret slot on this line, block-local, in offset order: carets[i] is the slot at character start + i, so there are end - start + 1 of them — one before each character plus one after the last. Ordered left-to-right; bidirectional text is not modelled in v1.


end

end: number

Defined in: render/text-layout.ts:26


start

start: number

Defined in: render/text-layout.ts:25

Character range this line covers, [start, end), as offsets into the block's whole string. A hard line break is not part of either line.


top

top: number

Defined in: render/text-layout.ts:28

Top and bottom of the line box, block-local.