()
| 11211 | }); |
| 11212 | } |
| 11213 | view() { |
| 11214 | if (this.props.insight && this.props.data) { |
| 11215 | const c = compareProps(this.viewer, this.props.insight); |
| 11216 | const sameDataRef = this.props.data === this.lastData; |
| 11217 | if (!c.compare || !sameDataRef) this.layout(); |
| 11218 | } |
| 11219 | } |
| 11220 | componentDidMount() { |
| 11221 | const element = (0, _base.base).reactDOM.findDOMNode(this.viewerDiv); |
| 11222 | this.viewer = new (0, _sanddance.Viewer)(element, this.props.viewerOptions); |
no test coverage detected