konva-frame
v1.4.6
Published
Custom library for text rendering and animation using Konva
Downloads
42
Readme
Production
Installation
Install the library and all dependencies
npm install konva-frame
Usage
Import what you need
import { Cue, ICue } from 'konva-frame'
Otherwise, import everything using
import * as KonvaFrame from 'konva-frame'
All classes can then be accessed using
KonvaFrame.<classname>
You can also import the library using a 'script' tag (change the version to the one you need)
<script src="https://unpkg.com/[email protected]/dist/konva-frame.js"></script>
Development
Installation
Install all dependencies
npm install
Local testing
Build and start the app
npm start
This will serve demo/index.html at localhost:8080. You can add additional html files in the demo folder and navigate to it through the browser.
Build and deploy
Build the app
npm run build
then publish to npm
npm publish
Usage
The bundle is imported in the HTML with the following line.
<script src="konva-frame.js"></script>
All classes can then be accessed using
KonvaFrame.<classname>
Test
To be added