()
| 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); |
| 11223 | if (this.props.onMount) { |
| 11224 | if (this.props.onMount(this.viewer.presenter.getElement((0, _sanddance.VegaDeckGl).PresenterElement.gl))) this.view(); |
| 11225 | } else this.view(); |
| 11226 | } |
| 11227 | componentDidUpdate() { |
| 11228 | this.viewer.options = (0, _sanddance.VegaDeckGl).util.deepMerge(this.viewer.options, this.props.viewerOptions); |
| 11229 | this.view(); |
nothing calls this directly
no test coverage detected