williamngan / svelte-pts-canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:Apache License 2.0


Languages

Language:Svelte 77.4%Language:JavaScript 11.0%Language:HTML 7.2%Language:TypeScript 4.3%