That is encouraging, even if integrating pdf.js with Tiddlywiki looks like a sizeable project!
Thanks @TW_Tones for your answer, but in this case I really need annotations in TiddlyWiki. Having them as tiddlers that one can remix, endow with metadata and display flexibly is part of a very effective scholarly workflow combining ideas from Zettelkasten (cross-linking, high-granularity thoughts) and spaced repetition (in particular: incremental reading).
@JanJo thanks for sharing Dynannotate Mod, even if it is not applicable for pdfs it explores how the interface could look like (provided we could render the pdf in a tiddler, or some sort of pane). A nice feature, I noticed, would perhaps be to backlink annotations to the annotated tiddler?
Thanks everyone,
Álvaro.
PS. in Logseq, it seems that the logic for annotations is written in ClojureScript