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

Method constructor

docs/app/js/sanddance-app.js:13782–13829  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

13780function _Explorer(props1) {
13781 class __Explorer extends (0, _base.base).react.Component {
13782 constructor(props){
13783 super(props);
13784 this.dialogFocusHandler = {};
13785 this.state = {
13786 calculating: null,
13787 errors: null,
13788 autoCompleteDistinctValues: {},
13789 colorBin: null,
13790 dataContent: null,
13791 dataFile: null,
13792 search: null,
13793 totalStyle: null,
13794 facetStyle: "wrap",
13795 filter: null,
13796 filteredData: null,
13797 specCapabilities: null,
13798 size: {
13799 height: null,
13800 width: null
13801 },
13802 scheme: null,
13803 transform: null,
13804 columns: null,
13805 chart: "grid",
13806 signalValues: null,
13807 hideAxes: false,
13808 hideLegend: false,
13809 sideTabId: (0, _interfaces.SideTabId).ChartType,
13810 dataScopeId: (0, _dataScope.DataScopeId).AllData,
13811 selectedItemIndex: {},
13812 sidebarClosed: false,
13813 sidebarPinned: true,
13814 view: props.initialView || "2d",
13815 snapshots: [],
13816 selectedSnapshotIndex: -1,
13817 tooltipExclusions: [],
13818 positionedColumnMapProps: null,
13819 note: null,
13820 historyIndex: -1,
13821 historyItems: []
13822 };
13823 this.state.selectedItemIndex[(0, _dataScope.DataScopeId).AllData] = 0;
13824 this.state.selectedItemIndex[(0, _dataScope.DataScopeId).FilteredData] = 0;
13825 this.state.selectedItemIndex[(0, _dataScope.DataScopeId).SelectedData] = 0;
13826 this.snapshotThumbWidth = (0, _defaults.snapshotThumbWidth);
13827 this.discardColorContextUpdates = true;
13828 this.updateViewerOptions(Object.assign(Object.assign({}, (0, _sanddanceReact.SandDance).VegaDeckGl.util.clone((0, _sanddanceReact.SandDance).Viewer.defaultViewerOptions)), props.viewerOptions));
13829 }
13830 finalize() {
13831 if (this.viewer) this.viewer.finalize();
13832 }

Callers

nothing calls this directly

Calls 2

updateViewerOptionsMethod · 0.95
cloneMethod · 0.45

Tested by

no test coverage detected