sidenotes
sidenotes copied to clipboard
[feature update]I want to upgrade a few features to make them more friendly
The features of the upgrade are as follows:
1. Support for cross anchor, sidenote of props of InlineAnchor supports for assignment array
click cross anchor can activate the included side notes in turn.
Usage
2. When the size of the side note changes, it will be positioned automatically.
before ↓
after ↓
3. Similar to the previous point,when the position of the anchor changes, the position of the side notes will also change.(This is very necessary in the editor.)
before ↓
after ↓
4. When all anchors are removed, the corresponding side notes are also hidden.
5. When initializing, sidenodes is positioned to the top anchor by default, not at the bottom.
before ↓
after ↓
TODO:
- [ ] listen the mousewheel Event to restore the side notes that deviate from the original position
- [ ] Optimize the search of
docId
; Or custom getdocId
Function