ng2-konva
ng2-konva is a JavaScript library for drawing complex canvas graphics using Angular.
It provides declarative and reactive bindings to the Konva Framework.
All ng2-konva
components correspond to Konva
components of the same name with the prefix 'ko-'. All the parameters available for Konva
objects can add as config
in the prop as Observable for corresponding ng2-konva
components.
Core shapes are: ko-stage, ko-layer, ko-rect, ko-circle, ko-ellipse, ko-line, ko-image, ko-text, ko-text-path, ko-star, ko-label, SVG Path, ko-regular-polygon. Also you can create custom shape.
To get more info about Konva
you can read Konva Overview.
Documentation
http://rafaelescala.com/ng2-konva/
Installation
To install this library, run:
$ npm install konva ng2-konva --save
and then from your Angular AppModule
:
;; ; // Import KonvaModule;
Once KonvaModule
is imported, you can use its components in your Angular application:
;
Related repositories
- react-konva - React + Konva
- vue-konva - Vue + Konva
License
MIT © Rafael Escala