The class that is responsible for drawing everything you see on the screen!
The class that is responsible for drawing everything you see on the screen!
Constructs a new VirtualRenderer
within the container
specified, applying the given theme
.
Constructs a new VirtualRenderer
within the container
specified, applying the given theme
.
container | DOMElement | Required. The root element of the editor |
theme | String | Required. The starting theme |
Deprecated; (moved to EditSession
)
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.
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.
Destroys the text and cursor layers for this renderer.
Returns whether an animated scroll happens or not.
Returns whether an animated scroll happens or not.
Returns the root element containing this renderer.
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 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.
Returns the index of the first visible row.
Returns whether the horizontal scrollbar is set to be always visible.
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 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.
Returns the index of the last visible row.
Returns the element that the mouse events are attached to
Returns the element that the mouse events are attached to
Returns whether the print margin column is being shown or not.
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.
Returns the last visible row, regardless of whether it's fully visible or not.
Returns the value of the distance between the left of the editor and the leftmost part of the visible content.
Returns the value of the distance between the left of the editor and the leftmost part of the visible content.
Returns the value of the distance between the top of the editor and the topmost part of the visible content.
Returns the value of the distance between the top of the editor and the topmost part of the visible content.
Returns the first visible row, regardless of whether it's fully visible or not.
Returns the first visible row, regardless of whether it's fully visible or not.
Returns true
if the gutter is being shown.
Returns true
if the gutter is being shown.
Returns whether invisible characters are being shown or not.
Returns whether invisible characters are being shown or not.
Returns whetherthe print margin is being shown or not.
Returns whetherthe print margin is being shown or not.
Returns the element to which the hidden text area is added.
Returns the element to which the hidden text area is added.
Returns the path of the current theme.
Returns the path of the current theme.
Hides the current composition.
Hides the current composition.
Hides the cursor icon.
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.
Triggers a resize of the editor.
Triggers a resize of the editor.
force | Boolean | Required. If |
gutterWidth | Number | Required. The width of the gutter in pixels |
width | Number | Required. The width of the editor in pixels |
height | Number | Required. The hiehgt of the editor, in pixels |
Deprecated; (moved to EditSession
)
Deprecated; (moved to EditSession
)
Scrolls the cursor into the first visibile area of the editor
Scrolls the cursor into the first visibile area of the editor
Gracefully scrolls the editor to the row indicated.
Associates an EditSession
.
Associates an EditSession
.
Shows the cursor icon.
Shows the cursor icon.
Schedules an update to all the back markers in the document.
Schedules an update to all the back markers in the document.
Redraw breakpoints.
Redraw breakpoints.
Updates the cursor icon.
Updates the cursor icon.
Updates the font size.
Updates the font size.
Schedules an update to all the front markers in the document.
Schedules an update to all the front markers in the document.
Triggers a full update of the text, for all the rows.
Triggers a full update of the text, for all the rows.
Blurs the current container.
Blurs the current container.
Focuses the current container.
Focuses the current container.