qvp_flutter 0.11.0
qvp_flutter: ^0.11.0 copied to clipboard
Flutter wrapper for the QVP vector mushaf engine (dart:ffi over libqvp_ffi).
Unreleased #
0.11.0 #
Added #
- Flutter:
QvpPassage.styledDrawList(pages), anddraws:andpageColors:onpaintPassage, to fill a passage in its pages' colours, a letter coloured on its own included.QvpPassageSpec.omitAyahMarksandQvpPassage.ayahMark(pages, surah, ayah)lay an ayah out with no medallion and give its medallion alone, on both backends.QvpPassageDrawcompares by value. QvpPageView.onSwipegives a sideways swipe in pages: +1 the next page, -1 the page before it. A magnified page pans instead, and a touch with a second finger never turns the page.
Fixed #
- The iOS, macOS, Windows and Linux builds of an app that takes
qvp_flutterfrom pub.dev find the engine. The package carries the Windows (x64) and Linux (x64, arm64) libraries. On iOS and macOS, Swift Package Manager or CocoaPods downloads the XCFramework from the GitHub release and checks its checksum. Through 0.10.0 the package had the engine for Android and the web only (#211).
0.10.0 #
Added #
- Flutter:
QvpPage.attachLetters(bytes),hasLetters,letterCount,letter,letters,letterMembers,pathLetter,letterAtOffset,findLetters,styleLetters,hitTestLetter,hitTestLetterViewandlayoutDrawRevision(), on both backends.Sel.letter,Sel.letterMark,Sel.letterMarkNamedandSel.wordCharsselect letters. New types:QvpLetter,QvpLetterMember,QvpLetterHit,QvpLetterQueryandQvpLetterPart.QvpPageViewkeys its draw list on the draw revision, and its base ink on the draw list. - With a letter layer and no letter rule, every view draws what it drew before. A page with no layer makes no new engine call per frame in any wrapper.
- Every wrapper gives a letter the same names. A letter's
textis its character, andcodePointis the same as a number. A member and a letter hit give the mark as its id,mark, and its name,markName. A letter'smarksare its members that are not body, in the engine's order. Every letter also givesnMembersandnMarks. The web letter gives its box asbox, and the other wrappers asx0,y0,x1andy1. A query'stexttakes one character, or''for any letter. A string of more than one character is an error in the wrapper's usual form. After an attach that succeeds, each array that a host got from the page before it is stale: geometry, colours, built paths and each array sized from the path count. In React Native, the letter hit tests takeDEFAULTS.TAP_DISTANCEas the defaultmaxDistance, as itshitTestdoes. test/shared/letter_cases.dartreplaysconformance/scenarios/letters.jsonon both backends.
Changed #
- Flutter: the
QvpBackendinterface has 13 new members for the letter layer, and a new type,QvpPageGeometry. This is a source-breaking change for a class outside the package that implementsQvpBackend: it must add the members. An app that uses the package's own backends needs no change. - An attach of a letter layer makes stale what the host read before it. The pointers that
qvp_geometryandqvp_colorsreturned are invalid afterqvp_attach_lettersreturns 0, andn_pathsofqvp_page_infoandqvp_geometry, the length ofqvp_colorsandqvp_layout_path_groupsgrow by the pieces. On a page with a layer,qvp_layout_draw_listandqvp_layout_draw_revisionapply pending rule changes before they answer, asqvp_colorsdoes. On a page with no layer they do not. - The geometry of a page is now read again after an attach in Kotlin, Swift and Dart:
nPaths,ops,ptsandtableofQvpPagearevarwith a private setter in Kotlin,public private(set) varin Swift, and getters in Dart. Code that reads them is unchanged. An array that an app copied from them before an attach does not hold the pieces.
Removed #
Fixed #
- The block and blur boxes of a memorisation mask have one height in a printed line: the top and the bottom of the tallest ink of the line's words.
- Flutter: the styled pass of
QvpPageViewdraws each styled entry of the draw list, in its order and under its own placement. It drew each styled path once, at its first placement, so a styled path that a reflowed layout draws twice, such as a sajdah line over two rows, lost its second copy. The base ink and the styled pass now draw each entry of the draw list once between them, and a hidden path not at all. Now every view draws only what the draw list holds.
0.9.1 #
Fixed #
- A pinch or a step on a page dressed in a border lands on the new layout's resting scale. The printed page rests shrunk so its border fits across the width, and a reflowed page rests at scale 1 because its rows are narrowed instead. The zoom control kept the view's scale across the relayout, so a pinch in drew the reflowed page narrower than the screen and a pinch out cut the printed page's border off (page 584: scale 0.708 carried into a layout that rests at 1, and back). The view now keeps its size against the width the page spans. An undressed page rests at scale 1 in every layout and is unchanged.
0.9.0 #
Added #
QvpEngine.viewSwipe(dx, dy, [vx, vy])andQvpEngine.swipePages(dx, dy, [vx, vy])read a released drag, andQvpPage.viewAnchor(view, word, nx, ny, toX, toY, viewportW, viewportH)holds a point of a word on the screen across a new layout. The generated bindings declared all three, but no Dart call reached them (#165). Both backends bind them.QvpPage.ayahMarksView(),hitAreasView([gapBias])andwordBandsView(words, height:, padX:, padY:): the viewport-px twins ofayahMarks,hitAreasandwordBands, in both backends. Each answers through the current layout, so an app that draws its own overlay on a reflowed page reads where each word or mark is drawn (#82).qvp_layout_ink_bandpicks the band of a laid-out page that a host keeps drawn: the whole page when it fits, otherwise two screens around the reader. The band's top moves in steps, so a pan inside one step redraws nothing. The band is in layout px, ready forqvp_layout_draw_list. Its two limits are in viewport px:max_height(0 takes the newQVP_DEFAULT_MAX_INK_HEIGHT, 4096), which no band passes, andmax_pixels, a pixel budget (0 is no limit), which shrinks the band from two screens to no less than one. With no screen (no scale, no viewport height, or a non-finite scale, height or offset) the band is the whole page, however tall. A dressed page's dress overflow, and half the border's stroke past it, counts against both limits, rounded up to whole viewport px plus one for the antialiased edge. Its band is the dressed box when that fits. When neither the dressed box nor the bare page fits, it is the bare page's band. When only the bare page fits, it steps on whole viewport px, and under a screen taller than the ceiling it is the ceiling tall, holding the bare page whole and as much border above it as fits. That is a deliberate choice: the views used to cut the page's bottom rows there, and now the page's ink stays whole and the top of the border is clipped as needed. iOS rounds that top to whole points, so up to 2 more device rows of the border can be clipped there. With no screen it is the whole dressed box (#182). Bound aslayoutInkBandin JavaScript, Kotlin, Dart and Swift. React Native calls it through the Kotlin view.conformance/scenarios/ink-band.jsonholds the engine's answers for a bare and a dressed page, and the web, Kotlin, Dart and Swift tests replay them (#134).- Swift Package Manager support on iOS and macOS (#153).
ios/qvp_flutter/Package.swiftandmacos/qvp_flutter/Package.swiftlinkQvpEngine.xcframeworkas a binary target, and the podspecs stay for apps that build with CocoaPods. Flutter no longer warns that the plugin does not support Swift Package Manager. test/qvp_web_test.dartruns the cases oftest/shared/api_cases.darton the web backend in Chrome.test/qvp_flutter_test.dartruns the same cases on thedart:ffibackend.
Changed #
- The Android
QvpPageView, the FlutterQvpPageViewand the webCanvasRendererask the engine for their band of ink. Each had its own copy of the arithmetic, and the copies did not agree (#134):- Android drew a printed page as a band. It now draws any page whole when the page fits the ceiling and the ink budget, as it already did for a reflowed page. Its band no longer passes the ceiling on a screen taller than 4096 px. The ink budget now limits the band as well as the whole page, down to one screen and never below.
- Flutter measured the 4096 ceiling in layout px. It now measures it in viewport px, so a magnified page bands once it is taller than 4096 px on the screen. At a view scale of 1 nothing changes.
- The web band now stays under the tallest canvas a browser makes, and under the ink budget down to one screen.
- The dress overflow is no longer added to the band by the views (#182). On Android the
ornament layer was the band plus the overflow, cut at the 4096-row ceiling and the ink
budget, so the bottom of a border could go missing. It is now the engine's band, the same
rows as the base ink, so on any screen under the ceiling the border on it is drawn whole. On
a screen taller than the ceiling the layer is the ceiling tall, from the border's top. The
web
CanvasRenderer's ornament layer is the engine's band too. On a screen whose device pixel ratio is not a whole number, such as 1.5, the web border could be drawn a device pixel off the ink, since its layer was placed by rounding of its own. It now sits on the ink's pixels. On both, the base ink's bitmap is now the dressed band, a few rows taller than the bare band on a page that fits. A page whose dressed box is just over a limit its bare page fits under now bands, so a pan can redraw it; that costs time, not pixels. Flutter and React Native need no change. QvpDressInfo.overflowand its twins in every wrapper are documented in layout px, which is what the engine returns. The docs said viewport px (#182).flutter analyzefails on a public item with no doc block:analysis_options.yamlturns onpublic_member_api_docs. Every public type, field and call intypes.dart,page.dart,engine.dart,atlas.dart,ornaments.dart,passage.dartandpage_view.darthas a block that gives its units, its range and what an empty or null result means.lib/src/bindings.dartand the three backend files inlib/src/backend/are exempt, becauseqvp.hdocuments the calls they marshal (#135).- The iOS and macOS sources moved from
Classes/toqvp_flutter/Sources/qvp_flutter/, the layout Swift Package Manager needs.QvpEngine.xcframeworkmoved fromios/andmacos/toios/qvp_flutter/andmacos/qvp_flutter/, where the podspec andPackage.swiftboth read it.scripts/build-engine-ios.shcopies it there. Run it again after you pull. layoutPrintedHeighton a page dressed in a border answers the height of the whole page, border included: the dressed box fitted to the viewport width, asdressViewat scale 0 fits it. That is the height a host that scrolls the page gives its canvas, so a host can plan a box for a bordered page before it sizes the canvas. With no padding the height is in proportion to the width. An undressed page answerscontentHas before.- Fill-height on a page dressed in a border fills the viewport with the border included:
dressView(0, viewportW).heightisviewportH. Before, the text filled the viewport and the border reached past it above and below.layoutLineSpacingToFillanswers the same leading. - A printed layout of a dressed page narrows
cropLeftandcropRightwhere a medallion reaches past them, so the crop never cuts into a medallion. A medallion stays centred on its printed ring. On page 50, four font markers reached about 1 unit past a crop measured from the words. dressandundresslay a printed page out again from its own spec, as they already did for a reflowed page, because the crop and the fill now depend on the dress.
Fixed #
- A band of ink with less than 2 px of slack, from an ink budget of about one screen or a
screen within 2 px of
max_height, now follows the reader. Before, its top moved in steps of 1 px, more than half its slack, and the band could end up to 2 px short of the screen's edge (#134). QvpKindandQvpDecorationKindname every code inqvp.h:QvpKind.ornament,pageNumberandrunningHead(5 to 7), andQvpDecorationKind.pageNumber,runningHeadandother(5, 6 and 255). Before,QvpPage.pathKindand a decoration's kind could return a value that no constant named.- Doc fixes in
types.dart.QvpSurahHeader,QvpAyahMark,QvpHitArea,QvpBoxandQvpLayoutname every call that fills them, the_viewtwins andqvp_layout_currentincluded.QvpBox.lineandQvpHitArea.linesay which calls carry a row on a reflowed page.QvpLayout.fitScaleshrinks to fit both width and height, not to height alone. The defaultQvpZoomis at zoom 1, not all zero.QvpDefaultsnames its ratios apart from its page-unit lengths. - On web, a
'surah:ayah:word'target such as'2:255:3'named word 0 of the page.targetWords,highlight,mask,text,cropSvgand the other target calls took the first word. The web backend now sends the word key toqvp.js, which finds the word on the page. - On iOS, macOS, Android, Windows and Linux, a word key that is not on the page, such as
'2:1:1'on page 42, named word 0. It now names no word, as on web:targetWordsis empty andtextis''. A shared test case holds both backends to this. - The docs of the layout's fit (
fit_scale,fit_x,fit_y) say what a reflowed page does. On a reflowed pagefit_scaleis 1 and the host scrolls the content.fit_xcentres it across the viewport, andfit_yputs the top of the box at the top of the viewport. Before,qvp.h, the Rust docs,docs/API.mdand the Kotlin, Swift, Dart and React Native docs said that the fit shrinks every page into the viewport and centres it.qvp.h, the Rust docs,docs/API.md, Kotlin and Swift also said that a printed page shrinks to the viewport height. It shrinks to fit both the width and the height. The wrapper docs now also say that on a dressed page the fit shows the content plus the dress overflow, and thatfit_x,fit_yplace the content's own origin. The docs of the dress overflow in Kotlin, Swift and Dart told a host to fit the overflow itself. The engine's fit holds it already. The iOSresetView()docs said that the view fits the content height. - A page dressed without a border no longer grows its dressed box to the whole printed page.
The box is the laid-out page, so a crop is kept. Before,
dressViewat scale 0 shrank a cropped page to show the cut margins, by about 3.5% on page 50. A reflowed page dressed without a border is no longer pushed off to the left: on page 50 at zoom 1.8,fitXwas −170 px. - The XCFramework's macOS slice holds arm64 and x86_64. A Flutter macOS release build is universal, and it failed to link against the arm64-only slice.
0.8.0 #
Added #
QVP_DEFAULT_REFLOW_RELAX,QVP_DEFAULT_REFLOW_MAX_STRETCHandQVP_DEFAULT_SELECTION_PAD_Xinqvp.h, mirrored in every wrapper's defaults table (QvpDefaultsin Kotlin, Swift and Dart,DEFAULTSin JavaScript and React Native). The page views pass the selection pad from the table and the reflow specs take their defaults from it, so no wrapper copies the numbers by hand.scripts/check-parity.pycompares 29 defaults where it compared 26.- Reflow can keep the print's line breaks with
breaks: 'printed'inQvpReflowSpec. Each line stays whole while its ink grows to fill the page width.reflowMaxZoommeasures the widest row in this mode, and larger zooms clamp to it. - Platforms: iOS, macOS, Windows, Linux and web, alongside Android.
- iOS and macOS link
QvpEngine.xcframeworkthrough a podspec and resolve symbols withDynamicLibrary.process().scripts/build-engine-ios.shcopies the framework into both. - Windows and Linux bundle
qvp_ffi.dllandlibqvp_ffi.sothrough CMake, and fail the build when neither the plugin directory nor the Cargo build holds one. - Web runs the engine as WebAssembly over
dart:js_interop. Callawait QvpEngine.initWeb()before the first engine call.
- iOS and macOS link
scripts/sync-flutter-web-engine.shrefreshes the two web assets the package ships.scripts/check-parity.pyfails when theqvp.jscopy drifts fromweb/qvp.js.QvpPage.batch(fn)notifies listeners once however many mutationsfnmakes.QvpPage.path(i)builds one path on demand and keeps it.QvpPage.buildPaths()returns the whole list as before.
Changed #
- Breaking.
QvpPageView.onWordTaphands the host theQvpWordInfowhere it passed the word's index, andonDecorationTapcarries theQvpHitbeside the decoration. Android and iOS pass the word and the hit already, so host code reads one shape on all three.QvpWordTapCallbackandQvpDecorationTapCallbackname the two shapes. The index isword.index, and a host with no use for the hit takes a second parameter and ignores it (issue #139). - Flutter:
package:ffigengenerateslib/src/bindings.dartfromqvp.h(dart run tool/ffigen.dart). Before, the file was written by hand.scripts/check-flutter-bindings.shfails when the file and the header differ. The Flutter workflow runs it, andscripts/check.sh parityruns it when Flutter and libclang are installed.scripts/check-parity.pyskips the generated file, so a symbol counts as bound in Flutter only when the package's own code names it.docs/API-PARITY.mdlists as gaps the 14 symbols that the old file bound and no backend called. The binding object behindQvpNativeBackend.bfollows the C names everywhere:hide,highlight,moveHighlight,restyleHighlight,removeHighlight,clearHighlightsandatlasSurahsare nowstyleHide,highlightAdd,highlightMove,highlightRestyle,highlightRemove,highlightClearandatlasSurahCount. - The web engine in the package,
assets/wasm/qvp_ffi.wasmandassets/js/qvp.js, is built from the release tag, so it matches the native libraries and the crates of the same version. The repository no longer tracks the two files. The pubspec declares their directories, so a native build of agit:orpath:dependency runs without them. A web build from such a dependency builds them first (see the README). QvpPageViewcaches the base ink and the ornament layer asui.Picturerecordings in layout units rather than rasters at the current transform, so a pan or a pinch replays the picture instead of redrawing the page. Keys carry the engine layout's offsets and thesurahFramesflag, so a relayout redraws. The ornament layer is keyed onQvpDressInfo.revisionand held per page, which is what a repaint of a dress depends on.QvpPage.ayahMarks()holds its answer until the next mutation.- Shipped binaries build with the cargo profile
dist. The Windows and Linux CMake files look undertarget/dist/first, thentarget/release/.scripts/build-engine-windows.ps1andscripts/sync-flutter-web-engine.shbuild with it. - Split
engine.dartintotypes.dart,page.dart,atlas.dart,ornaments.dart,passage.dartand a backend interface.QvpEnginenow holds aQvpBackend, so the Dart API no longer namesdart:ffitypes and the same code compiles for web. - The native backend marshals input through a bump allocator over one scratch buffer
rather than an allocation per call. Nested marshalling takes a slice of its own, so
text()can pass two separators safely. - The package is
dart formatclean, and the Flutter workflow checks the formatting before it analyses. - Android and Flutter: a page view frame where nothing changed asks the engine for the clock
and nothing else. The views keep the styled paths, the highlight and mask boxes with their
paths, and the dress readout until a call on the page, a new layout or the clock changes
them. Small value keys replace the string keys of the base ink, the ornament layer and the
draw list. On Android such a frame allocates nothing: on page 042 in the API 35 emulator it
allocated 19 objects, or 1,071 with a highlight and a mask (
docs/MEASURED.md). The numbers the views draw do not change. - The example's tool-written files are committed, so a clone stays clean after one build.
- The plugin and its example pin
ndkVersionto the repository's NDK, so Gradle no longer downloads Flutter's default NDK beside it.
Removed #
- Breaking.
kMinZoomandkMaxZoomare gone, because the engine applies the pinch limits. UseQvpDefaults.maxZoomandQvpPageView.maxZoom. The floor is the fitted page.QvpPageView.minScaleandmaxScale, which did nothing, are gone.QvpViewController.zoomBytakesminandmaxin place ofminScaleandmaxScale. - Breaking.
QvpEngine.resolveLibrary,QvpEngine.scratchBytesandQvpEngine.strare gone. All three nameddart:ffitypes or the native scratch, which cannot sit on a platform-neutral class.QvpNativeBackendholds them now. Pass a library toQvpEngine(library)or a path toQvpEngine.open(path:)as before.
Fixed #
- The exact hit tests fill their hit with the core's conversion, as the gap-aware hit
tests do. They are
qvp_hit_test_exactandqvp_hit_test_exact_view, andhitTestExactandhitTestExactViewin every wrapper. A hit on a decoration reports the line of the decoration's first path. It reportedQVP_NONE: -1 in the wrappers, andInt.MAX_VALUEin Kotlin and in React Native on Android. A hit on the box of a word or a decoration, outside its ink, reportsis_exact0. It reported 1.conformance/scenarios/hit.jsonholds one point of each kind, and the web, Swift, Dart and Android tests replay it. The C ABI is unchanged. - Dart:
rgbaandQvpColor.withAlphaclamp a NaN alpha to 0, where they threw. - Every wrapper handles a freed object, a second free and a large array result the same way
(
docs/API.md, conventions). A call on a freed page, atlas, ornament set or passage throws an error with the object's name: aStateErrorin Dart in every build mode, where a debug assert stood before, a fatal error in Swift and a rejection in React Native. The Flutter native backend no longer passes a freed handle's null pointer to the engine. A secondfree,closeordisposedoes nothing, Flutter'sQvpPage.disposeincluded, and the Kotlin handle is atomic, so two threads that close the same object free it once. Every array getter grows its buffer to the total the engine reports, where the Android bridge, the web wrapper and the Flutter backend stopped at fixed caps such as 64 line bands, 1,024 highlight handles and a 256 KB scratch. - Every pan, zoom and view computation in
QvpPageViewgoes through the engine: a tap is inverted withQvpPage.viewToLayout, a magnifying pinch is placed byQvpEngine.viewZoomAboutwith the fitted page as the floor andmaxZoomas the ceiling, a one-finger drag byQvpEngine.viewPan(the view did not drag before), and the view a drag or a pinch produces is held withdressClamp. A pinch follows the rule indocs/API.md, and two fingers drag the page.QvpViewController.zoomBy,panByandtoViewcall the engine.zoomBystops at the fitted page, and a controller that a host hands to a new view keeps working.zoomSpeckeeps the host's reflow knobs on the printed page. The tests replayconformance/scenarios/zoom.json. - A call on a disposed
QvpEnginethrowsStateError('QvpEngine was disposed')on a native build, where a page, atlas or name call afterengine.dispose()reached freed scratch memory. Freeing a page, atlas, passage or ornament set still works afterwards. - After a zoom step lays the page out again,
QvpPageViewdraws the highlight bands and the dress overflow of the new layout. It kept those of the old layout until the next call on the page. QvpPageViewStats.basePathscounts the paths a replayed picture draws, not only the paths of a frame that recorded one.- The example builds from a fresh clone. The root
.gitignoreignored every PNG, so git never tracked the launcher icons and launch images that the Android manifest and the iOS and macOS asset catalogs name. The rule now covers the repository root only, and the Flutter template's icons are tracked. The example gains the template'sweb/folder, and the Flutter workflow builds the example for Android and web, so a missing file fails CI. flutter analyzeno longer warns on a fresh clone that the example'sassets/pages/directory is missing. The directory holds a trackedREADME.md, and.gitignorekeeps that file while it ignores the page data. The rulepages/now matches only the rootpages/.- A highlight band no longer freezes part way through a transition, and a removed band no longer stays on the page. The engine's highlight boxes depend on the clock, so the band cache clears on every frame rather than on a revision change.
- Styled paint composites with
srcOver. Withsrc, a styled colour part way through a fade wrote its alpha over the paper rect in the same layer and opened a translucent hole. - A styled path the layout leaves out of the draw list is skipped. The fallback read
pathLine(), which mixed a printed line number into a list of placements and put the glyph somewhere else on a reflowed page.
0.7.0 #
- Dress:
QvpEngine.loadOrnamentsandQvpOrnaments(list,find,ofKind,styles), andQvpPage.dress,undress,dressInfo,dressGeometryanddressRevision.QvpPageViewpaints the ornament layer behind the ink and fits the border. The example has a dress panel. - Passages:
QvpPassage.loadandQvpPassage.basmalah,layout, andpaintPassageto draw a layout; the plugin replaysconformance/scenarios/passage.json(issue #102). QvpPageView.maxZoom,peekScaleandsetZoomMode, as on iOS and Android. The magnify pinch is clamped by the engine (QvpEngine.viewZoomAbout).zoomSpeckeeps the host's reflow knobs on the printed page, with zoom 0, so the first pinch off it reflows with the host's fill rather than the engine's defaults.- Engine: a passage cut to a row with no room for one word, the ellipsis and the medallion shrinks the scale rather than placing them outside the layout.
QvpPassageWord.wordX0towordY1: the box of the word alone, without its signs. The word that closes an ayah leaves its medallion out, so an underline under it stops at the word.
0.6.1 #
- Engine 0.6.1: a passage that runs from page 2 into page 3 draws every word at one size
in QvpKit and
web/lite-passage.mjs; this package binds passages next (issue #102). Nothing changes here.
0.6.0 #
- Engine 0.6.0: justified passages and a surah's basmalah as a passage reach QvpKit first; this package binds passages next (issue #102). Nothing changes here.
0.5.0 #
- Under
justified, a row that cannot reach both margins is centred instead of starting at the right margin: the last row of a block, a single word, or a row whose gaps would have to stretch pastmax_stretch. Hung off the right margin, it read as a ragged column. - The reflow knobs of
QvpLayoutSpecare read on a printed page too (reflow_zoom0): they are what the zoom control reflows the page with. A C host that zeroes the spec and pinches now reflows ragged (fill 0), greedy (breaks 0) and with printed gaps (gaps 0); 255, 255 and 1 ask for the engine's defaults, which every wrapper already writes. - On a reflowed row, a medallion is centred between the word it closes and the next one with the signs each carries, such as the quarter star (۞) that opens the next ayah. Measured on the letters alone, it sat against the star with the space on its other side.
- A pinch keeps the host's fill, breaks and gaps from the first step. The C layer dropped the
reflow knobs while
reflow_zoomwas 0, so the layout the zoom control made inside a pinch always took the engine's defaults.
0.3.0 #
- Engine 0.3.0: the reader's zoom control (
zoomPinch,zoomToStep, and the mode, spec, carried, at-step and is-zoomed calls), a page reflowed onto rows of the screen's own width when the reader zooms in,layoutDrawList,layoutPrintedHeight,sidewaysDragandswipePages, and thesurahFramesandbannerZoomlayout knobs. surahHeadersandsurahHeadersView: the box a surah frame fills and the title ink inside it, for a host that draws its own frame.- Fixed:
QvpPage.zoomSpeccarriesbannerZoomthrough.
0.2.2 #
- The package includes the Android engine and is available from pub.dev.
0.2.0 #
- ABI 0.2: the header and every wrapper follow the naming standard (hit tests, rectangles,
verbs, discriminators, full words, layout, one-byte booleans, the engine/format version split).
No alias is kept; the old → new table is in the root
CHANGELOG.mdanddocs/API-PARITY.md.
0.1.1 #
- Line spacing only ever opens up. The printed pitch is the floor:
lineSpacingbelow 1, a negativelineGap, or afillHeightthat would need to tighten now lay the page out exactly as printed, so the lines can never collapse into one another. The text width was never adjustable and stays fitted to the viewport.
0.1.0 #
- First release: page loading, hit-testing, layout, styles, highlights, selection, masks, search and crop over the Rust engine.