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

Method componentDidMount

docs/app/js/sanddance-app.js:11220–11226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

viewMethod · 0.95
getElementMethod · 0.45

Tested by

no test coverage detected