Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
ace
Ace
VirtualRenderer
Interface VirtualRenderer
interface
VirtualRenderer
{
$padding
:
number
;
characterWidth
:
number
;
container
:
HTMLElement
;
content
:
HTMLElement
;
lineHeight
:
number
;
scrollLeft
:
number
;
scrollTop
:
number
;
scroller
:
HTMLElement
;
addEventListener
(
name
,
callback
,
capturing
?
)
:
void
;
adjustWrapLimit
(
)
:
boolean
;
alignCursor
(
cursor
,
alignment
)
:
number
;
animateScrolling
(
fromValue
,
callback
)
:
void
;
attachToShadowRoot
(
)
:
void
;
destroy
(
)
:
void
;
freeze
(
)
:
void
;
getAnimatedScroll
(
)
:
boolean
;
getContainerElement
(
)
:
HTMLElement
;
getDisplayIndentGuides
(
)
:
boolean
;
getFadeFoldWidgets
(
)
:
boolean
;
getFirstFullyVisibleRow
(
)
:
number
;
getFirstVisibleRow
(
)
:
number
;
getHScrollBarAlwaysVisible
(
)
:
boolean
;
getHighlightGutterLine
(
)
:
boolean
;
getLastFullyVisibleRow
(
)
:
number
;
getLastVisibleRow
(
)
:
number
;
getMouseEventTarget
(
)
:
HTMLElement
;
getOption
<
T
>
(
name
)
:
VirtualRendererOptions
[
T
]
;
getOptions
(
optionNames
?
)
:
{
[
key
:
string
]
:
any
;
}
;
getPrintMarginColumn
(
)
:
boolean
;
getScrollBottomRow
(
)
:
number
;
getScrollLeft
(
)
:
number
;
getScrollTop
(
)
:
number
;
getScrollTopRow
(
)
:
number
;
getShowGutter
(
)
:
boolean
;
getShowInvisibles
(
)
:
boolean
;
getShowPrintMargin
(
)
:
boolean
;
getTextAreaContainer
(
)
:
HTMLElement
;
getTheme
(
)
:
string
;
getVScrollBarAlwaysVisible
(
)
:
boolean
;
hideComposition
(
)
:
void
;
hideCursor
(
)
:
void
;
isScrollableBy
(
deltaX
,
deltaY
)
:
boolean
;
off
(
name
,
callback
)
:
void
;
on
(
name
,
callback
,
capturing
?
)
:
void
;
once
(
name
,
callback
)
:
void
;
pixelToScreenCoordinates
(
x
,
y
)
:
{
column
:
number
;
offsetX
:
number
;
row
:
number
;
side
:
1
|
-1
;
}
;
removeAllListeners
(
name
?
)
:
void
;
removeDefaultHandler
(
name
,
callback
)
:
void
;
removeEventListener
(
name
,
callback
)
:
void
;
removeGhostText
(
)
:
void
;
removeListener
(
name
,
callback
)
:
void
;
scrollBy
(
deltaX
,
deltaY
)
:
void
;
scrollCursorIntoView
(
cursor
,
offset
?
)
:
void
;
scrollSelectionIntoView
(
anchor
,
lead
,
offset
?
)
:
void
;
scrollTo
(
x
,
y
)
:
void
;
scrollToLine
(
line
,
center
,
animate
,
callback
)
:
void
;
scrollToRow
(
row
)
:
void
;
scrollToX
(
scrollLeft
)
:
void
;
scrollToY
(
scrollTop
)
:
void
;
setAnimatedScroll
(
shouldAnimate
)
:
void
;
setAnnotations
(
annotations
)
:
void
;
setCompositionText
(
text
)
:
void
;
setCursorStyle
(
style
)
:
void
;
setDefaultHandler
(
name
,
callback
)
:
void
;
setDisplayIndentGuides
(
display
)
:
void
;
setFadeFoldWidgets
(
show
)
:
void
;
setGhostText
(
text
,
position
)
:
void
;
setHScrollBarAlwaysVisible
(
alwaysVisible
)
:
void
;
setHighlightGutterLine
(
shouldHighlight
)
:
void
;
setMouseCursor
(
cursorStyle
)
:
void
;
setOption
<
T
>
(
name
,
value
)
:
void
;
setOptions
(
optList
)
:
void
;
setPadding
(
padding
)
:
void
;
setPrintMarginColumn
(
showPrintMargin
)
:
void
;
setScrollMargin
(
top
,
bottom
,
left
,
right
)
:
void
;
setSession
(
session
)
:
void
;
setShowGutter
(
show
)
:
void
;
setShowInvisibles
(
showInvisibles
)
:
void
;
setShowPrintMargin
(
showPrintMargin
)
:
void
;
setStyle
(
style
,
include
?
)
:
void
;
setTheme
(
theme
,
callback
?
)
:
void
;
setVScrollBarAlwaysVisible
(
alwaysVisible
)
:
void
;
showComposition
(
position
)
:
void
;
showCursor
(
)
:
void
;
textToScreenCoordinates
(
row
,
column
)
:
{
pageX
:
number
;
pageY
:
number
;
}
;
unfreeze
(
)
:
void
;
unsetStyle
(
style
)
:
void
;
updateBackMarkers
(
)
:
void
;
updateBreakpoints
(
)
:
void
;
updateCursor
(
)
:
void
;
updateFontSize
(
)
:
void
;
updateFrontMarkers
(
)
:
void
;
updateFull
(
force
?
)
:
void
;
updateLines
(
firstRow
,
lastRow
,
force
?
)
:
void
;
updateText
(
)
:
void
;
visualizeBlur
(
)
:
void
;
visualizeFocus
(
)
:
void
;
}
Hierarchy (
view full
)
OptionsProvider
Ace
.
EventEmitter
VirtualRenderer
Index
Properties
$padding
character
Width
container
content
line
Height
scroll
Left
scroll
Top
scroller
Methods
add
Event
Listener
adjust
Wrap
Limit
align
Cursor
animate
Scrolling
attach
To
Shadow
Root
destroy
freeze
get
Animated
Scroll
get
Container
Element
get
Display
Indent
Guides
get
Fade
Fold
Widgets
get
First
Fully
Visible
Row
get
First
Visible
Row
getHScroll
Bar
Always
Visible
get
Highlight
Gutter
Line
get
Last
Fully
Visible
Row
get
Last
Visible
Row
get
Mouse
Event
Target
get
Option
get
Options
get
Print
Margin
Column
get
Scroll
Bottom
Row
get
Scroll
Left
get
Scroll
Top
get
Scroll
Top
Row
get
Show
Gutter
get
Show
Invisibles
get
Show
Print
Margin
get
Text
Area
Container
get
Theme
getVScroll
Bar
Always
Visible
hide
Composition
hide
Cursor
is
Scrollable
By
off
on
once
pixel
To
Screen
Coordinates
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Ghost
Text
remove
Listener
scroll
By
scroll
Cursor
Into
View
scroll
Selection
Into
View
scroll
To
scroll
To
Line
scroll
To
Row
scroll
ToX
scroll
ToY
set
Animated
Scroll
set
Annotations
set
Composition
Text
set
Cursor
Style
set
Default
Handler
set
Display
Indent
Guides
set
Fade
Fold
Widgets
set
Ghost
Text
setHScroll
Bar
Always
Visible
set
Highlight
Gutter
Line
set
Mouse
Cursor
set
Option
set
Options
set
Padding
set
Print
Margin
Column
set
Scroll
Margin
set
Session
set
Show
Gutter
set
Show
Invisibles
set
Show
Print
Margin
set
Style
set
Theme
setVScroll
Bar
Always
Visible
show
Composition
show
Cursor
text
To
Screen
Coordinates
unfreeze
unset
Style
update
Back
Markers
update
Breakpoints
update
Cursor
update
Font
Size
update
Front
Markers
update
Full
update
Lines
update
Text
visualize
Blur
visualize
Focus
Properties
Readonly
$padding
$padding
:
number
Readonly
character
Width
character
Width
:
number
Readonly
container
container
:
HTMLElement
Readonly
content
content
:
HTMLElement
Readonly
line
Height
line
Height
:
number
Readonly
scroll
Left
scroll
Left
:
number
Readonly
scroll
Top
scroll
Top
:
number
Readonly
scroller
scroller
:
HTMLElement
Methods
add
Event
Listener
add
Event
Listener
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
adjust
Wrap
Limit
adjust
Wrap
Limit
(
)
:
boolean
Returns
boolean
align
Cursor
align
Cursor
(
cursor
,
alignment
)
:
number
Parameters
cursor
:
number
|
Ace
.
Position
alignment
:
number
Returns
number
animate
Scrolling
animate
Scrolling
(
fromValue
,
callback
)
:
void
Parameters
fromValue
:
number
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
attach
To
Shadow
Root
attach
To
Shadow
Root
(
)
:
void
Returns
void
destroy
destroy
(
)
:
void
Returns
void
freeze
freeze
(
)
:
void
Returns
void
get
Animated
Scroll
get
Animated
Scroll
(
)
:
boolean
Returns
boolean
get
Container
Element
get
Container
Element
(
)
:
HTMLElement
Returns
HTMLElement
get
Display
Indent
Guides
get
Display
Indent
Guides
(
)
:
boolean
Returns
boolean
get
Fade
Fold
Widgets
get
Fade
Fold
Widgets
(
)
:
boolean
Returns
boolean
get
First
Fully
Visible
Row
get
First
Fully
Visible
Row
(
)
:
number
Returns
number
get
First
Visible
Row
get
First
Visible
Row
(
)
:
number
Returns
number
getHScroll
Bar
Always
Visible
getHScroll
Bar
Always
Visible
(
)
:
boolean
Returns
boolean
get
Highlight
Gutter
Line
get
Highlight
Gutter
Line
(
)
:
boolean
Returns
boolean
get
Last
Fully
Visible
Row
get
Last
Fully
Visible
Row
(
)
:
number
Returns
number
get
Last
Visible
Row
get
Last
Visible
Row
(
)
:
number
Returns
number
get
Mouse
Event
Target
get
Mouse
Event
Target
(
)
:
HTMLElement
Returns
HTMLElement
get
Option
get
Option
<
T
>
(
name
)
:
VirtualRendererOptions
[
T
]
Type Parameters
T
extends
keyof
VirtualRendererOptions
Parameters
name
:
T
Returns
VirtualRendererOptions
[
T
]
get
Options
get
Options
(
optionNames
?
)
:
{
[
key
:
string
]
:
any
;
}
Parameters
Optional
optionNames
:
string
[]
|
{
[
key
:
string
]
:
any
;
}
Returns
{
[
key
:
string
]
:
any
;
}
[
key
:
string
]:
any
get
Print
Margin
Column
get
Print
Margin
Column
(
)
:
boolean
Returns
boolean
get
Scroll
Bottom
Row
get
Scroll
Bottom
Row
(
)
:
number
Returns
number
get
Scroll
Left
get
Scroll
Left
(
)
:
number
Returns
number
get
Scroll
Top
get
Scroll
Top
(
)
:
number
Returns
number
get
Scroll
Top
Row
get
Scroll
Top
Row
(
)
:
number
Returns
number
get
Show
Gutter
get
Show
Gutter
(
)
:
boolean
Returns
boolean
get
Show
Invisibles
get
Show
Invisibles
(
)
:
boolean
Returns
boolean
get
Show
Print
Margin
get
Show
Print
Margin
(
)
:
boolean
Returns
boolean
get
Text
Area
Container
get
Text
Area
Container
(
)
:
HTMLElement
Returns
HTMLElement
get
Theme
get
Theme
(
)
:
string
Returns
string
getVScroll
Bar
Always
Visible
getVScroll
Bar
Always
Visible
(
)
:
boolean
Returns
boolean
hide
Composition
hide
Composition
(
)
:
void
Returns
void
hide
Cursor
hide
Cursor
(
)
:
void
Returns
void
is
Scrollable
By
is
Scrollable
By
(
deltaX
,
deltaY
)
:
boolean
Parameters
deltaX
:
number
deltaY
:
number
Returns
boolean
off
off
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
on
on
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
once
once
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
pixel
To
Screen
Coordinates
pixel
To
Screen
Coordinates
(
x
,
y
)
:
{
column
:
number
;
offsetX
:
number
;
row
:
number
;
side
:
1
|
-1
;
}
Parameters
x
:
number
y
:
number
Returns
{
column
:
number
;
offsetX
:
number
;
row
:
number
;
side
:
1
|
-1
;
}
column
:
number
offsetX
:
number
row
:
number
side
:
1
|
-1
remove
All
Listeners
remove
All
Listeners
(
name
?
)
:
void
Parameters
Optional
name
:
string
Returns
void
remove
Default
Handler
remove
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Event
Listener
remove
Event
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Ghost
Text
remove
Ghost
Text
(
)
:
void
Returns
void
remove
Listener
remove
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
scroll
By
scroll
By
(
deltaX
,
deltaY
)
:
void
Parameters
deltaX
:
number
deltaY
:
number
Returns
void
scroll
Cursor
Into
View
scroll
Cursor
Into
View
(
cursor
,
offset
?
)
:
void
Parameters
cursor
:
Ace
.
Position
Optional
offset
:
number
Returns
void
scroll
Selection
Into
View
scroll
Selection
Into
View
(
anchor
,
lead
,
offset
?
)
:
void
Parameters
anchor
:
Ace
.
Position
lead
:
Ace
.
Position
Optional
offset
:
number
Returns
void
scroll
To
scroll
To
(
x
,
y
)
:
void
Parameters
x
:
number
y
:
number
Returns
void
scroll
To
Line
scroll
To
Line
(
line
,
center
,
animate
,
callback
)
:
void
Parameters
line
:
number
center
:
boolean
animate
:
boolean
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
scroll
To
Row
scroll
To
Row
(
row
)
:
void
Parameters
row
:
number
Returns
void
scroll
ToX
scroll
ToX
(
scrollLeft
)
:
void
Parameters
scrollLeft
:
number
Returns
void
scroll
ToY
scroll
ToY
(
scrollTop
)
:
void
Parameters
scrollTop
:
number
Returns
void
set
Animated
Scroll
set
Animated
Scroll
(
shouldAnimate
)
:
void
Parameters
shouldAnimate
:
boolean
Returns
void
set
Annotations
set
Annotations
(
annotations
)
:
void
Parameters
annotations
:
Annotation
[]
Returns
void
set
Composition
Text
set
Composition
Text
(
text
)
:
void
Parameters
text
:
string
Returns
void
set
Cursor
Style
set
Cursor
Style
(
style
)
:
void
Parameters
style
:
string
Returns
void
set
Default
Handler
set
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
set
Display
Indent
Guides
set
Display
Indent
Guides
(
display
)
:
void
Parameters
display
:
boolean
Returns
void
set
Fade
Fold
Widgets
set
Fade
Fold
Widgets
(
show
)
:
void
Parameters
show
:
boolean
Returns
void
set
Ghost
Text
set
Ghost
Text
(
text
,
position
)
:
void
Parameters
text
:
string
position
:
Ace
.
Point
Returns
void
setHScroll
Bar
Always
Visible
setHScroll
Bar
Always
Visible
(
alwaysVisible
)
:
void
Parameters
alwaysVisible
:
boolean
Returns
void
set
Highlight
Gutter
Line
set
Highlight
Gutter
Line
(
shouldHighlight
)
:
void
Parameters
shouldHighlight
:
boolean
Returns
void
set
Mouse
Cursor
set
Mouse
Cursor
(
cursorStyle
)
:
void
Parameters
cursorStyle
:
string
Returns
void
set
Option
set
Option
<
T
>
(
name
,
value
)
:
void
Type Parameters
T
extends
keyof
VirtualRendererOptions
Parameters
name
:
T
value
:
VirtualRendererOptions
[
T
]
Returns
void
set
Options
set
Options
(
optList
)
:
void
Parameters
optList
:
{
[
key
:
string
]
:
any
;
}
[
key
:
string
]:
any
Returns
void
set
Padding
set
Padding
(
padding
)
:
void
Parameters
padding
:
number
Returns
void
set
Print
Margin
Column
set
Print
Margin
Column
(
showPrintMargin
)
:
void
Parameters
showPrintMargin
:
boolean
Returns
void
set
Scroll
Margin
set
Scroll
Margin
(
top
,
bottom
,
left
,
right
)
:
void
Parameters
top
:
number
bottom
:
number
left
:
number
right
:
number
Returns
void
set
Session
set
Session
(
session
)
:
void
Parameters
session
:
Ace
.
EditSession
Returns
void
set
Show
Gutter
set
Show
Gutter
(
show
)
:
void
Parameters
show
:
boolean
Returns
void
set
Show
Invisibles
set
Show
Invisibles
(
showInvisibles
)
:
void
Parameters
showInvisibles
:
boolean
Returns
void
set
Show
Print
Margin
set
Show
Print
Margin
(
showPrintMargin
)
:
void
Parameters
showPrintMargin
:
boolean
Returns
void
set
Style
set
Style
(
style
,
include
?
)
:
void
Parameters
style
:
string
Optional
include
:
boolean
Returns
void
set
Theme
set
Theme
(
theme
,
callback
?
)
:
void
Parameters
theme
:
string
Optional
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
setVScroll
Bar
Always
Visible
setVScroll
Bar
Always
Visible
(
alwaysVisible
)
:
void
Parameters
alwaysVisible
:
boolean
Returns
void
show
Composition
show
Composition
(
position
)
:
void
Parameters
position
:
number
Returns
void
show
Cursor
show
Cursor
(
)
:
void
Returns
void
text
To
Screen
Coordinates
text
To
Screen
Coordinates
(
row
,
column
)
:
{
pageX
:
number
;
pageY
:
number
;
}
Parameters
row
:
number
column
:
number
Returns
{
pageX
:
number
;
pageY
:
number
;
}
pageX
:
number
pageY
:
number
unfreeze
unfreeze
(
)
:
void
Returns
void
unset
Style
unset
Style
(
style
)
:
void
Parameters
style
:
string
Returns
void
update
Back
Markers
update
Back
Markers
(
)
:
void
Returns
void
update
Breakpoints
update
Breakpoints
(
)
:
void
Returns
void
update
Cursor
update
Cursor
(
)
:
void
Returns
void
update
Font
Size
update
Font
Size
(
)
:
void
Returns
void
update
Front
Markers
update
Front
Markers
(
)
:
void
Returns
void
update
Full
update
Full
(
force
?
)
:
void
Parameters
Optional
force
:
boolean
Returns
void
update
Lines
update
Lines
(
firstRow
,
lastRow
,
force
?
)
:
void
Parameters
firstRow
:
number
lastRow
:
number
Optional
force
:
boolean
Returns
void
update
Text
update
Text
(
)
:
void
Returns
void
visualize
Blur
visualize
Blur
(
)
:
void
Returns
void
visualize
Focus
visualize
Focus
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
$padding
character
Width
container
content
line
Height
scroll
Left
scroll
Top
scroller
add
Event
Listener
adjust
Wrap
Limit
align
Cursor
animate
Scrolling
attach
To
Shadow
Root
destroy
freeze
get
Animated
Scroll
get
Container
Element
get
Display
Indent
Guides
get
Fade
Fold
Widgets
get
First
Fully
Visible
Row
get
First
Visible
Row
getHScroll
Bar
Always
Visible
get
Highlight
Gutter
Line
get
Last
Fully
Visible
Row
get
Last
Visible
Row
get
Mouse
Event
Target
get
Option
get
Options
get
Print
Margin
Column
get
Scroll
Bottom
Row
get
Scroll
Left
get
Scroll
Top
get
Scroll
Top
Row
get
Show
Gutter
get
Show
Invisibles
get
Show
Print
Margin
get
Text
Area
Container
get
Theme
getVScroll
Bar
Always
Visible
hide
Composition
hide
Cursor
is
Scrollable
By
off
on
once
pixel
To
Screen
Coordinates
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Ghost
Text
remove
Listener
scroll
By
scroll
Cursor
Into
View
scroll
Selection
Into
View
scroll
To
scroll
To
Line
scroll
To
Row
scroll
ToX
scroll
ToY
set
Animated
Scroll
set
Annotations
set
Composition
Text
set
Cursor
Style
set
Default
Handler
set
Display
Indent
Guides
set
Fade
Fold
Widgets
set
Ghost
Text
setHScroll
Bar
Always
Visible
set
Highlight
Gutter
Line
set
Mouse
Cursor
set
Option
set
Options
set
Padding
set
Print
Margin
Column
set
Scroll
Margin
set
Session
set
Show
Gutter
set
Show
Invisibles
set
Show
Print
Margin
set
Style
set
Theme
setVScroll
Bar
Always
Visible
show
Composition
show
Cursor
text
To
Screen
Coordinates
unfreeze
unset
Style
update
Back
Markers
update
Breakpoints
update
Cursor
update
Font
Size
update
Front
Markers
update
Full
update
Lines
update
Text
visualize
Blur
visualize
Focus
Ace API Reference
ace
src
ace
anchor
apply_delta
autocomplete
background_tokenizer
bidihandler
clipboard
commands
command_manager
default_commands
incremental_search_commands
multi_select_commands
occur_commands
config
css/editor-css
document
edit_session
editor
ext
Loading...
Generated using
TypeDoc