Releases: chearon/dropflow
Releases · chearon/dropflow
v0.6.0
0.6.0
Images are supported! <img>
acts just like it does in the browser: natural ratios are known, they can be floated, positioned, inline, block, etc. JPEG, BMP, PNG, and GIF are supported, and images paint to every backend.
Changed
flow.load
no longer throws errors. Check thestatus
orloaded
promise on the returnedFontFace
s instead.
Added
- Support for the
<img>
element (JPEG, PNG, GIF, and BMP) flow.createObjectURL
andflow.revokeObjectURL
APIs
Fixed
zoom
wasn't applied to length values of line-heightflow.layout
twice before paint could result in incorrect inline backgrounds
v0.5.1
v0.5.0
Changed
- Styles must now be passed through
flow.style
before being given toh
. cascadeStyles
has been removed. Pass an array of styles toh
instead.- Removed
getRootStyle
- paintToCanvas no longer has a density argument. Use the zoom CSS property instead.
- Changed the font registration API to match
document.fonts
in web browsers. Instead ofregisterFont
, importfonts
andFontFace
. See the README for more details. parse
is now an individual file without the rest of the API. Changeimport * as flow from 'dropflow/with-parse.js'
toimport * as flow from 'dropflow'
andimport parse from 'dropflow/parse.js'
- Replaced
loadNotoFonts
withregisterNotoFonts
. Callflow.load
on the document after the latter.
Added
- Added support for the
zoom
property - Support for multiple styles on an element
- Support for hardware pixel snapping (#16)
- Added
flow.FontFace
,flow.fonts
,flow.createFaceFromTables
(see Changed above) - Added
unicodeRange
toFontFaceDescriptors
- Added
flow.load
for loading all fonts needed by a document - Added support for
@napi-rs/canvas
andskia-canvas
via environments (see examples) - Exposed environment hooks so that dropflow's behavior can be customized (see updated README).