feat(annotator): rounded highlight style for horizontal and vertical layout, closes #3208 (#3252)

This commit is contained in:
Huang Xin
2026-02-10 23:13:53 +08:00
committed by GitHub
parent c9a69a922b
commit 9444be7fcc
3 changed files with 7 additions and 3 deletions
@@ -318,7 +318,10 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
const { writingMode } = defaultView.getComputedStyle(el);
draw(Overlayer.bubble, { writingMode });
} else if (style === 'highlight') {
draw(Overlayer.highlight, { color: isBwEink ? einkBgColor : hexColor });
draw(Overlayer.highlight, {
color: isBwEink ? einkBgColor : hexColor,
vertical: viewSettings.vertical,
});
} else if (['underline', 'squiggly'].includes(style as string)) {
const { defaultView } = doc;
const node = range.startContainer;