MCPcopy Index your code
hub / github.com/apache/echarts / makeSwitchGroup

Function makeSwitchGroup

test/lib/testHelper.js:809–828  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

807 }
808
809 function makeSwitchGroup() {
810 var inputRecorderWrapper = makeInputRecorder();
811 inputRecorderWrapper.setupInputId('__\0testHelper_switchGroup');
812 var switchGroupWithRecordInputs = inputRecorderWrapper.inputRecorder.wrapUserInputListener({
813 listener: dealSwitchGroup,
814 op: 'switchGroup'
815 });
816
817 return function (groupId, opt) {
818 (opt && opt.recordInputs)
819 ? switchGroupWithRecordInputs(groupId, opt)
820 : dealSwitchGroup(groupId);
821 };
822
823 function dealSwitchGroup(groupId) {
824 var groupCreatedToShow = retrieveAndVerifyGroup(groupId);
825 var groupSetCreated = groupCreatedToShow.groupParent;
826 groupSetCreated.switchGroup(groupId);
827 }
828 }
829
830 function showHideGroupInGroupSet(groupCreated, showOrHide) {
831 groupCreated.inputsContainerEl.style.display = showOrHide

Callers 1

initInputsFunction · 0.85

Calls 2

makeInputRecorderFunction · 0.85
dealSwitchGroupFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…