8000 Releases · chearon/dropflow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: chearon/dropflow

v0.6.0

21 Jun 14:39
Compare
Choose a tag to compare

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 the status or loaded promise on the returned FontFaces instead.

Added

  • Support for the <img> element (JPEG, PNG, GIF, and BMP)
  • flow.createObjectURL and flow.revokeObjectURL APIs

Fixed

  • zoom wasn't applied to length values of line-height
  • flow.layout twice before paint could result in incorrect inline backgrounds

v0.5.1

12 Apr 16:24
Compare
Choose a tag to compare

Fixed

  • More accurate text coordinates when containing blocks are positioned in subpixels

v0.5.0

11 Apr 00:37
Compare
Choose a tag to compare

Changed

  • Styles must now be passed through flow.style before being given to h.
  • cascadeStyles has been removed. Pass an array of styles to h 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 of registerFont, import fonts and FontFace. See the README for more details.
  • parse is now an individual file without the rest of the API. Change import * as flow from 'dropflow/with-parse.js' to import * as flow from 'dropflow' and import parse from 'dropflow/parse.js'
  • Replaced loadNotoFonts with registerNotoFonts. Call flow.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 to FontFaceDescriptors
  • Added flow.load for loading all fonts needed by a document
  • Added support for @napi-rs/canvas and skia-canvas via environments (see examples)
  • Exposed environment hooks so that dropflow's behavior can be customized (see updated README).
0