Fix underline in vertical writing mode

Or rather, add the option to fix it. The actual fix is in the reader.
This commit is contained in:
John Factotum
2023-03-14 11:20:21 +08:00
parent f9ce32b913
commit 59971fe343
2 changed files with 13 additions and 4 deletions
+2 -1
View File
@@ -188,7 +188,8 @@ export class View {
overlayer.remove(value)
if (!remove) {
const range = doc ? anchor(doc) : anchor
const [func, opts] = this.emit({ type: 'draw-annotation', annotation })
const [func, opts] = this
.emit({ type: 'draw-annotation', annotation, doc, range })
overlayer.add(value, range, func, opts)
}
}