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

Method render

packages/powerbi/src/app.ts:154–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 render() {
155 const className = util.classList(
156 'sanddance-app',
157 this.state.chromeless && 'chromeless',
158 this.state.loaded && 'loaded',
159 );
160 const explorerProps: ExplorerProps = {
161 hideSidebarControls: true,
162 logoClickUrl: 'https://microsoft.github.io/SandDance/',
163 bingSearchDisabled: true,
164 searchORDisabled: true,
165 theme: this.state.darkTheme && 'dark-theme',
166 viewerOptions: this.viewerOptions,
167 initialView: '2d',
168 mounted: explorer => {
169 // explorer.snapshotThumbWidth = 240;
170 this.explorer = explorer;
171 this.props.mounted(this);
172 },
173 onSignalChanged: (signalName, signalValue) => {
174 this.props.onViewChange({ signalChange: true });
175 this.signalChanged = true;
176 },
177 onSnapshotsChanged: this.props.onSnapshotsChanged,
178 onTooltipExclusionsChanged: tooltipExclusions => this.props.onViewChange({ tooltipExclusions }),
179 onView: () => {
180 this.explorer.viewer.presenter.getElement(SandDance.VegaDeckGl.PresenterElement.gl).oncontextmenu = (e) => {
181 this.props.onContextMenu(e);
182 return false;
183 };
184 this.props.onViewChange({ signalChange: this.signalChanged });
185 this.signalChanged = false;
186 },
187 onError: this.props.onError,
188 systemInfoChildren: [
189 React.createElement('li', null, `${language.powerBiCustomVisual}: ${version}`),
190 ],
191 };
192 return React.createElement('div', { className },
193 React.createElement(Explorer, explorerProps),
194 React.createElement('div', { className: 'sanddance-init' },
195 React.createElement('div', null,
196 React.createElement(Logo),
197 ),
198 !capabilities.webgl && React.createElement('div', { className: 'sanddance-webgl-required' },
199 language.webglDisabled,
200 ),
201 ),
202 this.state.fetching && React.createElement('div', { className: 'sanddance-fetch' },
203 `${language.fetching} ${this.state.rowCount ? `(${this.state.rowCount} ${language.fetched})` : ''}`,
204 ),
205 );
206 }
207}

Callers

nothing calls this directly

Calls 2

mountedMethod · 0.80
getElementMethod · 0.45

Tested by

no test coverage detected