A Svelte component for the Pts library.
npm install svelte-pts-canvas
import { PtsCanvas } from 'svelte-pts-canvas';
// ...
<PtsCanvas setup={{bgcolor: '#f0f'}} onAnimate={handleAnimate} />
This is experimental. Take a look at the example in src/routes/index.svelte
npm run build
// IMPORTANT to change directory before publish
cd package
npm publish