Skip to content

Conversation

@virbas
Copy link

@virbas virbas commented May 10, 2023

Decouple canvas from the main package.

canvas is only used in the example how to generate .mind files using node.js, however it's included as a dependency in package.json.
npm i mind-ar might fail to install because canvas dependents on a bunch of optional system libs (see installation wiki https://github.com/Automattic/node-canvas/wiki).

What has changed:

  • examples/nodejs/createImageTargetLibrary.js now contains it's own npm project, so it does not interfere with the main package build.
  • added another example how to generate .mind files using puppeteer.

virbas added 2 commits May 10, 2023 15:42
… package for createImageTargetLibrary.js, create an example of creating .mind files using node & puppeteer (does not require node_canvas)
@virbas virbas changed the title ### Decouple node-canvas dependency from the main package. Decouple node-canvas dependency from the main package. May 11, 2023
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.

1 participant