meo-skia-canvas
    Preparing search index...

    Variable PlaceholderAlignmentConst

    PlaceholderAlignment: {
        AboveBaseline: 1;
        Baseline: 0;
        BelowBaseline: 2;
        Bottom: 4;
        Middle: 5;
        Top: 3;
    }

    How a placeholder sits against the line it interrupts.

    Passed to ParagraphBuilder.addPlaceholder; the numbering is CanvasKit's.

    🧪 Not in the HTML Canvas standard.

    Type Declaration

    • ReadonlyAboveBaseline: 1

      Sit the placeholder on top of the baseline.

    • ReadonlyBaseline: 0

      Line the placeholder's own baseline up with the text's.

    • ReadonlyBelowBaseline: 2

      Hang the placeholder below the baseline.

    • ReadonlyBottom: 4

      Align its bottom edge with the line's bottom.

    • ReadonlyMiddle: 5

      Centre it against the line.

    • ReadonlyTop: 3

      Align its top edge with the line's top.