Skip to main content

Editor.Components.TextFillTileZone

Enum

Specifies the coordinate system for text fill tile positioning.

Index

Example

// addComponent('Text') already returns Editor.Components.Text via the
// ComponentNameMap typing — no cast needed. Use createSceneObject for
// a clean top-level object instead of addSceneObject + rename.
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;
const so = scene.createSceneObject('TextFillTileZoneDemo');
const text = so.addComponent('Text');

// TextFillTileZone controls how texture-fill tiling is bounded
// (Character: each glyph; Word: per word; Line: per line; Screen: full).
text.textFill.tileZone = Editor.Components.TextFillTileZone.Character;
console.log('tileZone:', text.textFill.tileZone);

Enumeration Members

Character

Character: number

Tile coordinates relative to individual characters.


Extents

Extents: number

Tile coordinates relative to the text extents.


Rect

Rect: number

Tile coordinates relative to the text bounding rectangle.


Screen

Screen: number

Tile coordinates in screen space.