提交 58230ea1 编写于 作者: L lang

Add clear and getOption methods

上级 cf726b87
......@@ -200,6 +200,13 @@ define(function (require) {
return this._model;
};
/**
* @return {Object}
*/
echartsProto.getOption = function () {
return zrUtil.clone(this._model.option);
};
/**
* @return {number}
*/
......@@ -844,11 +851,18 @@ define(function (require) {
};
/**
* @return {boolean]
* @return {boolean}
*/
echartsProto.isDisposed = function () {
return this._disposed;
};
/**
* Clear
*/
echartsProto.clear = function () {
this.setOption({}, true);
};
/**
* Dispose instance
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册