1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- var zrUtil = require("zrender/lib/core/util");
- var echartsAPIList = ['getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL', 'getModel', 'getOption', 'getViewOfComponentModel', 'getViewOfSeriesModel'];
- function ExtensionAPI(chartInstance) {
- zrUtil.each(echartsAPIList, function (name) {
- this[name] = zrUtil.bind(chartInstance[name], chartInstance);
- }, this);
- }
- var _default = ExtensionAPI;
- module.exports = _default;
|