MCPcopy Create free account
hub / github.com/microsoft/SandDance / getState

Function getState

docs/app/js/sanddance-app.js:142373–142379  ·  view source on GitHub ↗

* Get the current view state, consisting of signal values and/or data sets. * @param {object} [options] - Options flags indicating which state to export. * If unspecified, all signals and data sets will be exported. * @param {function(string, Operator):boolean} [options.signals] - Optional *

(options)

Source from the content-addressed store, hash-verified

142371 * state should recursively include state from group mark sub-contexts.
142372 * @return {object} - An object containing the exported state values.
142373 */ function getState(options) {
142374 return this._runtime.getState(options || {
142375 data: dataTest,
142376 signals: signalTest,
142377 recurse: true
142378 });
142379}
142380function dataTest(name, data3) {
142381 return data3.modified && (0, _vegaUtil.isArray)(data3.input.value) && name.indexOf("_:vega:_");
142382}

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected