MLightCAD
    Preparing search index...

    Options used to open an interactive MTEXT editor.

    interface AcEdMTextEditorOptions {
        initialText?: string;
        location: AcGeVector3dLike;
        textHeight: number;
        toolbarColorPicker?: MTextToolbarColorPickerFactory;
        toolbarFontFamilies?: string[];
        view: AcTrView2d;
        width: number;
    }
    Index

    Properties

    initialText?: string

    Optional initial MTEXT source string. Defaults to empty string.

    location: AcGeVector3dLike

    Insertion location (top-left anchor) in world coordinates.

    textHeight: number

    Default text height in world units.

    toolbarColorPicker?: MTextToolbarColorPickerFactory

    Optional custom toolbar color picker factory. When provided (or when set via AcEdMTextEditor.setDefaultColorPicker), replaces the default native color input in the MTEXT toolbar.

    toolbarFontFamilies?: string[]

    Optional font family list displayed in toolbar font dropdown.

    Empty values are ignored and duplicates are removed before being passed to MTextInputBox.

    Active 2D view where the editor overlay and text box are rendered.

    width: number

    Initial MTEXT box width in world units.