This object is used to ensure Bi-Directional support (for languages with text flowing from right to left, like Arabic or Hebrew) including correct caret positioning, text selection mouse and keyboard arrows functioning

Constructors

Properties

$isRtl: boolean
EOF: string
EOL: string
RLE: string
bidiMap: {}

Type declaration

    charWidths: any[]
    characterWidth: any
    contentWidth: number
    currentRow: any
    fontMetrics: any
    isMoveLeftOperation: boolean
    isRtlDir: boolean
    line: string
    rtlLineOffset: number
    seenBidi: boolean
    session: EditSession
    showInvisibles: boolean
    wrapIndent: number
    wrapOffset: number

    Methods

    • Returns offset of character at position defined by column.

      Parameters

      • col: number

        the screen column position

      Returns number

      horizontal pixel offset of given screen column

    • Returns 'selections' - array of objects defining set of selection rectangles

      Parameters

      • startCol: number

        the start column position

      • endCol: number

        the end column position

      Returns any[]

      Each object contains 'left' and 'width' values defining selection rectangle.

    • Returns 'true' if row contains Bidi characters, in such case creates Bidi map to be used in operations related to selection (keyboard arrays, mouse click, select)

      Parameters

      • screenRow: number

        the screen row to be checked

      • Optional docRow: number

        the document row to be checked [optional]

      • Optional splitIndex: number

        the wrapped screen line index [ optional]

      Returns any

    • Resets stored info related to current screen row

      Returns void

    • Converts character coordinates on the screen to respective document column number

      Parameters

      • posX: number

        character horizontal offset

      Returns number

      screen column number corresponding to given pixel offset

    • Parameters

      • editor: any
      • isRtlDir: any

      Returns void

    • Parameters

      • showInvisibles: any

      Returns void

    • Updates array of character widths

      Parameters

      • fontMetrics: any

        metrics

      Returns void

    • Parameters

      • docRow: any
      • splitIndex: any

      Returns void

    Generated using TypeDoc