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

Function _Explorer

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

Source from the content-addressed store, hash-verified

155}
156
157function _Explorer(props: Props) {
158 class __Explorer extends base.react.Component<Props, State> {
159 private layoutDivUnpinned: HTMLElement;
160 private layoutDivPinned: HTMLElement;
161 private getColorContext: (oldInsight: SandDance.specs.Insight, newInsight: SandDance.specs.Insight) => SandDance.types.ColorContext;
162 private historicFilterChange: string;
163 private rebaseFilter: boolean;
164 private ignoreSelectionChange: boolean;
165 private snapshotEditor: SnapshotEditor_Class;
166 private scrollSnapshotTimer: number;
167 private newViewStateTarget: boolean;
168
169 public dialogFocusHandler: { focus?: () => void; };
170 public viewer: SandDance.Viewer;
171 public viewerOptions: Partial<SandDance.types.ViewerOptions>;
172 public discardColorContextUpdates: boolean;
173 public prefs: Prefs;
174 public div: HTMLElement;
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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected