Editor.Components.HorizontalOverflow
EnumSettings used with Editor.Components.Text and Editor.Components.Text3D.
Index
Enumeration Members
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;
// Create a Text component and set horizontal overflow to wrap
const obj = scene.createSceneObject('WrappingText');
const text = obj.addComponent('Text');
text.text = 'This is a long text that should wrap to multiple lines';
text.horizontalOverflow = Editor.Components.HorizontalOverflow.Wrap;
console.log(`horizontalOverflow: ${text.horizontalOverflow}`);
Enumeration Members
Ellipsis
Ellipsis:
number
Content is truncated at the end with an ellipsis.
EllipsisFront
EllipsisFront:
number
Content is truncated at the beginning with an ellipsis.
Overflow
Overflow:
number
Content extends beyond container bounds.
Shrink
Shrink:
number
Content is scaled down to fit within the container.
Truncate
Truncate:
number
Content is cut off at the end.
TruncateFront
TruncateFront:
number
Content is cut off at the beginning.
Wrap
Wrap:
number
Content wraps to multiple lines.