提交 68f5db81 编写于 作者: K kener

toolbox refresh功能改名为restore

上级 29809d42
......@@ -364,7 +364,7 @@ myChart.setOption(option);
<tr>
<td>{void} on</td>
<td>{string} eventName, <br/>{Function} eventListener</td>
<td>事件绑定,支持事件有:<br/>REFRESH,CLICK,HOVER,<br/>DATA_CHANGED,DATA_ZOOM,LEGEND_SELECTED,MAGIC_TYPE_CHANGED </td>
<td>事件绑定,支持事件有:<br/>REFRESH,RESTORE,CLICK,HOVER,<br/>DATA_CHANGED,MAGIC_TYPE_CHANGED,DATA_VIEW_CHANGED,<br/>DATA_ZOOM,DATA_RANGE,LEGEND_SELECTED,MAP_SELECTED</td>
</tr>
<tr>
<td>{void} un</td>
......@@ -718,6 +718,7 @@ myChart.setOption(option);
<pre>
feature : {
mark : true, // 辅助线标志
dataZoom : true, // 框选区域缩放,自动与存在的dataZoom控件同步
dataView : true, // 数据视图
magicType:['line', 'bar'], // 图表类型切换,当前仅支持直角系下的折线图、柱状图转换
restore : true // 还原,复位原始图表
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : true,
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
xAxis : [
......
......@@ -81,7 +81,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -83,7 +83,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -77,7 +77,7 @@ option = {
mark : true,
dataView : true,
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : true,
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly:false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -88,7 +88,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
dataZoom : {
......
......@@ -88,7 +88,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
dataZoom : {
......
......@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : false,
......@@ -135,7 +135,7 @@ setTimeout(function(){
textFont:'normal 20px 微软雅黑'
}
});
_ZR.refresh();
_ZR.restore();
}, 2000);
</textarea>
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -77,7 +77,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -78,7 +78,7 @@ myChart.showLoading({
});
clearTimeout(loadingTicket);
loadingTicket = setTimeout(function(){
refreshing = false;
restoreing = false;
myChart.setSeries([
{
name:'蒸发量',
......@@ -153,7 +153,7 @@ loadingTicket = setTimeout(function(){
function focusGraphic() {
domCode.className = 'span4 ani';
domGraphic.className = 'span8 ani';
refresh()
restore()
}
var editor = CodeMirror.fromTextArea(
......@@ -166,7 +166,7 @@ loadingTicket = setTimeout(function(){
editor.on('change', function(){needRefresh = true;});
var effectIndex = -1;
function refresh(isBtnRefresh){
function restore(isBtnRefresh){
if (isBtnRefresh) {
needRefresh = true;
focusGraphic();
......@@ -216,7 +216,7 @@ loadingTicket = setTimeout(function(){
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
legend: {
......@@ -236,7 +236,7 @@ loadingTicket = setTimeout(function(){
]},
true
);
refresh();
restore();
}
)
</script>
......
......@@ -96,7 +96,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
series : [
......
......@@ -77,7 +77,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -78,7 +78,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -90,7 +90,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
series : [
......
......@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : false,
......
......@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -103,7 +103,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
refresh : true
restore : true
}
},
calculable : true,
......
......@@ -152,8 +152,8 @@ define(function (require) {
}
itemShape.onclick = _onDataView;
break;
case 'refresh':
itemShape.onclick = _onRefresh;
case 'restore':
itemShape.onclick = _onRestore;
break;
default:
if (_iconList[i].match('Chart')) {
......@@ -419,7 +419,7 @@ define(function (require) {
return true;
}
function _onRefresh(){
function _onRestore(){
_resetMark();
messageCenter.dispatch(ecConfig.EVENT.RESTORE);
return true;
......
......@@ -85,7 +85,7 @@ define(
mark : _iconMark,
markUndo : _iconMarkUndo,
markClear : _iconMarkClear,
refresh : _iconRefresh,
restore : _iconRestore,
lineChart : _iconLineChart,
barChart : _iconBarChart,
dataView : _iconDataView,
......@@ -160,7 +160,7 @@ define(
ctx.lineTo(style.x + style.width, style.y + 5 * dy);
}
function _iconRefresh(ctx, style) {
function _iconRestore(ctx, style) {
var dx = style.width / 16;
var dy = style.height / 16;
var r = style.width / 2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册