Represents different {@link TextEditor.revealRange reveal} strategies in a text editor.

Static variables

@:enumstaticread onlyAtTop:TextEditorRevealType

The range will always be revealed at the top of the viewport.

@:enumstaticread onlyDefault:TextEditorRevealType

The range will be revealed with as little scrolling as possible.

@:enumstaticread onlyInCenter:TextEditorRevealType

The range will always be revealed in the center of the viewport.

@:enumstaticread onlyInCenterIfOutsideViewport:TextEditorRevealType

If the range is outside the viewport, it will be revealed in the center of the viewport. Otherwise, it will be revealed with as little scrolling as possible.