MCPcopy
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:9134–9143  ·  view source on GitHub ↗
(runtime, config = {})

Source from the content-addressed store, hash-verified

9132 //dynamic superclass, since we don't know have vega.View in the declaration phase
9133 class ViewGlInternal extends (0, _base.base).vega.View {
9134 constructor(runtime, config = {}){
9135 super(runtime, config);
9136 this.config = config;
9137 this.presenter = config.presenter;
9138 config.presenterConfig = config.presenterConfig || {};
9139 config.presenterConfig.redraw = ()=>{
9140 this._redraw = true; //use Vega View private member _redraw
9141 this.run();
9142 };
9143 }
9144 renderer(...args) {
9145 if (args && args.length) {
9146 const renderer = args[0];

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected