The class that is responsible for drawing everything you see on the screen!
VirtualRenderer[edit]
Constructors
-
- new VirtualRenderer(DOMElement container, String theme)
Constructs a new VirtualRenderer within the container specified, applying the given theme. ...
Arguments
| container | DOMElement | Required. The root element of the editor |
| theme | String | Required. The starting theme |
Methods
-
- VirtualRenderer.adjustWrapLimit()
-
- Void
Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen. ...
-
- VirtualRenderer.destroy()
Destroys the text and cursor layers for this renderer. ...
-
- VirtualRenderer.getAnimatedScroll()
Returns whether an animated scroll happens or not. ...
-
- VirtualRenderer.getContainerElement()
Returns the root element containing this renderer. ...
-
- VirtualRenderer.getFirstFullyVisibleRow()
Returns the index of the first fully visible row. "Fully" here means that the characters in the row are not truncate...
-
- VirtualRenderer.getFirstVisibleRow()
Returns the index of the first visible row.
-
- VirtualRenderer.getHScrollBarAlwaysVisible()
Returns whether the horizontal scrollbar is set to be always visible. ...
-
- VirtualRenderer.getLastFullyVisibleRow()
Returns the index of the last fully visible row. "Fully" here means that the characters in the row are not truncated...
-
- VirtualRenderer.getLastVisibleRow()
Returns the index of the last visible row.
-
- VirtualRenderer.getMouseEventTarget()
Returns the element that the mouse events are attached to ...
-
- VirtualRenderer.getPrintMarginColumn()
Returns whether the print margin column is being shown or not. ...
-
- VirtualRenderer.getScrollBottomRow()
Returns the last visible row, regardless of whether it's fully visible or not. ...
-
- VirtualRenderer.getScrollLeft()
Returns the value of the distance between the left of the editor and the leftmost part of the visible content. ...
-
- VirtualRenderer.getScrollTop()
Returns the value of the distance between the top of the editor and the topmost part of the visible content. ...
-
- VirtualRenderer.getScrollTopRow()
Returns the first visible row, regardless of whether it's fully visible or not. ...
-
- VirtualRenderer.getShowGutter()
Returns true if the gutter is being shown. ...
-
- VirtualRenderer.getShowInvisibles()
Returns whether invisible characters are being shown or not. ...
-
- VirtualRenderer.getShowPrintMargin()
Returns whetherthe print margin is being shown or not. ...
-
- VirtualRenderer.getTextAreaContainer()
Returns the element to which the hidden text area is added. ...
-
- VirtualRenderer.getTheme()
Returns the path of the current theme.
-
- VirtualRenderer.hideComposition()
-
- Void
Hides the current composition. ...
-
- VirtualRenderer.hideCursor()
-
- Void
Hides the cursor icon. ...
-
- VirtualRenderer.moveTextAreaToCursor(DOMElement textarea)
-
- Void
Changes the position of textarea to where the cursor is pointing. ...
Arguments
| textarea | DOMElement | Required. A text area to work with |
-
- VirtualRenderer.scrollCursorIntoView()
-
- Void
Scrolls the cursor into the first visibile area of the editor ...
-
- VirtualRenderer.setSession(session)
-
- Void
-
- VirtualRenderer.showCursor()
-
- Void
Shows the cursor icon. ...
-
- VirtualRenderer.updateBackMarkers()
-
- Void
Schedules an update to all the back markers in the document. ...
-
- VirtualRenderer.updateCursor()
-
- Void
Updates the cursor icon. ...
-
- VirtualRenderer.updateFontSize()
-
- Void
Updates the font size. ...
-
- VirtualRenderer.updateFrontMarkers()
-
- Void
Schedules an update to all the front markers in the document. ...
-
- VirtualRenderer.updateFull()
-
- Void
Triggers a full update of all the layers, for all the rows. ...
-
- VirtualRenderer.updateText()
-
- Void
Triggers a full update of the text, for all the rows. ...
-
- VirtualRenderer.visualizeBlur()
-
- Void
Blurs the current container. ...
-
- VirtualRenderer.visualizeFocus()
-
- Void
Focuses the current container. ...