export class VisualTextParams extends AbstractVisualElementParams { /** * TS type inference helper * * @param {any} engine */ constructor(engine?: any); myText: string; myAlignment: Alignment; myVerticalAlignment: VerticalAlignment; myTransform: import("../../type_definitions/array_type_definitions.js").Matrix4; myMaterial: any; myColor: any; myLocal: boolean; myLookAtObject: any; myType: VisualElementDefaultType; _copyHook(other: any, deepCopy: any): void; _new(): VisualTextParams; _equalsHook(other: any): any; } /** * Example: * * ```js * const visualParams = new VisualTextParams(); * visualParams.myText = text; * visualParams.myTransform.mat4_copy(transform); * visualParams.myMaterial = myDefaultResources.myMaterials.myText.clone(); * visualParams.myMaterial.color = vec4_create(1, 1, 1, 1); * const visualText = new VisualText(visualParams); * * // OR * * Globals.getVisualManager().draw(visualParams); * ``` */ export class VisualText extends AbstractVisualElement { constructor(params?: VisualTextParams); _myTextObject: import("@wonderlandengine/api").Object3D | null; _myTextComponent: TextComponent | null; _myTextMaterial: any; _new(params: any): VisualText; } import { AbstractVisualElementParams } from "./visual_element.js"; import { Alignment } from "@wonderlandengine/api"; import { VerticalAlignment } from "@wonderlandengine/api"; import { VisualElementDefaultType } from "./visual_element_types.js"; import { AbstractVisualElement } from "./visual_element.js"; import { TextComponent } from "@wonderlandengine/api";