meo-canvas - v8.1.0
    Preparing search index...

    Variable StyleConst

    Style: typeof All & {
        BackgroundRepeat: typeof BackgroundRepeat;
        BackgroundSize: typeof BackgroundSize;
        BlendMode: typeof BlendMode;
        Border: typeof Border;
        GradientType: typeof GradientType;
        ObjectFit: typeof ObjectFit;
        PaintOrder: typeof PaintOrder;
        TextAlign: typeof TextAlign;
        TextDecoration: typeof TextDecoration;
        VerticalAlign: typeof VerticalAlign;
    } = ...

    Consolidated Style object combining Yoga layout constants and custom border styles

    Everything Yoga defines, plus the constants for the parts of drawing Yoga has no notion of. The custom enums are string-valued, and the values are the CSS keywords themselves — so a caller can pass either Style.BlendMode.Multiply or 'multiply', and a value can be handed to a canvas context without a lookup table in between. Border predates that and is numeric.

    Type Declaration

    • BackgroundRepeat: typeof BackgroundRepeat

      How a background image tiles.

    • BackgroundSize: typeof BackgroundSize

      How a background image is sized against its box.

    • BlendMode: typeof BlendMode

      How a node's pixels combine with what is behind them.

    • Border: typeof Border

      Border styles, which Yoga has no notion of — it lays out a border's width, not its look.

    • GradientType: typeof GradientType

      The shape a gradient's stops are laid along.

    • ObjectFit: typeof ObjectFit

      How an image fills its box.

    • PaintOrder: typeof PaintOrder

      Whether a glyph's stroke is painted over its fill.

    • TextAlign: typeof TextAlign

      Where a line of text sits across its width.

    • TextDecoration: typeof TextDecoration

      A line drawn through, over or under text.

    • VerticalAlign: typeof VerticalAlign

      Where a line of text sits within its line box.