at.
at.

Reputation: 52590

Which paper.js file do I use in their dist directory?

I want to use paper.js, but there are 3 different versions of paper.js that I can't find an explanation for the differences of. Which do I use?

from paper.js' dist directory:

There's actually a 4th, paper-node.js, but I assume that's for Node.js which I'm not using at the moment.

Upvotes: 6

Views: 1115

Answers (1)

Jürg Lehni
Jürg Lehni

Reputation: 1826

As answered on the Github issues tracker already:

https://github.com/paperjs/paper.js/issues/296

  • paper.js is the same as paper-full.js
  • Use paper-full.js if you're working with PaperScript code.
  • Use paper-core.js if you just need the Paper API without the PaperScript extensions.

The reason why paper-full.js is the same as paper.js has to do partly with legacy, and partly with how paper.js is loaded in development through load.sh. You can read on it here: https://github.com/paperjs/paper.js#editing-and-running-code-during-development

Upvotes: 7

Related Questions