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

Function getInputsState

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

Source from the content-addressed store, hash-verified

687 }
688
689 function getInputsState() {
690 var result = {};
691 for (var id in _inputsDict) {
692 if (_inputsDict.hasOwnProperty(id)) {
693 var inputCreated = _inputsDict[id];
694 if (shouldPrevent(id, NANES_PREVENT_INPUTS_STATE) || !inputCreated.getState) {
695 continue;
696 }
697 if (inputCreated.idCanNotPersist) {
698 throw new Error(
699 errMsgPrefix + '[getInputsState]. Please specify an id explicitly or unique text'
700 + ' for input:' + printObject(inputCreated.__inputDefine)
701 );
702 }
703 result[id] = inputCreated.getState();
704 }
705 }
706 return result;
707 }
708
709 function restoreInputsToInitialState() {
710 assert(

Callers

nothing calls this directly

Calls 1

shouldPreventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…