sesaparcours
    Preparing search index...
    • Adds a text display linked to a point a syntaxes addLinkedText(text, a) and addLinkedText(text, a, color) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            backgroundColor?: string;
            border?: string;
            color?: string;
            fontSize?: number;
            hAlign?: string;
            hidden?: boolean;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            opaque?: boolean;
            tag?: string;
            text: string;
            textAlign?: string;
            vAlign?: string;
        }
        • a: string | CPt

          Name (or tag if name is empty) of the point the text display must be linked to

        • OptionalbackgroundColor?: string

          Background color if opaque is true

        • Optionalborder?: string

          The border style (none|simple|3D)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the display (in pixels)

        • OptionalhAlign?: string

          Horizontal alignment left|center|right

        • Optionalhidden?: boolean

          true to get the created text display masked

        • OptionaloffsetX?: number

          x-shift of the text display

        • OptionaloffsetY?: number

          y-shift of the text display

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalopaque?: boolean

          true if the text or LaTeX displays erases its background. If true the color used to erase the background is the backgroundColor if present, else the background color of the figure

        • Optionaltag?: string

          Tag to be applied on the created text display (if present)

        • text: string

          The text to be displayed

        • OptionaltextAlign?: string

          Horizontal alignment of the text (if it contains several lines)

        • OptionalvAlign?: string

          Vertical alignment top|middle|bottom

      Returns Promise<undefined>

      Promise that will be resolved when the text is displayed