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

Method layout

docs/app/js/sanddance-app.js:11202–11212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11200function _SandDanceReact(props) {
11201 class __SandDanceReact extends (0, _base.base).react.Component {
11202 layout() {
11203 this.lastData = this.props.data;
11204 this.viewer.render(this.props.insight, this.props.data, this.props.renderOptions).then((renderResult)=>{
11205 //TODO: show errors if any
11206 //console.log('viewer render');
11207 this.props.onView && this.props.onView(renderResult);
11208 }).catch((e)=>{
11209 //console.log('viewer error');
11210 this.props.onError && this.props.onError(e);
11211 });
11212 }
11213 view() {
11214 if (this.props.insight && this.props.data) {
11215 const c = compareProps(this.viewer, this.props.insight);

Callers 4

viewMethod · 0.95
transformFunction · 0.45
sanddance.jsFile · 0.45
transformFunction · 0.45

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected