()
| 11200 | function _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); |
no test coverage detected