Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

paperjs

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:

  • paper-core.js
  • paper-full.js
  • paper.js

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

like image 874
at. Avatar asked Sep 30 '13 07:09

at.


1 Answers

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

like image 137
Jürg Lehni Avatar answered Sep 26 '22 16:09

Jürg Lehni