MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / createExtensionAPI

Function createExtensionAPI

libs/echarts/echarts.simple.js:28921–28938  ·  view source on GitHub ↗
(ecInstance)

Source from the content-addressed store, hash-verified

28919}
28920
28921function createExtensionAPI(ecInstance) {
28922 var coordSysMgr = ecInstance._coordSysMgr;
28923 return extend(new ExtensionAPI(ecInstance), {
28924 // Inject methods
28925 getCoordinateSystems: bind(
28926 coordSysMgr.getCoordinateSystems, coordSysMgr
28927 ),
28928 getComponentByElement: function (el) {
28929 while (el) {
28930 var modelInfo = el.__ecComponentInfo;
28931 if (modelInfo != null) {
28932 return ecInstance._model.getComponent(modelInfo.mainType, modelInfo.index);
28933 }
28934 el = el.parent;
28935 }
28936 }
28937 });
28938}
28939
28940
28941/**

Callers 1

EChartsFunction · 0.70

Calls 2

extendFunction · 0.70
bindFunction · 0.70

Tested by

no test coverage detected