MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getActiveExampleConfig

Function getActiveExampleConfig

examples/js/editor.js:21–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20//获取示例页面的配置信息
21function getActiveExampleConfig(){
22 var activeId = getActiveId();
23 var config = exampleConfig;
24 for(var key in config){
25 const item = config[key];
26 for(var contentKey in item.content){
27 const contentItem = item.content[contentKey];
28 for(var i=0; i< contentItem.content.length; i++ ){
29 var arrItem = contentItem.content[i];
30 if(activeId === arrItem.fileName){
31 return arrItem;
32 }
33 }
34 }
35 }
36 return {}
37}
38
39function initSideBar() {
40 var config = exampleConfig;

Callers 1

initEditorFunction · 0.85

Calls 1

getActiveIdFunction · 0.85

Tested by

no test coverage detected