Calculates and organizes text into wrapped chunks. Initially splits the text by newline characters,
then further processes each line based on display tokens and session settings for tab size and wrapping limits.
Parameters
text: string
position: Point
Returns { text: string; wrapped: boolean; }[]
$computeLayerConfig
$computeLayerConfig(): number
Returns number
$getLongestLine
$getLongestLine(): number
Returns number
$moveTextAreaToCursor
$moveTextAreaToCursor(): void
Returns void
$renderChanges
$renderChanges(changes, force?): number
Parameters
changes: number
Optionalforce: boolean
Returns number
$updateCachedSize
$updateCachedSize(force?, gutterWidth?, width?, height?): number
Parameters
Optionalforce: any
OptionalgutterWidth: any
Optionalwidth: any
Optionalheight: any
Returns number
$updateCustomScrollbar
$updateCustomScrollbar(val?): void
Parameters
Optionalval: boolean
Returns void
$updateLines
$updateLines(): boolean
Returns boolean
$updatePrintMargin
$updatePrintMargin(): void
Returns void
$updateScrollBarH
$updateScrollBarH(): void
Returns void
$updateScrollBarV
$updateScrollBarV(): void
Returns void
$updateSizeAsync
$updateSizeAsync(): void
Returns void
addGutterDecoration
addGutterDecoration(row, className): void
Deprecated; (moved to [[EditSession]])
Parameters
row: any
className: any
Returns void
Deprecated
addToken
addToken(text, type, row, column?): void
Parameters
text: string
type: string
row: number
Optionalcolumn: number
Returns void
adjustWrapLimit
adjustWrapLimit(): boolean
Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.
Returns boolean
alignCursor
alignCursor(cursor, alignment?): number
Parameters
cursor: Point
Optionalalignment: number
Returns number
animateScrolling
animateScrolling(fromValue, callback?): void
Parameters
fromValue: any
Optionalcallback: any
Returns void
attachToShadowRoot
attachToShadowRoot(): void
Returns void
destroy
destroy(): void
Destroys the text and cursor layers for this renderer.
Returns void
freeze
freeze(): void
Returns void
getAnimatedScroll
getAnimatedScroll(): boolean
Returns whether an animated scroll happens or not.
Returns boolean
getContainerElement
getContainerElement(): HTMLElement
Returns the root element containing this renderer.
Returns HTMLElement
getDisplayIndentGuides
getDisplayIndentGuides(): boolean
Returns boolean
getFadeFoldWidgets
getFadeFoldWidgets(): boolean
Returns boolean
getFirstFullyVisibleRow
getFirstFullyVisibleRow(): number
Returns the index of the first fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
Returns number
getFirstVisibleRow
getFirstVisibleRow(): number
[Returns the index of the first visible row.]{: #VirtualRenderer.getFirstVisibleRow}
Returns number
getHScrollBarAlwaysVisible
getHScrollBarAlwaysVisible(): boolean
Returns whether the horizontal scrollbar is set to be always visible.
Returns boolean
getHighlightGutterLine
getHighlightGutterLine(): boolean
Returns boolean
getHighlightIndentGuides
getHighlightIndentGuides(): boolean
Returns boolean
getLastFullyVisibleRow
getLastFullyVisibleRow(): number
Returns the index of the last fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
Returns number
getLastVisibleRow
getLastVisibleRow(): number
[Returns the index of the last visible row.]{: #VirtualRenderer.getLastVisibleRow}
Returns number
getMouseEventTarget
getMouseEventTarget(): HTMLElement
Returns the element that the mouse events are attached to
Returns HTMLElement
getPrintMarginColumn
getPrintMarginColumn(): number
Returns whether the print margin column is being shown or not.
Returns number
getScrollBottomRow
getScrollBottomRow(): number
Returns the last visible row, regardless of whether it's fully visible or not.
Returns number
getScrollLeft
getScrollLeft(): number
{:EditSession.getScrollLeft}
Returns number
Related
EditSession.getScrollLeft
getScrollTop
getScrollTop(): number
{:EditSession.getScrollTop}
Returns number
Related
EditSession.getScrollTop
getScrollTopRow
getScrollTopRow(): number
Returns the first visible row, regardless of whether it's fully visible or not.
Returns number
getShowGutter
getShowGutter(): boolean
Returns true if the gutter is being shown.
Returns boolean
getShowInvisibles
getShowInvisibles(): boolean
Returns whether invisible characters are being shown or not.
Returns boolean
getShowPrintMargin
getShowPrintMargin(): boolean
Returns whether the print margin is being shown or not.
Returns boolean
getTextAreaContainer
getTextAreaContainer(): HTMLElement
Returns the element to which the hidden text area is added.
Returns HTMLElement
getTheme
getTheme(): string
[Returns the path of the current theme.]{: #VirtualRenderer.getTheme}
Returns string
getVScrollBarAlwaysVisible
getVScrollBarAlwaysVisible(): boolean
Returns whether the horizontal scrollbar is set to be always visible.
The class that is responsible for drawing everything you see on the screen!
Related
editor.renderer