1.0.0 • Published 2 years ago

@okeev/render v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

OKee Render

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