An offset function for paperjs paths when using paper-core.js
npm install paperjs-offset-coreA fork from the excellent work made in paperjs-offset (Thanks!). The difference is to be able to provide a PaperScope to the offsetting functionality in case you need to work with paper-core.js directly from paper/dist/paper-core. Current use case is when using paper-core.js and working with paperjs using javascript with a bundler included. Could perhaps also be useful when working with multiple paperjs scopes.
Other changes includes:
- Removed deprecated ExtendPaperJs functionality.
- Removed window global
Under development. Not tested for use in Node.js, only in browser.
sh
npm install paperjs-offset-core
`
And then, in your project:
`javascript
import paper from 'paper/dist/paper-core' // if using bundlers otherwise skip and include in