Skip to content
Snippets Groups Projects
index.html 3.13 KiB
Newer Older
  • Learn to ignore specific revisions
  • Quentin Bolsee's avatar
    Quentin Bolsee committed
    <!-- Quentin Bolsee and Jake Read, MIT Center for Bits and Atoms, 2023 -->
    <!DOCTYPE html>
    <html>
    <head>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<link rel="icon" type="image/x-icon" href="img/logo.png">
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
     	<link rel="stylesheet" type="text/css" href="src/style.css">
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<meta charset="utf-8">
    	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    	<meta http-equiv="Pragma" content="no-cache" />
    	<meta http-equiv="Expires" content="-1" />
    </head>
    <body style="background-color: rgb(255, 255, 255);">
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<h1>gerber2img</h1>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<p>Drag and drop one or multiple Gerber files; lock origin and dimensions to preserve alignment between successive uploads.</p>
    
    	<p>For through-holes and vias, make sure to export drill file (.drl) as metric.</p>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<div id="dropZone"><p id="dropText"></p></div>
    	<input type="file" id="fileInput" multiple hidden></input>
    	<canvas id="canvas" hidden></canvas>
    	<div class="container">
    		<div class="panel">
    			<h2>Viewer</h2>
    			<div class="preview">
    				<svg id="previewSVG"></svg>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    			</div>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    			<div>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    				<!-- <button class="interface" id="loadButton">Load file(s)...</button></input> -->
    				<button class="interface" id="downloadRenderButton">Download render</button>
    				<!-- <button class="interface" id="downloadlayersButton">Download layers</button> -->
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    			</div>
    		</div>
    		<div class="panel">
    			<h2>Settings</h2>
    			<div class="settings">
    				<h3>Rendering</h3>
    
    				<div>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<input type="checkbox" id="settingsFill" checked="checked">
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<label for="settingsFill">Fill edge cut</label>
    				</div>
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    				<div>
    					<input type="checkbox" id="settingsBW">
    					<label for="settingsBW">Black and white</label>
    				</div>
    
    				<div>
    					<input type="checkbox" id="settingsTransparent">
    					<label for="settingsTransparent">Transparent background</label>
    				</div>
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    				<div>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<input type="checkbox" id="settingsAsSVG">
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<label for="settingsAsSVG">Download as SVG</label>
    				</div>
    
    				<h3>Resolution [DPI]</h3>
    
    				<div>
    					<input id="settingsDPI" step=1 min=1 type="number" value="1000">
    				</div>
    
    				<h3>Origin [mm]</h3>
    				<div>
    					<label for="settingsOrigX">x:</label>
    					<input id="settingsOrigX" step=0.1 type="number">
    					<label for="settingsOrigY">y:</label>
    					<input id="settingsOrigY" step=0.1 type="number">
    					<button class="lock" id="settingsLockOrig">🔓</button>
    				</div>
    
    				<h3>Dimensions [mm]</h3>
    				<div>
    					<label for="settingsDimX">x:</label>
    					<input id="settingsDimX" step=0.1 type="number">
    					<label for="settingsDimY">y:</label>
    					<input id="settingsDimY" step=0.1 type="number">
    					<button class="lock" id="settingsLockDim">🔓</button>
    				</div>
    
    				<h3>Margins [mm]</h3>
    				<div>
    					<label for="settingsMarginX">x:</label>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<input id="settingsMarginX" step=0.1 min=0 type="number" value=2>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<label for="settingsMarginY">y:</label>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    					<input id="settingsMarginY" step=0.1 min=0 type="number" value=2>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    				</div>
    			</div>
    		</div>
    	</div>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<script type="module" src="/src/interface.js"></script>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    	<footer>
    		<img src="img/logo.png" height="24" style="margin-left:4px; margin-right:4px;"></img>Quentin Bolsée and Jake Read, MIT Center for Bits and Atoms, 2023
    	</footer>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    </body>
    </html>