()
| 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) { |
no test coverage detected