algonim
    Preparing search index...

    Interface TextAtom

    Something that can be drawn inline with text.

    interface TextAtom {
        measure(drawer: Drawer, style: FontStyle): Size;
        draw(position: Point, drawer: Drawer, style: FontStyle): void;
        tryClip(maxWidth: number, style: FontStyle): ClipResult<TextAtom> | null;
        trimFromEnd(): boolean;
    }

    Implemented by

    Index

    Methods

    • Whether this atom should be trimmed from the ends of lines, like whitespace.

      Returns boolean