sidenotes icon indicating copy to clipboard operation
sidenotes copied to clipboard

[feature update]I want to upgrade a few features to make them more friendly

Open yinran100 opened this issue 3 years ago • 1 comments

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.

2022-01-21 18 33 51

Usage image

2. When the size of the side note changes, it will be positioned automatically.

before ↓ 2022-01-21 18 43 05

after ↓ 2022-01-21 18 41 54

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 ↓ 2022-01-21 18 49 37

after ↓ 2022-01-21 18 48 24

4. When all anchors are removed, the corresponding side notes are also hidden.

2022-01-21 19 01 14

5. When initializing, sidenodes is positioned to the top anchor by default, not at the bottom.

before ↓ image

after ↓ image

yinran100 avatar Jan 21 '22 11:01 yinran100

TODO:

  • [ ] listen the mousewheel Event to restore the side notes that deviate from the original position
  • [ ] Optimize the search of docId; Or custom get docId Function

yinran100 avatar Jan 22 '22 12:01 yinran100