import type { ValuesOf } from "./visual"; import { VisualProperties, VisualUniforms } from "./visual"; import type { uint32, Color } from "../types"; import type * as p from "../properties"; import * as mixins from "../property_mixins"; import { FontStyle, TextAlign, TextBaseline } from "../enums"; import type { Context2d } from "../util/canvas"; export interface Text extends Readonly { } export declare class Text extends VisualProperties { get doit(): boolean; update(): void; Values: ValuesOf; ComputedValues: { color: string; outline_color: string; outline_width: number; font: string; text_align: TextAlign; text_baseline: TextBaseline; line_height: number; }; values(): this["Values"]; computed_values(): this["ComputedValues"]; set_value(ctx: Context2d): void; font_value(): string; get_text_color(): Color | null; get_text_outline_color(): Color | null; get_text_outline_width(): number; get_text_alpha(): number; get_text_font(): string; get_text_font_size(): string; get_text_font_style(): FontStyle; get_text_align(): TextAlign; get_text_baseline(): TextBaseline; get_text_line_height(): number; } export declare class TextScalar extends VisualUniforms { readonly text_color: p.UniformScalar; readonly text_outline_color: p.UniformScalar; readonly text_outline_width: p.UniformScalar; readonly text_alpha: p.UniformScalar; readonly text_font: p.UniformScalar; readonly text_font_size: p.UniformScalar; readonly text_font_style: p.UniformScalar; readonly text_align: p.UniformScalar; readonly text_baseline: p.UniformScalar; readonly text_line_height: p.UniformScalar; get doit(): boolean; update(): void; Values: ValuesOf; values(): this["Values"]; set_value(ctx: Context2d): void; font_value(): string; } export declare class TextVector extends VisualUniforms { readonly text_color: p.Uniform; readonly text_outline_color: p.Uniform; readonly text_outline_width: p.Uniform; readonly text_alpha: p.Uniform; readonly text_font: p.Uniform; readonly text_font_size: p.Uniform; readonly text_font_style: p.Uniform; readonly text_align: p.Uniform; readonly text_baseline: p.Uniform; readonly text_line_height: p.Uniform; private _assert_font; Values: ValuesOf; values(i: number): this["Values"]; get doit(): boolean; v_doit(i: number): boolean; apply(ctx: Context2d, i: number): boolean; set_vectorize(ctx: Context2d, i: number): void; font_value(i: number): string; } //# sourceMappingURL=text.d.ts.map