feat: implemented reflow for bullets and single lines along with the fix for save on delay
This commit is contained in:
@@ -171,15 +171,16 @@ public:
|
||||
|
||||
[[nodiscard]] virtual std::expected<PageImage, EngineError> render(int dpi = 96) const = 0;
|
||||
|
||||
[[nodiscard]] virtual std::expected<PageImage, EngineError>
|
||||
renderRegionRaw(int dpi, double yTopPt, double heightPt) const {
|
||||
(void)dpi; (void)yTopPt; (void)heightPt;
|
||||
return std::unexpected(EngineError::Unknown);
|
||||
}
|
||||
|
||||
[[nodiscard]] virtual std::expected<std::string, EngineError> extractText() const = 0;
|
||||
|
||||
[[nodiscard]] virtual std::expected<std::vector<GlyphBounds>, EngineError> extractTextWithBounds() const = 0;
|
||||
|
||||
// Adobe-grade hit-testing & selection, layered on extractTextWithBounds().
|
||||
// Concrete (non-virtual) so every page implementation gets them for free.
|
||||
// Coordinates are in page-point space (top-left origin), matching GlyphBounds.
|
||||
|
||||
// Glyphs in reading order: clustered into lines top-to-bottom, left-to-right.
|
||||
[[nodiscard]] std::expected<std::vector<GlyphBounds>, EngineError> orderedGlyphs() const;
|
||||
|
||||
// Nearest glyph/caret to a point.
|
||||
|
||||
Reference in New Issue
Block a user