Skip to main content

Editor.Alignment.Vertical

Enum

The options for vertical alignment, for example when using Editor.Components.BaseMeshVisual

Index

Enumeration Members

Example

const alignments = [
Editor.Alignment.Vertical.Top,
Editor.Alignment.Vertical.Center,
Editor.Alignment.Vertical.Bottom,
];

for (const alignment of alignments) {
let label: string;
switch (alignment) {
case Editor.Alignment.Vertical.Top: label = 'Top'; break;
case Editor.Alignment.Vertical.Center: label = 'Center'; break;
case Editor.Alignment.Vertical.Bottom: label = 'Bottom'; break;
default: label = 'Unknown';
}
console.log(`Vertical alignment value ${alignment} => ${label}`);
}

Enumeration Members

Bottom

Bottom: number

Aligns content to the bottom.


Center

Center: number

Aligns content to the center vertically.


Top

Top: number

Aligns content to the top.