Editor.Alignment.Horizontal
EnumThe options for horizontal alignment, for example when using Editor.Components.BaseMeshVisual
Index
Example
const alignments = [
Editor.Alignment.Horizontal.Left,
Editor.Alignment.Horizontal.Center,
Editor.Alignment.Horizontal.Right,
];
for (const alignment of alignments) {
let label: string;
switch (alignment) {
case Editor.Alignment.Horizontal.Left: label = 'Left'; break;
case Editor.Alignment.Horizontal.Center: label = 'Center'; break;
case Editor.Alignment.Horizontal.Right: label = 'Right'; break;
default: label = 'Unknown';
}
console.log(`Alignment value ${alignment} => ${label}`);
}
Enumeration Members
Center
Center:
number
Center horizontal alignment.
Left
Left:
number
Left horizontal alignment.
Right
Right:
number
Right horizontal alignment.