@codemirror/view
Advanced tools
Comparing version 0.19.10 to 0.19.11
@@ -0,1 +1,11 @@ | ||
## 0.19.11 (2021-11-03) | ||
### Breaking changes | ||
`EditorView.scrollPosIntoView` has been deprecated. Use the `EditorView.scrollTo` effect instead. | ||
### New features | ||
The new `EditorView.centerOn` effect can be used to scroll a given range to the center of the view. | ||
## 0.19.10 (2021-11-02) | ||
@@ -2,0 +12,0 @@ |
@@ -859,5 +859,2 @@ import * as _codemirror_rangeset from '@codemirror/rangeset'; | ||
moveVertically(start: SelectionRange, forward: boolean, distance?: number): SelectionRange; | ||
/** | ||
Scroll the given document position into view. | ||
*/ | ||
scrollPosIntoView(pos: number): void; | ||
@@ -953,2 +950,7 @@ /** | ||
/** | ||
Effect that makes the editor scroll the given range to the | ||
center of the visible view. | ||
*/ | ||
static centerOn: _codemirror_state.StateEffectType<SelectionRange>; | ||
/** | ||
Facet to add a [style | ||
@@ -955,0 +957,0 @@ module](https://github.com/marijnh/style-mod#documentation) to |
{ | ||
"name": "@codemirror/view", | ||
"version": "0.19.10", | ||
"version": "0.19.11", | ||
"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
642123
15580