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

Method constructor

packages/sanddance-explorer/src/explorer.tsx:177–226  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

175 public snapshotThumbWidth: number;
176
177 constructor(props: Props) {
178 super(props);
179 this.dialogFocusHandler = {};
180 this.state = {
181 calculating: null,
182 errors: null,
183 autoCompleteDistinctValues: {},
184 colorBin: null,
185 dataContent: null,
186 dataFile: null,
187 search: null,
188 totalStyle: null,
189 facetStyle: 'wrap',
190 filter: null,
191 filteredData: null,
192 specCapabilities: null,
193 size: {
194 height: null,
195 width: null,
196 },
197 scheme: null,
198 transform: null,
199 columns: null,
200 chart: 'grid',
201 signalValues: null,
202 hideAxes: false,
203 hideLegend: false,
204 sideTabId: SideTabId.ChartType,
205 dataScopeId: DataScopeId.AllData,
206 selectedItemIndex: {},
207 sidebarClosed: false,
208 sidebarPinned: true,
209 view: props.initialView || '2d',
210 snapshots: [],
211 selectedSnapshotIndex: -1,
212 tooltipExclusions: [],
213 positionedColumnMapProps: null,
214 note: null,
215 historyIndex: -1,
216 historyItems: [],
217 };
218
219 this.state.selectedItemIndex[DataScopeId.AllData] = 0;
220 this.state.selectedItemIndex[DataScopeId.FilteredData] = 0;
221 this.state.selectedItemIndex[DataScopeId.SelectedData] = 0;
222
223 this.snapshotThumbWidth = snapshotThumbWidth;
224 this.discardColorContextUpdates = true;
225 this.updateViewerOptions({ ...SandDance.VegaDeckGl.util.clone(SandDance.Viewer.defaultViewerOptions), ...props.viewerOptions });
226 }
227
228 public finalize() {
229 if (this.viewer) this.viewer.finalize();

Callers

nothing calls this directly

Calls 2

updateViewerOptionsMethod · 0.95
cloneMethod · 0.45

Tested by

no test coverage detected