Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add @napi-rs/canvas support, remove base #480

Merged
merged 8 commits into from
Jun 1, 2022

Conversation

kyranet
Copy link
Owner

@kyranet kyranet commented May 30, 2022

Pending to add the @napi-rs/canvas extensions

Changelog

  • feat: added /napi-rs engine
  • feat: added createImageData()
  • feat: added createConicGradient()
  • feat: added printConicColorGradient()
  • feat: added printConicStrokeGradient()
  • feat(cairo): added jpeg()
  • feat(cairo): added jpegAsync()
  • feat(cairo): added pdf()
  • feat(cairo): added pdfAsync()
  • feat(cairo): added png()
  • feat(cairo): added pngAsync()
  • feat(skia): added jpegAsync()
  • feat(skia): added pdfAsync()
  • feat(skia): added pngAsync()
  • feat(skia): added svgAsync()
  • refactor: renamed resolveImage to loadImage
  • refactor: renamed registerFont to loadFont
  • docs: add @notes defining which methods are engine-specific

Breaking changes

  • refactor: removed cb parameter in getImageData()
  • refactor: removed cb parameter in measureText()
  • refactor: removed cb parameter in createPattern()
  • refactor: removed cb parameter in wrapText()
  • refactor(cairo): renamed createJPEGStream() to jpegStream()
  • refactor(cairo): renamed createPDFStream() to pdfStream()
  • refactor(cairo): renamed createPNGStream() to pngStream()
  • refactor(cairo): renamed setAntiAliasing() to setAntialiasMode()
  • refactor(skia): jpg() now returns a synchronous response
  • refactor(skia): pdf() now returns a synchronous response
  • refactor(skia): png() now returns a synchronous response
  • refactor(skia): svg() now returns a synchronous response
  • refactor(skia): removed cb parameter in getFontVariant()
  • refactor(skia): removed cb parameter in getTextTracking()
  • refactor(skia): removed cb parameter in getTextWrap()
  • refactor(skia): renamed getPages() to get pages
  • refactor(skia): renamed jpg() to jpeg()
  • refactor(skia): renamed newPages() to addPage()
Commit body
feat: added `/napi-rs` engine
feat: added `createImageData()`
feat: added `createConicGradient()`
feat: added `printConicColorGradient()`
feat: added `printConicStrokeGradient()`
refactor: renamed `resolveImage` to `loadImage`
refactor: renamed `registerFont` to `loadFont`
feat(cairo): added `jpeg()`
feat(cairo): added `jpegAsync()`
feat(cairo): added `pdf()`
feat(cairo): added `pdfAsync()`
feat(cairo): added `png()`
feat(cairo): added `pngAsync()`
feat(skia): added `jpegAsync()`
feat(skia): added `pdfAsync()`
feat(skia): added `pngAsync()`
feat(skia): added `svgAsync()`
docs: add `@note`s defining which methods are engine-specific

BREAKING CHANGE: refactor: removed `cb` parameter in `getImageData()`
BREAKING CHANGE: refactor: removed `cb` parameter in `measureText()`
BREAKING CHANGE: refactor: removed `cb` parameter in `createPattern()`
BREAKING CHANGE: refactor: removed `cb` parameter in `wrapText()`
BREAKING CHANGE: refactor(cairo): renamed `createJPEGStream()` to `jpegStream()`
BREAKING CHANGE: refactor(cairo): renamed `createPDFStream()` to `pdfStream()`
BREAKING CHANGE: refactor(cairo): renamed `createPNGStream()` to `pngStream()`
BREAKING CHANGE: refactor(cairo): renamed `setAntiAliasing()` to `setAntialiasMode()`
BREAKING CHANGE: refactor(skia): `jpg()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): `pdf()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): `png()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): `svg()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): removed `cb` parameter in `getFontVariant()`
BREAKING CHANGE: refactor(skia): removed `cb` parameter in `getTextTracking()`
BREAKING CHANGE: refactor(skia): removed `cb` parameter in `getTextWrap()`
BREAKING CHANGE: refactor(skia): renamed `getPages()` to `get pages`
BREAKING CHANGE: refactor(skia): renamed `jpg()` to `jpeg()`
BREAKING CHANGE: refactor(skia): renamed `newPages()` to `addPage()`

@kyranet kyranet marked this pull request as ready for review May 30, 2022 21:57
@kyranet kyranet requested a review from favna May 30, 2022 22:50
@favna favna merged commit a082135 into main Jun 1, 2022
@favna favna deleted the refactor/new-engine-new-code branch June 1, 2022 21:31
favna pushed a commit that referenced this pull request Jun 1, 2022
BREAKING CHANGE: refactor: removed `cb` parameter in `getImageData()`
BREAKING CHANGE: refactor: removed `cb` parameter in `measureText()`
BREAKING CHANGE: refactor: removed `cb` parameter in `createPattern()`
BREAKING CHANGE: refactor: removed `cb` parameter in `wrapText()`
BREAKING CHANGE: refactor(cairo): renamed `createJPEGStream()` to `jpegStream()`
BREAKING CHANGE: refactor(cairo): renamed `createPDFStream()` to `pdfStream()`
BREAKING CHANGE: refactor(cairo): renamed `createPNGStream()` to `pngStream()`
BREAKING CHANGE: refactor(cairo): renamed `setAntiAliasing()` to `setAntialiasMode()`
BREAKING CHANGE: refactor(skia): `jpg()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): `pdf()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): `png()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): `svg()` now returns a synchronous response
BREAKING CHANGE: refactor(skia): removed `cb` parameter in `getFontVariant()`
BREAKING CHANGE: refactor(skia): removed `cb` parameter in `getTextTracking()`
BREAKING CHANGE: refactor(skia): removed `cb` parameter in `getTextWrap()`
BREAKING CHANGE: refactor(skia): renamed `getPages()` to `get pages`
BREAKING CHANGE: refactor(skia): renamed `jpg()` to `jpeg()`
BREAKING CHANGE: refactor(skia): renamed `newPages()` to `addPage()`
favna pushed a commit that referenced this pull request Jun 1, 2022
BREAKING CHANGE: removed `cb` parameter in `getImageData()`
BREAKING CHANGE: removed `cb` parameter in `measureText()`
BREAKING CHANGE: removed `cb` parameter in `createPattern()`
BREAKING CHANGE: removed `cb` parameter in `wrapText()`
BREAKING CHANGE: renamed `createJPEGStream()` to `jpegStream()`
BREAKING CHANGE: renamed `createPDFStream()` to `pdfStream()`
BREAKING CHANGE: renamed `createPNGStream()` to `pngStream()`
BREAKING CHANGE: renamed `setAntiAliasing()` to `setAntialiasMode()`
BREAKING CHANGE: `jpg()` now returns a synchronous response
BREAKING CHANGE: `pdf()` now returns a synchronous response
BREAKING CHANGE: `png()` now returns a synchronous response
BREAKING CHANGE: `svg()` now returns a synchronous response
BREAKING CHANGE: removed `cb` parameter in `getFontVariant()`
BREAKING CHANGE: removed `cb` parameter in `getTextTracking()`
BREAKING CHANGE: removed `cb` parameter in `getTextWrap()`
BREAKING CHANGE: renamed `getPages()` to `get pages`
BREAKING CHANGE: renamed `jpg()` to `jpeg()`
BREAKING CHANGE: renamed `newPages()` to `addPage()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants