def text.finish

gralha-svg-render@0.1.0.1 · svg.bend:3616

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-xml-doc@0.1.0.1/xml.bend as XML

3616def text.finish(+result: TextLayout, as: List<&2, XML.Attr>) -> XML.Element:
3617  TextLayout{nodes, cursor} = result
3618  TextCursor{x, y, index, chunk, start, anchor, prev, pc, pf, ps, seen, blankState, trailing, spacing, chunks} = cursor
3619  text.finished.nodes(text.path.finish(text.anchor.nodes(nodes, text.chunk(cursor), U.choose(String, F32.is_gt(trailing, 0.0), U32.show((index - 1 : U32)), "#none"))), as)

Uses (15)

Used by (1)