@codemirror/view
Advanced tools
Comparing version 0.19.22 to 0.19.23
@@ -0,1 +1,11 @@ | ||
## 0.19.23 (2021-11-30) | ||
### Bug fixes | ||
Fix an issue where after some kinds of changes, `EditorView.viewportLineBlocks` held an out-of-date set of blocks. | ||
### New features | ||
Export `EditorView.documentPadding`, with information about the vertical padding of the document. | ||
## 0.19.22 (2021-11-30) | ||
@@ -2,0 +12,0 @@ |
@@ -772,6 +772,14 @@ import * as _codemirror_rangeset from '@codemirror/rangeset'; | ||
The top position of the document, in screen coordinates. This | ||
may be negative when the editor is scrolled down. | ||
may be negative when the editor is scrolled down. Points | ||
directly to the top of the first line, not above the padding. | ||
*/ | ||
get documentTop(): number; | ||
/** | ||
Reports the padding above and below the document. | ||
*/ | ||
get documentPadding(): { | ||
top: number; | ||
bottom: number; | ||
}; | ||
/** | ||
Find the line or block widget at the given vertical position. | ||
@@ -778,0 +786,0 @@ |
{ | ||
"name": "@codemirror/view", | ||
"version": "0.19.22", | ||
"version": "0.19.23", | ||
"description": "DOM view component for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
658454
15899