-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pending to add the
@napi-rs/canvas
extensionsChangelog
/napi-rs
enginecreateImageData()
createConicGradient()
printConicColorGradient()
printConicStrokeGradient()
jpeg()
jpegAsync()
pdf()
pdfAsync()
png()
pngAsync()
jpegAsync()
pdfAsync()
pngAsync()
svgAsync()
resolveImage
toloadImage
registerFont
toloadFont
@note
s defining which methods are engine-specificBreaking changes
cb
parameter ingetImageData()
cb
parameter inmeasureText()
cb
parameter increatePattern()
cb
parameter inwrapText()
createJPEGStream()
tojpegStream()
createPDFStream()
topdfStream()
createPNGStream()
topngStream()
setAntiAliasing()
tosetAntialiasMode()
jpg()
now returns a synchronous responsepdf()
now returns a synchronous responsepng()
now returns a synchronous responsesvg()
now returns a synchronous responsecb
parameter ingetFontVariant()
cb
parameter ingetTextTracking()
cb
parameter ingetTextWrap()
getPages()
toget pages
jpg()
tojpeg()
newPages()
toaddPage()
Commit body