mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
added the documented lineAtHeight function (#13287)
This commit is contained in:
committed by
Masahiro Wakame
parent
7aa967b4ae
commit
30528a61d9
Vendored
+7
@@ -178,6 +178,13 @@ declare namespace CodeMirror {
|
||||
class can be left off to remove all classes for the specified node, or be a string to remove only a specific class. */
|
||||
removeLineClass(line: any, where: string, class_: string): CodeMirror.LineHandle;
|
||||
|
||||
/**
|
||||
* Compute the line at the given pixel height.
|
||||
*
|
||||
* `mode` is the relative element to use to compute this line - defaults to 'page' if not specified
|
||||
*/
|
||||
lineAtHeight(height: number, mode?: 'window' | 'page' | 'local'): number
|
||||
|
||||
/** Returns the line number, text content, and marker status of the given line, which can be either a number or a line handle. */
|
||||
lineInfo(line: any): {
|
||||
line: any;
|
||||
|
||||
Reference in New Issue
Block a user