MCPcopy
hub / github.com/apache/echarts / dealInitEachInput

Function dealInitEachInput

test/lib/testHelper.js:750–769  ·  view source on GitHub ↗
(inputsDefineList, inputsContainer)

Source from the content-addressed store, hash-verified

748 }
749
750 function dealInitEachInput(inputsDefineList, inputsContainer) {
751 var idList = [];
752 for (var i = 0; i < inputsDefineList.length; i++) {
753 var inputDefine = inputsDefineList[i];
754 var inputRecorderWrapper = makeInputRecorder();
755 var inputCreated = createInputByDefine(
756 inputDefine,
757 inputRecorderWrapper.inputRecorder
758 );
759 if (!inputCreated) {
760 continue;
761 }
762 for (var j = 0; j < inputCreated.elList.length; j++) {
763 inputsContainer.appendChild(inputCreated.elList[j]);
764 }
765 var id = storeToInputDict(inputDefine, inputCreated, inputRecorderWrapper.setupInputId);
766 idList.push(id);
767 }
768 return idList;
769 }
770
771 function storeToInputDict(inputDefine, inputCreated, inputRecorderSetupInputId) {
772 var id = retrieveId(inputDefine, 'id');

Callers 2

initInputsFunction · 0.85
createGroupSetInputFunction · 0.85

Calls 3

makeInputRecorderFunction · 0.85
createInputByDefineFunction · 0.85
storeToInputDictFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…