in Tools/WinMLDashboard/src/view/edit/netron/Netron.tsx [100:158]
public render() {
const inlineStyle = {
color:'lightgray',
fontSize:'50px',
fontStyle: 'oblique',
top: '600px',
width: '400px'
}
return (
// Instead of hardcoding the page, a div with dangerouslySetInnerHTML could be used to include Netron's content
<div className='netron-root'>
<div id='welcome' className='background' style={{display: 'block'}}>
<div className='center logo'>
<img className='logo absolute' src='winml_icon.ico' />
<img id='spinner' className='spinner logo absolute' src='spinner.svg' style={{display: 'none'}} />
</div>
<button id='open-file-button' className='center' disabled={true}> Open Model...</button>
<button id='openFileButton' className='center' style={{top: '200px', width: '100px'}} onClick={onOpen}>Open Model</button>
<p className='center' style={inlineStyle}>WinML Dashboard</p>
<input type="file" id="openFileButton" style={{display: 'none'}} multiple={false} accept=".onnx, .pb, .meta, .tflite, .keras, .h5, .json, .mlmodel, .caffemodel" />
<div style={{fontWeight: 'normal', color: '#e6e6e6', userSelect: 'none'}}>.</div>
<div style={{fontWeight: 600, color: '#e6e6e6', userSelect: 'none'}}>.</div>
<div style={{fontWeight: 'bold', color: '#e6e6e6', userSelect: 'none'}}>.</div>
</div>
<svg id='graph' className='graph' preserveAspectRatio='xMidYMid meet' width='100%' height='100%' />
<div id='toolbar' className='toolbar' style={{position: 'absolute', top: '10px', left: '10px', display: 'none',}}>
<button id='model-properties-button' className='xxx' title='Model Properties'/>
<DefaultButton id='EditButton' text={'Edit/View'} onClick={this.toggleEditAndView}/>
<button id='zoom-in-button' className='icon' title='Zoom In'>
<svg viewBox="0 0 100 100" width="24" height="24">
<circle cx="50" cy="50" r="35" strokeWidth="8" stroke="#fff" />
<line x1="50" y1="38" x2="50" y2="62" strokeWidth="8" strokeLinecap="round" stroke="#fff" />
<line x1="38" y1="50" x2="62" y2="50" strokeWidth="8" strokeLinecap="round" stroke="#fff" />
<line x1="78" y1="78" x2="82" y2="82" strokeWidth="12" strokeLinecap="square" stroke="#fff" />
<circle cx="50" cy="50" r="35" strokeWidth="4" />
<line x1="50" y1="38" x2="50" y2="62" strokeWidth="4" strokeLinecap="round" />
<line x1="38" y1="50" x2="62" y2="50" strokeWidth="4" strokeLinecap="round" />
<line x1="78" y1="78" x2="82" y2="82" strokeWidth="8" strokeLinecap="square" />
</svg>
</button>
<button id='zoom-out-button' className='icon' title='Zoom Out'>
<svg viewBox="0 0 100 100" width="24" height="24">
<circle cx="50" cy="50" r="35" strokeWidth="8" stroke="#fff" />
<line x1="38" y1="50" x2="62" y2="50" strokeWidth="8" strokeLinecap="round" stroke="#fff" />
<line x1="78" y1="78" x2="82" y2="82" strokeWidth="12" strokeLinecap="square" stroke="#fff" />
<circle cx="50" cy="50" r="35" strokeWidth="4" />
<line x1="38" y1="50" x2="62" y2="50" strokeWidth="4" strokeLinecap="round" />
<line x1="78" y1="78" x2="82" y2="82" strokeWidth="8" strokeLinecap="square" />
</svg>
</button>
</div>
<div id='sidebar' className='sidebar'>
<h1 id='sidebar-title' className='sidebar-title' />
<a href='javascript:void(0)' id='sidebar-closebutton' className='sidebar-closebutton'>×</a>
<div id='sidebar-content' className='sidebar-content' />
</div>
</div>
);
}