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

Function switchGroup

test/lib/testHelper.js:1485–1496  ·  view source on GitHub ↗
(groupId)

Source from the content-addressed store, hash-verified

1483 return groupSetCreated;
1484
1485 function switchGroup(groupId) {
1486 var groupCreatedToShow = retrieveAndVerifyGroup(groupId);
1487 if (groupCreatedToShow.groupIndex === groupCreatedToShow.groupParent.currentGroupIndex) {
1488 return;
1489 }
1490 var groupCreatedToHide = groupCreatedToShow.groupParent.children[
1491 groupCreatedToShow.groupParent.currentGroupIndex
1492 ];
1493 showHideGroupInGroupSet(groupCreatedToHide, false);
1494 showHideGroupInGroupSet(groupCreatedToShow, true);
1495 groupCreatedToShow.groupParent.currentGroupIndex = groupCreatedToShow.groupIndex;
1496 }
1497
1498 function getGroupSetInputState() {
1499 var state = {currentGroupIndex: groupSetCreated.currentGroupIndex};

Callers 1

setGroupSetInputStateFunction · 0.85

Calls 2

retrieveAndVerifyGroupFunction · 0.85
showHideGroupInGroupSetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…