DIR:/home/drsekaran/public_html/admin/vendors/echarts/src/ |
Current File : /home/drsekaran/public_html/admin/vendors/echarts/src/ExtensionAPI.js |
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; }); |