Skip to content

Could someone take a look at updating node-canvas N-API implementation that Jason did back in 2017? #1250

Closed as not planned
@GitMurf

Description

@GitMurf

@jasongin did a wonderful job at porting node-canvas from NaN to N-API via node-addon-api back in 2017 but there has not been an update since and unfortunately node-canvas has some key things they have changed since then that makes the old fork unusable with any libraries that depend on node-canvas today.

See details here: Automattic/node-canvas#923 (comment)
Here is that fork of his from 2017: https://github.com/jasongin/node-canvas/tree/napi

I have spent weeks trying to figure this out but it is over my head. I started from the NaN to N-Api conversion tool but I can't for the life of me figure out how to do the rest of the cleanup / conversion to make the newest version of node-canvas work (I have zero C/C++ experience so it is a bit foreign to me).

Is anyone willing to take a look to see if you can port the current version of node-canvas to N-Api? Or even if you just port over a couple of the cc/h Class files then maybe that could be enough for me to use as a template to get the rest of it converted.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions