mirror of https://github.com/ColorlibHQ/gentelella
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
506 B
19 lines
506 B
9 years ago
|
define(function(require) {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
var zrUtil = require('zrender/core/util');
|
||
|
|
||
|
var echartsAPIList = [
|
||
|
'getDom', 'getZr', 'getWidth', 'getHeight', 'dispatchAction',
|
||
|
'on', 'off', 'getDataURL', 'getConnectedDataURL', 'getModel', 'getOption'
|
||
|
];
|
||
|
|
||
|
function ExtensionAPI(chartInstance) {
|
||
|
zrUtil.each(echartsAPIList, function (name) {
|
||
|
this[name] = zrUtil.bind(chartInstance[name], chartInstance);
|
||
|
}, this);
|
||
|
}
|
||
|
|
||
|
return ExtensionAPI;
|
||
|
});
|