MLightCAD
    Preparing search index...

    Options used to open an interactive MTEXT editor.

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

    Properties

    initialAttachmentPoint?: AcGiMTextAttachmentPoint

    Initial MTEXT attachment (DXF 71). When omitted, the editor uses top-left until the user changes justify in the ribbon.

    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.

    toolbarEnabled?: boolean

    Controls the built-in MTEXT input box toolbar for this editor instance. Defaults to AcEdMTextEditor.defaultToolbarEnabled.

    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.