svelte-pts-canvas Svelte Themes

Svelte Pts Canvas

svelte-pts-canvas

A Svelte component for the Pts library.

Installation

npm install svelte-pts-canvas

Usage

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

Developement

npm run build

// IMPORTANT to change directory before publish
cd package
npm publish

Top categories

Loading Svelte Themes