Constructs a new VirtualRenderer
within the container
specified, applying the given theme
.
The root element of the editor
The starting theme
Deprecated; (moved to EditSession)
Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.
Destroys the text and cursor layers for this renderer.
Returns whether an animated scroll happens or not.
Returns the root element containing this renderer.
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 the index of the first visible row.]{: #VirtualRenderer.getFirstVisibleRow}
Returns whether the horizontal scrollbar is set to be always visible.
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 the index of the last visible row.]{: #VirtualRenderer.getLastVisibleRow}
Returns the element that the mouse events are attached to
Returns whether the print margin column is being shown or not.
Returns the last visible row, regardless of whether it's fully visible or not.
{:EditSession.getScrollLeft}
{:EditSession.getScrollTop}
Returns the first visible row, regardless of whether it's fully visible or not.
Returns true
if the gutter is being shown.
Returns whether invisible characters are being shown or not.
Returns whether the print margin is being shown or not.
Returns the element to which the hidden text area is added.
[Returns the path of the current theme.]{: #VirtualRenderer.getTheme}
Returns whether the horizontal scrollbar is set to be always visible.
Hides the current composition.
Hides the cursor icon.
Returns true
if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.
The x value to scroll by
The y value to scroll by
[Triggers a resize of the editor.]{: #VirtualRenderer.onResize}
If true
, recomputes the size, even if the height and width haven't changed
The width of the gutter in pixels
The width of the editor in pixels
The hiehgt of the editor, in pixels
Deprecated; (moved to EditSession)
Scrolls the editor across both x- and y-axes.
The x value to scroll by
The y value to scroll by
Scrolls the cursor into the first visibile area of the editor
Scrolls the editor across both x- and y-axes.
The x value to scroll to
The y value to scroll to
Gracefully scrolls the editor to the row indicated.
A line number
If true
, centers the editor the to indicated line
If true
animates scrolling
Function to be called after the animation has finished
Gracefully scrolls from the top of the editor to the row indicated.
A row id
Scrolls the editor across the x-axis to the pixel indicated.
The position to scroll to
Scrolls the editor to the y pixel indicated.
The position to scroll to
Identifies whether you want to have an animated scroll or not.
Set to true
to show animated scrolls
Sets annotations for the gutter.
An array containing annotations
A string of text to use
Sets the inner text of the current composition to text
.
Identifies whether you want to show the horizontal scrollbar or not.
Set to true
to make the horizontal scroll bar visible
A css cursor style
Sets the padding for all the layers.
A new padding value (in pixels)
Identifies whether you want to show the print margin column or not.
Set to true
to show the print margin column
Associates the renderer with an EditSession
.
Identifies whether you want to show the gutter or not.
Set to true
to show the gutter
Identifies whether you want to show invisible characters or not.
Set to true
to show invisibles
Identifies whether you want to show the print margin or not.
Set to true
to show the print margin
Methods allows to add / remove CSS classnames to the editor element.
[Sets a new theme for the editor. theme
should exist, and be a directory path, like ace/theme/textmate
.]{: #VirtualRenderer.setTheme}
The path to a theme
Identifies whether you want to show the horizontal scrollbar or not.
Set to true
to make the horizontal scroll bar visible
Shows the cursor icon.
Returns an object containing the pageX
and pageY
coordinates of the document position.
The document row position
The document column position
[Removes the class style
from the editor.]{: #VirtualRenderer.unsetStyle}
A class name
Schedules an update to all the back markers in the document.
Redraw breakpoints.
Updates the cursor icon.
Updates the font size.
Schedules an update to all the front markers in the document.
Triggers a full update of all the layers, for all the rows.
If true
, forces the changes through
Triggers a partial update of the text, from the range given by the two parameters.
The first row to update
The last row to update
Triggers a full update of the text, for all the rows.
Blurs the current container.
Focuses the current container.
Generated using TypeDoc
The class that is responsible for drawing everything you see on the screen!
editor.renderer