MCPcopy Index your code
hub / github.com/microsoft/SandDance / setCurrentAxis

Function setCurrentAxis

docs/app/js/sanddance-app.js:8756–8782  ·  view source on GitHub ↗
(options, stage, groupType)

Source from the content-addressed store, hash-verified

8754 });
8755};
8756function setCurrentAxis(options, stage, groupType) {
8757 let axes;
8758 let role;
8759 switch(groupType){
8760 case (0, _interfaces.GroupType).xAxis:
8761 axes = stage.axes.x;
8762 role = "x";
8763 break;
8764 case (0, _interfaces.GroupType).yAxis:
8765 axes = stage.axes.y;
8766 role = "y";
8767 break;
8768 case (0, _interfaces.GroupType).zAxis:
8769 axes = stage.axes.z;
8770 role = "z";
8771 break;
8772 default:
8773 return;
8774 }
8775 options.currAxis = {
8776 domain: null,
8777 tickText: [],
8778 ticks: [],
8779 role
8780 };
8781 axes.push(options.currAxis);
8782}
8783const markStagers = {
8784 group,
8785 legend: (0, _legendDefault.default),

Callers 1

groupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected