MCPcopy Create free account
hub / github.com/microsoft/SandDance / viewerMounted

Method viewerMounted

packages/sanddance-explorer/src/explorer.tsx:872–877  ·  view source on GitHub ↗
(glDiv: HTMLElement)

Source from the content-addressed store, hash-verified

870 }
871
872 private viewerMounted(glDiv: HTMLElement) {
873 this.setState({
874 size: this.getLayoutDivSize(this.state.sidebarPinned, this.state.sidebarClosed),
875 signalValues: this.state.signalValues, //keep initialized signalValues
876 });
877 }
878
879 private getLayoutDivSize(pinned: boolean, closed: boolean) {
880 const div = pinned && !closed ? this.layoutDivPinned : this.layoutDivUnpinned;

Callers 1

renderMethod · 0.95

Calls 1

getLayoutDivSizeMethod · 0.95

Tested by

no test coverage detected