npm.io
1.0.0 • Published 4 years ago

@okeev/render

Licence
ISC
Version
1.0.0
Deps
6
Size
516 kB
Vulns
0
Weekly
0

OKee Render

A fast lightweight 2D graphic library

npm version min size

English | 简体中文

Features

  • Both svg and canvas renderer support with same API
  • Good performance with large amount of data
  • Cross platform suppprt with web、node、mini-program
  • Support interpolation animation, and path animation
  • Support start and end arrows on path
  • Virutal dom update with transition animation
  • Rich-text component

Install

npm install @okeev/render

Usage
<div id="container" style="width: 600px;height: 480px"></div>
import { Render, Rect } from '@okeev/render'

const or = new Render(document.getElementById('container'))

or.add(new Rect({
  x: 0,
  y: 0,
  width: 100,
  height: 100,
  fill: 'red'
}))

License

MIT licensed