ZRender
View on GitHub
Home
Example
Demo
Animation
Chart
Color Series
Artist
slice
API & Doc
Download
ZIP (2.0.7)
ZIP (Latest)
Link
Ecom-FE
Data Visualization
ECharts
修改记录
2.0.7
(2015-01-29)
Painter support insert custom layer like webgl.
ZRender on bind can pass in context.
Layer iterator, custom layer mouse event.
Add shape bundle.
BrokenLine changed to Polyline, Polygon always closePath.
Group add clearChildren method.
Line text optimize.
Mobile event position fixed.
2.0.6
(2014-12-03)
Clear bug fixed.
Random color exception.
Image refresh in multiple zrender instance.
Mousemove, click event optimize.
2.0.5
(2014-11-07)
New API & DOC are generated by jsDoc.
Alpha supported in Color.getStepColors.
Hover connect supported.
Draggable can be specified as 'horizontal' or 'vertical' only.
Optimize clip, animation, area.
Optimize isCover of the shape heart and droplet.
Non click event when after drag.
2.0.4
(2014-09-23)
Rewrite area
Rewrite isPointInPath
Bezier smooth add constraint
Add PathProxy
ImageShape refresh bug fixed
Svg extension add image, group improvement
2.0.3
(2014-09-05)
Dom user select forbidden
Loading text H/V center
Image remove cache
Polygon dashline bug fix
Layer transform, pan and zoom
dblclick event support
2.0.2
(2014-08-13)
IE8-不显示bug fixed(2.0.1引入)
优化image加载错误处理逻辑
不分层z排序
group加入ignore控制
prototype混用冲突
resize bug fixed
devicePixelRatio限制最小为1
2.0.1
(2014-07-24)
移动设备touch事件修复
event可携带指定this对象
增加 Group 对象,支持元素的层级管理 (类似 svg 或者 html 的 dom 树)
可以通过 bind 和 unbind 方法绑定 shape 和 group 上的事件,支持事件冒泡
Canvas dom 延迟创建,只在带有 shape 的 zlevel 上创建 canvas dom
zrender 下新增 refreshNextFrame 方法标记下一帧需要刷新
2.0.0
(2014-06-30)
theck
this
1.1.2
(2014-04-14)
初始化style读取bug fixed
初始化padding计算bug fixed
1.1.1
(2014-04-02)
保存图片支持背景颜色控制
animation性能优化
折线hover算法优化
开放事件触发接口
render清空已有内容
短距离平滑曲线bug fix
1.1.0
(2014-03-04)
修复sector大于360显示和交互错误
优化渲染,先fill再stroke
元素拖拽敏感度可控
优化渲染,先fill再stroke
motion blur effect
shapeToImage
修复excanvas 文字hover交互延迟
1.0.9
(2014-01-27)
修复sector startAngel>endAngel以及负值下的错误
修复lineWidth为0时依然采用默认线宽执行的stroke
修复excanvas rotation问题
修复excanvas 红色背景
修复优化excanvas 文字样式问题
1.0.8
(2014-01-15)
文本换行支持,\n指定
path负数bug fix
右键拖拽修复
1.0.7
(2013-12-19)
vector优化
mergeFast,modShape优化
line的hover判断加入最小宽度
animation优化每一帧clip的移除
1.0.6
(2013-11-28)
mobile交互优化(拖拽,点击)
image初始化方式更换(ff bug fixed)
动画例子文档更新
1.0.5
(2013-11-05)
animation重构,支持spline插值,优化关键帧动画和数组插值的效率
新增refreshHover
去掉Math三角函数缓存
1.0.4
(2013-09-29)
新增clearAnimation
新增refreshHover
brokenline、polygon增加smooth支持
[bug fix] ellipse升级(修复IE8-)
1.0.3
(2013-09-12)
新增全局mouseout优化
批量删除shape优化
虚线描边优化
动画优化
ring非零环绕优化
[bug fix] 触屏滑动事件
1.0.2
(2013-07-30)
excanvas模块化改造,可以不依赖模块加载器的js插件了
toDataURL图片导出
[bug fix] 直线附加文本修正
[bug fix] path hover判断
1.0.1
(2013-07-04)
【重要】 图形自注册,常用图形自动加载,其他按需加载
path hover判断升级,数学方法,支持IE8-
矩形增加圆角支持
animation使用requrestAnimationFrame
[bug fix] dragging target
[bug fix] vector zero divide
[bug fix] color渐变数组小数堆积
1.0.0
(2013-05-27)
ZRender是一个轻量级的Canvas类库,MVC封装,数据驱动,提供类Dom事件模型
Stroage(M) : shape数据CURD管理
Painter(V) : canvase元素生命周期管理,视图渲染,绘画,更新控制
Handler(C) : 事件交互处理,实现完整dom事件模拟封装
shape : 图形实体,分而治之的图形策略,可定义扩展
tool : 绘画扩展相关实用方法,工具及脚手架
animation : 动画扩展,提供promise式的动画接口和常用缓动函数