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

Method layout

packages/sanddance-react/src/viewer.tsx:40–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 private lastData: object[];
39
40 private layout() {
41 this.lastData = this.props.data;
42 this.viewer.render(
43 this.props.insight,
44 this.props.data,
45 this.props.renderOptions,
46 ).then(renderResult => {
47 //TODO: show errors if any
48 //console.log('viewer render');
49 this.props.onView && this.props.onView(renderResult);
50 }).catch(e => {
51 //console.log('viewer error');
52 this.props.onError && this.props.onError(e);
53 });
54 }
55
56 private view() {
57 if (this.props.insight && this.props.data) {

Callers 2

viewMethod · 0.95
SandDanceVue.tsFile · 0.45

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected