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

Method configForSignalCapture

docs/app/js/sanddance-app.js:9657–9678  ·  view source on GitHub ↗
(presenterConfig)

Source from the content-addressed store, hash-verified

9655 return false;
9656 }
9657 configForSignalCapture(presenterConfig) {
9658 const colorContext = {
9659 colorMap: null,
9660 legend: null,
9661 legendElement: null
9662 };
9663 //now be ready to capture color changing signals
9664 presenterConfig.preStage = (stage, deckProps)=>{
9665 if (this._shouldSaveColorContext()) //save off the colors from Vega layout
9666 colorContext.colorMap = (0, _colorCubes.colorMapFromCubes)(stage.cubeData);
9667 this.preStage(stage, deckProps);
9668 };
9669 presenterConfig.onPresent = ()=>{
9670 if (this._shouldSaveColorContext()) {
9671 (0, _colorCubes.populateColorContext)(colorContext, this.presenter);
9672 this.changeColorContexts([
9673 colorContext
9674 ]);
9675 this._dataScope.deselect();
9676 }
9677 };
9678 }
9679 _render(insight, data, options, forceNewCharacterSet) {
9680 return __awaiter(this, void 0, void 0, function*() {
9681 if (this._tooltip) {

Callers 1

renderNewLayoutMethod · 0.95

Calls 3

preStageMethod · 0.95
changeColorContextsMethod · 0.95
deselectMethod · 0.45

Tested by

no test coverage detected