[feat] Comics: zoom to panel (#6511)

This pull requests aims to provide convenient way to zoom in comics. The idea is when user holds/double taps (not decided yet) on a manga/comic panel, it gets cut out from the rest of the image and zoomed. More details in koreader/koreader-base#1148. Depends on koreader/koreader-base#1159
This commit is contained in:
Galunid
2020-09-24 15:17:37 +02:00
committed by GitHub
parent aeaf911758
commit 15455b594d
7 changed files with 115 additions and 1 deletions

View File

@@ -72,6 +72,10 @@ function DjvuDocument:getPageTextBoxes(pageno)
return self._document:getPageText(pageno)
end
function DjvuDocument:getPanelFromPage(pageno, pos)
return self.koptinterface:getPanelFromPage(self, pageno, pos)
end
function DjvuDocument:getWordFromPosition(spos)
return self.koptinterface:getWordFromPosition(self, spos)
end