@antv/g-plugin-canvas-renderer
A G plugin of renderer implementation with Canvas2D API
Last updated 2 months ago by zhanba .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @antv/g-plugin-canvas-renderer 
SYNC missed versions from official npm registry.

@antv/g-plugin-canvas-renderer

使用 CanvasRenderingContext2D 绘制各类图形。

包含了两个插件:

  1. CanvasRendererPlugin 实现了以下 hook:

    1. beginFrame 保存上下文,如果开启了脏矩形渲染,创建脏矩形对应的 clip rect 并擦除
    2. renderFrame 绘制各个图形,如果开启了脏矩形渲染,仅在该区域内重绘
    3. endFrame 恢复上下文
  2. LoadImagePlugin 负责加载图片,实现了以下 hook:

    1. mounted Image 图形首次进入画布,异步加载包含的图片
    2. attributeChanged 如果 Image 图形的图片地址发生改变,重新加载图片

Current Tags

  • 1.0.0-alpha.4                                ...           latest (2 months ago)
  • 1.0.0-alpha.21                                ...           next (9 days ago)

22 Versions

  • 1.0.0-alpha.21                                ...           9 days ago
  • 1.0.0-alpha.20                                ...           14 days ago
  • 1.0.0-alpha.19                                ...           14 days ago
  • 1.0.0-alpha.18                                ...           15 days ago
  • 1.0.0-alpha.17                                ...           16 days ago
  • 1.0.0-alpha.16                                ...           17 days ago
  • 1.0.0-alpha.15                                ...           19 days ago
  • 1.0.0-alpha.14                                ...           22 days ago
  • 1.0.0-alpha.13                                ...           22 days ago
  • 1.0.0-alpha.12                                ...           a month ago
  • 1.0.0-alpha.11                                ...           a month ago
  • 1.0.0-alpha.10                                ...           a month ago
  • 1.0.0-alpha.9                                ...           a month ago
  • 1.0.0-alpha.8                                ...           2 months ago
  • 1.0.0-alpha.7                                ...           2 months ago
  • 1.0.0-alpha.6                                ...           2 months ago
  • 1.0.0-alpha.5                                ...           2 months ago
  • 1.0.0-alpha.4                                ...           2 months ago
  • 1.0.0-alpha.3                                ...           2 months ago
  • 1.0.0-alpha.2                                ...           3 months ago
  • 1.0.0-alpha.1                                ...           3 months ago
  • 1.0.0-alpha.0                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 3,430
Last Day 0
Last Week 1,195
Last Month 3,358
Dependencies (5)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |