@codemirror/view 0.19.18 → 0.19.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/index.cjs +289 -163
- package/dist/index.d.ts +44 -2
- package/dist/index.js +289 -163
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## 0.19.22 (2021-11-30)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Fix an issue where editors with large vertical padding (for example via `scrollPastEnd`) could sometimes lose their scroll position on Chrome.
|
|
6
|
+
|
|
7
|
+
Avoid some unnecessary DOM measuring work by more carefully checking whether it is needed.
|
|
8
|
+
|
|
9
|
+
### New features
|
|
10
|
+
|
|
11
|
+
The new `elementAtHeight`, `lineBlockAtHeight`, and `lineBlockAt` methods provide a simpler and more efficient replacement for the (now deprecated) `blockAtHeight`, `visualLineAtHeight`, and `visualLineAt` methods.
|
|
12
|
+
|
|
13
|
+
The editor view now exports a `documentTop` getter that gives you the vertical position of the top of the document. All height info is queried and reported relative to this top.
|
|
14
|
+
|
|
15
|
+
The editor view's new `viewportLineBlocks` property provides an array of in-viewport line blocks, and replaces the (now deprecated) `viewportLines` method.
|
|
16
|
+
|
|
17
|
+
## 0.19.21 (2021-11-26)
|
|
18
|
+
|
|
19
|
+
### Bug fixes
|
|
20
|
+
|
|
21
|
+
Fix a problem where the DOM update would unnecessarily trigger browser relayouts.
|
|
22
|
+
|
|
23
|
+
## 0.19.20 (2021-11-19)
|
|
24
|
+
|
|
25
|
+
### Bug fixes
|
|
26
|
+
|
|
27
|
+
Run a measure cycle when the editor's size spontaneously changes.
|
|
28
|
+
|
|
29
|
+
## 0.19.19 (2021-11-17)
|
|
30
|
+
|
|
31
|
+
### Bug fixes
|
|
32
|
+
|
|
33
|
+
Fix a bug that caused the precedence of `editorAttributes` and `contentAttributes` to be inverted, making lower-precedence extensions override higher-precedence ones.
|
|
34
|
+
|
|
1
35
|
## 0.19.18 (2021-11-16)
|
|
2
36
|
|
|
3
37
|
### Bug fixes
|