()
| 145 | } |
| 146 | |
| 147 | render() { |
| 148 | return ( |
| 149 | <SandDanceExplorer.Explorer |
| 150 | logoClickUrl="https://microsoft.github.io/SandDance/" |
| 151 | theme={this.state.darkTheme && 'dark-theme'} |
| 152 | viewerOptions={this.viewerOptions} |
| 153 | initialView="2d" |
| 154 | mounted={e => this.mounted(e)} |
| 155 | compactUI={this.state.compactUI} |
| 156 | additionalSettings={[ |
| 157 | { |
| 158 | groupLabel: strings.labelPreferences, |
| 159 | children: ( |
| 160 | <FluentUIReact.Toggle |
| 161 | label={strings.labelCompactUI} |
| 162 | title={strings.labelCompactUIDescription} |
| 163 | checked={this.state.compactUI} |
| 164 | onChange={(e, checked?) => { |
| 165 | this.vscode.postMessage({ |
| 166 | command: 'setCompactUI', |
| 167 | compactUI: checked, |
| 168 | }); |
| 169 | this.setState({ compactUI: checked }); |
| 170 | }} |
| 171 | /> |
| 172 | ), |
| 173 | }, |
| 174 | ]} |
| 175 | /> |
| 176 | ); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | const app = React.createElement(App); |
no test coverage detected