-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (109 loc) · 6.61 KB
/
Copy pathindex.html
File metadata and controls
121 lines (109 loc) · 6.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CAD Simple Viewer Example — With Plugins</title>
<link rel="stylesheet" href="/src/styles/app.css" />
</head>
<body>
<div class="viewer-container" id="viewerPane">
<nav class="demo-nav" aria-label="Demo pages">
<a href="./index.html" class="is-active">With plugins</a>
<a href="./no-plugin.html">Without plugins</a>
</nav>
<div class="upload-screen" id="uploadScreen">
<div class="file-upload-container">
<div class="upload-panel">
<div class="upload-main">
<section class="upload-hero">
<div class="upload-icon" aria-hidden="true">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M11 16V7.85l-2.6 2.6L7 9.05 12 4l5 5.05-1.4 1.4L13 7.85V16h-2zm-5 4q-.825 0-1.412-.587T4 18V6q0-.825.588-1.412T6 4h12q.825 0 1.413.588T20 6v12q0 .825-.587 1.413T18 22H6z"/>
</svg>
</div>
<div class="upload-hero-text">
<h1 class="upload-title">Select CAD File to View</h1>
<p class="upload-subtitle">Import DWG or DXF drawings into the viewer</p>
</div>
</section>
<div class="upload-actions">
<button type="button" class="new-drawing-button" id="newDrawingButton">
New Drawing
</button>
<p class="upload-divider" aria-hidden="true"><span>or</span></p>
<div class="upload-dropzone" id="uploadDropzone" role="button" tabindex="0">
<div class="dropzone-content">
<p class="dropzone-title">
Drop file or <span class="dropzone-link">browse</span>
</p>
<div class="format-tags">
<span class="format-tag">DWG</span>
<span class="format-tag">DXF</span>
</div>
</div>
</div>
</div>
</div>
<section class="settings-section">
<header class="settings-header">
<h2 class="settings-title">Open options</h2>
</header>
<div class="settings-grid">
<div class="setting-block setting-block--full">
<h3 class="setting-label">Initial view</h3>
<div class="pill-segment" data-option-group="openViewMode" role="radiogroup" aria-label="Initial view">
<button type="button" class="pill-option is-active" data-value="auto" role="radio" aria-checked="true" title="Based on access mode">Auto</button>
<button type="button" class="pill-option" data-value="extents" role="radio" aria-checked="false" title="Fit drawing">Extents</button>
<button type="button" class="pill-option" data-value="saved" role="radio" aria-checked="false" title="AutoCAD saved view">Saved</button>
</div>
</div>
<div class="setting-block setting-block--full">
<h3 class="setting-label">Access mode</h3>
<div class="pill-segment" data-option-group="accessMode" role="radiogroup" aria-label="Access mode">
<button type="button" class="pill-option" data-value="0" role="radio" aria-checked="false" title="View only">Read</button>
<button type="button" class="pill-option" data-value="4" role="radio" aria-checked="false" title="View & review">Review</button>
<button type="button" class="pill-option is-active" data-value="8" role="radio" aria-checked="true" title="Full access">Write</button>
</div>
</div>
<div class="setting-block">
<h3 class="setting-label">Text rendering</h3>
<div class="pill-segment" data-option-group="textRendering" role="radiogroup" aria-label="Text rendering">
<button type="button" class="pill-option is-active" data-value="worker" role="radio" aria-checked="true" title="Faster, more memory">Worker</button>
<button type="button" class="pill-option" data-value="main" role="radio" aria-checked="false" title="Slower, less memory">Main thread</button>
</div>
</div>
<div class="setting-block">
<h3 class="setting-label">Progressive</h3>
<div class="pill-segment" data-option-group="progressiveRendering" role="radiogroup" aria-label="Progressive rendering">
<button type="button" class="pill-option" data-value="true" role="radio" aria-checked="false" title="Show geometry while loading">On</button>
<button type="button" class="pill-option is-active" data-value="false" role="radio" aria-checked="true" title="Wait until fully converted">Off</button>
</div>
</div>
<div class="setting-block">
<h3 class="setting-label">Non-plottable</h3>
<div class="pill-segment" data-option-group="noPlotLayers" role="radiogroup" aria-label="Non-plottable layers">
<button type="button" class="pill-option is-active" data-value="false" role="radio" aria-checked="true" title="Web viewer default">Hide</button>
<button type="button" class="pill-option" data-value="true" role="radio" aria-checked="false" title="AutoCAD editor semantics">Show</button>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<button type="button" class="reopen-fab" id="reopenButton" aria-label="Open another file">
<svg width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M3 6.5V15a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 17 15V7.5A1.5 1.5 0 0 0 15.5 6H7.414a1.5 1.5 0 0 1-1.06-.44l-1.414-1.414A1.5 1.5 0 0 0 4.586 4H4.5A1.5 1.5 0 0 0 3 5.5V6.5z"/>
<path d="M8 11v2m0 0v-2m0 2h4m-4 0h4"/>
</svg>
Open
</button>
<section class="viewer-canvas-area" aria-label="Drawing canvas">
<input type="file" id="fileInputElement" accept=".dxf,.dwg" />
<div id="cad-container"></div>
</section>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>