@inweb/viewer-visualize
    Preparing search index...

    Interface IMarkupTextParams

    Defines the parameters for creating a markup text.

    interface IMarkupTextParams {
        color?: string;
        fontSize?: number;
        id?: string;
        position?: { x: number; y: number };
        rotation?: number;
        text?: string;
    }
    Index

    Properties

    color?: string

    Text color as a string in hexadecimal color syntax #RGB color using its primary color components (red, green, blue) written as hexadecimal numbers.

    "#ff0000"
    
    fontSize?: number

    Font size of the text.

    34
    
    id?: string

    Internal markup object identifier.

    position?: { x: number; y: number }

    Coordinates of the top-left point (position) of the text.

    rotation?: number

    Rotation angle of the text, in degress.

    0
    
    text?: string

    Text string.