Install the library and all dependencies
npm install konva-frame
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/konva-frame@1.0.6/dist/konva-frame.js"></script>
Install all dependencies
npm install
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 the app
npm run build
then publish to npm
npm publish
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>
To be added