Skip to main content

HorizontalOverflow

Enum

Options for wrapping text horizontally.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Options for wrapping text horizontally. Used by Text's component's horizontalOverflow property.

Index

Example

// @input Component.Text textComponent

script.textComponent.horizontalOverflow = HorizontalOverflow.Wrap;

Enumeration Members

Ellipsis

Ellipsis: number

When text exceeds the available space an ellipsis (...) will be added at the end.


EllipsisFront

EllipsisFront: number

When text exceeds the available space in the front, an ellipsis (...) will be added at the front.


Overflow

Overflow: number

Text will continue drawing past horizontal boundaries.


Shrink

Shrink: number

Text will shrink to fit within the horizontal boundaries.


Truncate

Truncate: number

Text is clipped to the width of horizontal boundaries.


TruncateFront

TruncateFront: number

Text is clipped in the front to the width of horizontal boundaries.


Wrap

Wrap: number

Text wraps when reaching horizontal boundaries and continues on the next line.