@playcanvas/supersplat-viewer 1.31.2 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -171
- package/dist/index.d.ts +28 -18
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/viewer.css +761 -0
- package/dist/viewer.d.ts +274 -0
- package/dist/viewer.js +11471 -0
- package/dist/viewer.js.map +1 -0
- package/docs/api.md +356 -0
- package/package.json +20 -6
- package/public/index.css +221 -211
- package/public/index.html +40 -618
- package/public/index.js +2697 -1610
- package/public/index.js.map +1 -1
package/public/index.html
CHANGED
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
<base href="" />
|
|
11
11
|
<link rel="stylesheet" href="./index.css" />
|
|
12
12
|
|
|
13
|
+
<!--
|
|
14
|
+
The viewer fills whatever contains it. In the standalone document that is the page,
|
|
15
|
+
so make the page fill the viewport. This lives here rather than in index.css because
|
|
16
|
+
a host page linking the stylesheet must not have its own body restyled.
|
|
17
|
+
-->
|
|
18
|
+
<style>
|
|
19
|
+
html,
|
|
20
|
+
body {
|
|
21
|
+
height: 100%;
|
|
22
|
+
margin: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
|
|
13
27
|
<!--
|
|
14
28
|
Single injection seam. `renderViewerHtml` replaces the contents of this block to
|
|
15
29
|
supply asset urls and inline settings, so anything generating a page around the
|
|
@@ -52,14 +66,25 @@
|
|
|
52
66
|
const budgetParam = url.searchParams.get('budget');
|
|
53
67
|
const budget = budgetParam !== null ? Number(budgetParam) : undefined;
|
|
54
68
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
// The engine's octree parser fetches lod-meta.json itself and ignores a prefetched
|
|
70
|
+
// response, so starting one here would download the metadata twice. Every other splat
|
|
71
|
+
// parser consumes it, so they keep the head start. `isPrefetchable` in src/index.ts
|
|
72
|
+
// applies the same rule for embedders that do not pass `contents`.
|
|
73
|
+
const contentName = contentFilename ?? new URL(contentUrl, location.href).pathname.split('/').pop() ?? '';
|
|
74
|
+
const prefetchContent = contentName.toLowerCase() !== 'lod-meta.json';
|
|
75
|
+
|
|
76
|
+
// createViewer's options, minus the container and the settings. The poster image and
|
|
77
|
+
// the content fetch start here, before the module bundle has arrived.
|
|
78
|
+
const sseOptions = {
|
|
59
79
|
contentUrl,
|
|
60
80
|
contentFilename,
|
|
61
|
-
|
|
62
|
-
|
|
81
|
+
posterUrl,
|
|
82
|
+
skyboxUrl,
|
|
83
|
+
collisionUrl,
|
|
84
|
+
poster: posterUrl && createImage(posterUrl),
|
|
85
|
+
contents: prefetchContent ? fetch(contentUrl) : undefined,
|
|
86
|
+
ui: !url.searchParams.has('noui'),
|
|
87
|
+
reticle: url.searchParams.has('reticle'),
|
|
63
88
|
noanim: url.searchParams.has('noanim'),
|
|
64
89
|
nofx: url.searchParams.has('nofx'),
|
|
65
90
|
hpr: url.searchParams.has('hpr')
|
|
@@ -73,630 +98,27 @@
|
|
|
73
98
|
heatmap: url.searchParams.has('heatmap'),
|
|
74
99
|
fullload: url.searchParams.has('fullload'),
|
|
75
100
|
debug: url.searchParams.has('debug'),
|
|
76
|
-
lang: url.searchParams.get('lang')
|
|
101
|
+
lang: url.searchParams.get('lang'),
|
|
102
|
+
// the standalone document is the one place the window.* hooks belong
|
|
103
|
+
exposeGlobals: true
|
|
77
104
|
};
|
|
78
105
|
|
|
79
106
|
window.sse = {
|
|
80
|
-
|
|
107
|
+
options: sseOptions,
|
|
81
108
|
settings: bootstrap.settings ?? fetch(settingsUrl).then((response) => response.json())
|
|
82
109
|
};
|
|
83
110
|
</script>
|
|
84
111
|
</head>
|
|
85
112
|
<body>
|
|
86
|
-
<canvas id="application-canvas"></canvas>
|
|
87
|
-
|
|
88
|
-
<div id="ui">
|
|
89
|
-
<div id="poster"></div>
|
|
90
|
-
|
|
91
|
-
<!-- SuperSplat Branding -->
|
|
92
|
-
<a id="viewerBranding" class="hidden" target="_blank" rel="noopener noreferrer">
|
|
93
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="64 64 384 384" role="img" aria-label="SuperSplat">
|
|
94
|
-
<path
|
|
95
|
-
fill="#F26722"
|
|
96
|
-
d="M129.83,217c9.75,0,17.64-7.9,17.64-17.64s-7.9-17.64-17.64-17.64-17.64,7.9-17.64,17.64,7.9,17.64,17.64,17.64Z"
|
|
97
|
-
/>
|
|
98
|
-
<path
|
|
99
|
-
fill="#F26722"
|
|
100
|
-
d="M388.74,253.94c-12.46,0-22.57,10.11-22.57,22.57s10.11,22.57,22.57,22.57,22.57-10.11,22.57-22.57-10.11-22.57-22.57-22.57h0Z"
|
|
101
|
-
/>
|
|
102
|
-
<path
|
|
103
|
-
fill="#F26722"
|
|
104
|
-
d="M345.26,161.1h.02c.37-.05.65-.22.97-.33,16.78-2.32,29.75-16.57,29.75-33.99,0-19.04-15.43-34.46-34.46-34.46s-34.46,15.43-34.46,34.46c0,4.29.88,8.35,2.32,12.14.04.12-.01.25.04.38,10.55,29.18-22.33,23.62-39.07,20.74-.49-.09-.88-.07-1.32-.11-4.27-.56-8.59-.97-13.03-.97-53.93,0-97.64,43.71-97.64,97.64,0,9.84,1.48,19.32,4.2,28.28.04.1,0,.17.05.27,8.97,30.15-14.83,25.49-25.52,25.69-1.04-.13-2.09-.32-3.18-.32-13.51,0-24.45,10.94-24.45,24.45s10.94,24.45,24.45,24.45c11.69,0,21.44-8.22,23.85-19.19h.02c6.31-26.57,25.9-18.02,31.15-12.67.2.2.4.26.59.42,17.44,16.25,40.75,26.26,66.47,26.26.67,0,1.34-.09,2.01-.1.66.01,1.31.04,2.04.04,9.7-.04,17.82,10.91,4.94,29.68h.13c-4.42,6.01-7.1,13.36-7.1,21.41,0,20.09,16.29,36.39,36.39,36.39s36.39-16.29,36.39-36.39c0-15.4-9.61-28.49-23.12-33.81-.32-.15-.61-.29-.98-.45-12.28-4.94-25.43-17.69-6.89-27.1l-.04-.1c31.93-16.06,53.88-49.02,53.88-87.2,0-21.15-6.8-40.68-18.23-56.66-.13-.23-.23-.47-.44-.74-23.15-31.67-2.37-36.07,10.3-38.09h-.01Z"
|
|
105
|
-
/>
|
|
106
|
-
<path
|
|
107
|
-
fill="#fff"
|
|
108
|
-
d="M230.79,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z"
|
|
109
|
-
/>
|
|
110
|
-
<path
|
|
111
|
-
fill="#fff"
|
|
112
|
-
d="M309.78,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z"
|
|
113
|
-
/>
|
|
114
|
-
</svg>
|
|
115
|
-
<span>SuperSplat</span>
|
|
116
|
-
</a>
|
|
117
|
-
|
|
118
|
-
<!-- Loading Indicator -->
|
|
119
|
-
<div id="loadingWrap">
|
|
120
|
-
<div id="loadingText"></div>
|
|
121
|
-
<div id="loadingBar"></div>
|
|
122
|
-
</div>
|
|
123
|
-
|
|
124
|
-
<div id="controlsWrap" class="hidden">
|
|
125
|
-
<!-- Timeline Panel -->
|
|
126
|
-
<div id="timelineContainer" class="hidden">
|
|
127
|
-
<div id="line"></div>
|
|
128
|
-
<div id="handle"></div>
|
|
129
|
-
<div id="time" class="hidden">0:00</div>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<!-- Buttons Panel -->
|
|
133
|
-
<div id="buttonsContainer">
|
|
134
|
-
<div class="buttonGroup">
|
|
135
|
-
<button id="play" class="controlButton hidden">
|
|
136
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
137
|
-
<g class="stroke"><use href="#playIcon" /></g>
|
|
138
|
-
<g class="fill"><use href="#playIcon" /></g>
|
|
139
|
-
</svg>
|
|
140
|
-
</button>
|
|
141
|
-
<button id="pause" class="controlButton hidden">
|
|
142
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px">
|
|
143
|
-
<g class="stroke"><use href="#pauseIcon" /></g>
|
|
144
|
-
<g class="fill"><use href="#pauseIcon" /></g>
|
|
145
|
-
</svg>
|
|
146
|
-
</button>
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
<div class="spacer"></div>
|
|
150
|
-
|
|
151
|
-
<div class="buttonGroup">
|
|
152
|
-
<button id="orbitCamera" class="controlButton toggle left">
|
|
153
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
154
|
-
<g class="stroke"><use href="#orbitIcon" /></g>
|
|
155
|
-
<g class="fill"><use href="#orbitIcon" /></g>
|
|
156
|
-
</svg>
|
|
157
|
-
</button>
|
|
158
|
-
<button id="flyCamera" class="controlButton toggle right">
|
|
159
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
160
|
-
<g class="stroke"><use href="#flyIcon" /></g>
|
|
161
|
-
<g class="fill"><use href="#flyIcon" /></g>
|
|
162
|
-
</svg>
|
|
163
|
-
</button>
|
|
164
|
-
<button id="fpsCamera" class="controlButton toggle right hidden">
|
|
165
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
166
|
-
<g class="stroke"><use href="#walkIcon" /></g>
|
|
167
|
-
<g class="fill"><use href="#walkIcon" /></g>
|
|
168
|
-
</svg>
|
|
169
|
-
</button>
|
|
170
|
-
</div>
|
|
171
|
-
|
|
172
|
-
<div class="buttonGroup">
|
|
173
|
-
<button id="arMode" class="controlButton hidden">
|
|
174
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
175
|
-
<g class="stroke"><use href="#arIcon" /></g>
|
|
176
|
-
<g class="fill"><use href="#arIcon" /></g>
|
|
177
|
-
</svg>
|
|
178
|
-
</button>
|
|
179
|
-
<button id="vrMode" class="controlButton hidden">
|
|
180
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
181
|
-
<g class="stroke"><use href="#vrIcon" /></g>
|
|
182
|
-
<g class="fill"><use href="#vrIcon" /></g>
|
|
183
|
-
</svg>
|
|
184
|
-
</button>
|
|
185
|
-
|
|
186
|
-
<button id="showCollision" class="controlButton hidden">
|
|
187
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
188
|
-
<g class="stroke"><use href="#voxelIcon" /></g>
|
|
189
|
-
<g class="fill"><use href="#voxelIcon" /></g>
|
|
190
|
-
</svg>
|
|
191
|
-
</button>
|
|
192
|
-
|
|
193
|
-
<button id="info" class="controlButton">
|
|
194
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
195
|
-
<g class="stroke"><use href="#infoIcon" /></g>
|
|
196
|
-
<g class="fill"><use href="#infoIcon" /></g>
|
|
197
|
-
</svg>
|
|
198
|
-
</button>
|
|
199
|
-
<button id="settings" class="controlButton">
|
|
200
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
201
|
-
<g class="stroke"><use href="#settingsIcon" /></g>
|
|
202
|
-
<g class="fill"><use href="#settingsIcon" /></g>
|
|
203
|
-
</svg>
|
|
204
|
-
</button>
|
|
205
|
-
|
|
206
|
-
<button id="enterFullscreen" class="controlButton">
|
|
207
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
208
|
-
<g class="stroke"><use href="#enterFullscreenIcon" /></g>
|
|
209
|
-
<g class="fill"><use href="#enterFullscreenIcon" /></g>
|
|
210
|
-
</svg>
|
|
211
|
-
</button>
|
|
212
|
-
<button id="exitFullscreen" class="controlButton hidden">
|
|
213
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
|
214
|
-
<g class="stroke"><use href="#exitFullscreenIcon" /></g>
|
|
215
|
-
<g class="fill"><use href="#exitFullscreenIcon" /></g>
|
|
216
|
-
</svg>
|
|
217
|
-
</button>
|
|
218
|
-
</div>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
|
|
222
|
-
<div id="walkHint" class="walkHint hidden"></div>
|
|
223
|
-
|
|
224
|
-
<!-- Settings Panel -->
|
|
225
|
-
<div id="settingsPanel" class="hidden">
|
|
226
|
-
<div id="performanceModeRow" class="settingsRow">
|
|
227
|
-
<div id="performanceModeOption" data-i18n="settings.performance-mode">Performance Mode</div>
|
|
228
|
-
<div id="performanceModeCheck" class="toggleSwitch">
|
|
229
|
-
<div class="toggleTrack"><div class="toggleThumb"></div></div>
|
|
230
|
-
</div>
|
|
231
|
-
</div>
|
|
232
|
-
<div id="gamingControlsDivider" class="divider"></div>
|
|
233
|
-
<div id="gamingControlsRow" class="settingsRow">
|
|
234
|
-
<div id="gamingControlsOption" data-i18n="settings.gaming-controls">Gaming Controls</div>
|
|
235
|
-
<div id="gamingControlsCheck" class="toggleSwitch">
|
|
236
|
-
<div class="toggleTrack"><div class="toggleThumb"></div></div>
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
<div id="annotationsRow" class="settingsRow">
|
|
240
|
-
<div id="annotationsOption" data-i18n="settings.show-annotations">Show Annotations</div>
|
|
241
|
-
<div id="annotationsCheck" class="toggleSwitch active">
|
|
242
|
-
<div class="toggleTrack"><div class="toggleThumb"></div></div>
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
<div class="divider"></div>
|
|
246
|
-
<div class="settingsRow">
|
|
247
|
-
<button id="frame" data-i18n="settings.frame">Frame</button>
|
|
248
|
-
<button id="reset" data-i18n="settings.reset">Reset</button>
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
|
|
252
|
-
<!-- Info Panel -->
|
|
253
|
-
<div id="infoPanel" class="hidden">
|
|
254
|
-
<div id="infoPanelContent" onpointerdown="event.stopPropagation()" onwheel="event.stopPropagation()">
|
|
255
|
-
<a id="viewerTitle" target="_blank" rel="noopener noreferrer">
|
|
256
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32">
|
|
257
|
-
<g class="stroke"><use href="#supersplatIcon" /></g>
|
|
258
|
-
<g class="fill"><use href="#supersplatIcon" /></g>
|
|
259
|
-
</svg>
|
|
260
|
-
<span class="title-name">SuperSplat Viewer</span>
|
|
261
|
-
<span class="title-version">v<span id="appVersionLabel"></span></span>
|
|
262
|
-
</a>
|
|
263
|
-
<div id="infoPanels">
|
|
264
|
-
<div id="desktopInfoPanel">
|
|
265
|
-
<div class="control-spacer"></div>
|
|
266
|
-
<h1 data-i18n="help.section.orbit">Orbit Mode</h1>
|
|
267
|
-
<div class="control-item">
|
|
268
|
-
<span class="control-action" data-i18n="help.action.orbit">Orbit</span>
|
|
269
|
-
<span class="control-key" data-i18n="help.key.left-click-drag">Left Click + Drag</span>
|
|
270
|
-
</div>
|
|
271
|
-
<div class="control-item">
|
|
272
|
-
<span class="control-action" data-i18n="help.action.pan">Pan</span>
|
|
273
|
-
<span class="control-key" data-i18n="help.key.right-click-drag"
|
|
274
|
-
>Right Click + Drag</span
|
|
275
|
-
>
|
|
276
|
-
</div>
|
|
277
|
-
<div class="control-item">
|
|
278
|
-
<span class="control-action" data-i18n="help.action.zoom">Zoom</span>
|
|
279
|
-
<span class="control-key" data-i18n="help.key.mouse-wheel">Mouse Wheel</span>
|
|
280
|
-
</div>
|
|
281
|
-
<div class="control-item">
|
|
282
|
-
<span class="control-action" data-i18n="help.action.set-focus">Set Focus</span>
|
|
283
|
-
<span class="control-key" data-i18n="help.key.left-click">Left Click</span>
|
|
284
|
-
</div>
|
|
285
|
-
<div class="control-item">
|
|
286
|
-
<span class="control-action" data-i18n="help.action.fly-to-point">Fly to Point</span>
|
|
287
|
-
<span class="control-key" data-i18n="help.key.double-click">Double-click</span>
|
|
288
|
-
</div>
|
|
289
|
-
<div class="control-item">
|
|
290
|
-
<span class="control-action" data-i18n="help.action.frame-scene">Frame Scene</span>
|
|
291
|
-
<span class="control-key">F</span>
|
|
292
|
-
</div>
|
|
293
|
-
<div class="control-item">
|
|
294
|
-
<span class="control-action" data-i18n="help.action.reset-camera">Reset Camera</span>
|
|
295
|
-
<span class="control-key">R</span>
|
|
296
|
-
</div>
|
|
297
|
-
<div class="control-spacer"></div>
|
|
298
|
-
<h1 data-i18n="help.section.fly">Fly Mode</h1>
|
|
299
|
-
<div id="desktopFlyClickToFly">
|
|
300
|
-
<div class="control-item">
|
|
301
|
-
<span class="control-action" data-i18n="help.action.fly-to">Fly To</span>
|
|
302
|
-
<span class="control-key" data-i18n="help.key.left-click">Left Click</span>
|
|
303
|
-
</div>
|
|
304
|
-
<div class="control-item">
|
|
305
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
306
|
-
<span class="control-key" data-i18n="help.key.left-click-drag"
|
|
307
|
-
>Left Click + Drag</span
|
|
308
|
-
>
|
|
309
|
-
</div>
|
|
310
|
-
<div class="control-item">
|
|
311
|
-
<span class="control-action" data-i18n="help.action.pan">Pan</span>
|
|
312
|
-
<span class="control-key" data-i18n="help.key.right-click-drag"
|
|
313
|
-
>Right Click + Drag</span
|
|
314
|
-
>
|
|
315
|
-
</div>
|
|
316
|
-
<div class="control-item">
|
|
317
|
-
<span class="control-action" data-i18n="help.action.move">Move</span>
|
|
318
|
-
<span class="control-key">W,S,A,D</span>
|
|
319
|
-
</div>
|
|
320
|
-
<div class="control-item">
|
|
321
|
-
<span class="control-action" data-i18n="help.action.run-slow">Run / Slow</span>
|
|
322
|
-
<span class="control-key" data-i18n="help.key.shift-ctrl">Shift / Ctrl</span>
|
|
323
|
-
</div>
|
|
324
|
-
<div class="control-item">
|
|
325
|
-
<span class="control-action" data-i18n="help.action.focus-point">Focus Point</span>
|
|
326
|
-
<span class="control-key" data-i18n="help.key.double-click">Double-click</span>
|
|
327
|
-
</div>
|
|
328
|
-
</div>
|
|
329
|
-
<div id="desktopFlyGamingControls" class="hidden">
|
|
330
|
-
<div class="control-item">
|
|
331
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
332
|
-
<span class="control-key" data-i18n="help.key.mouse">Mouse</span>
|
|
333
|
-
</div>
|
|
334
|
-
<div class="control-item">
|
|
335
|
-
<span class="control-action" data-i18n="help.action.move">Move</span>
|
|
336
|
-
<span class="control-key">W,S,A,D</span>
|
|
337
|
-
</div>
|
|
338
|
-
<div class="control-item">
|
|
339
|
-
<span class="control-action" data-i18n="help.action.vertical">Vertical</span>
|
|
340
|
-
<span class="control-key">Q,E</span>
|
|
341
|
-
</div>
|
|
342
|
-
<div class="control-item">
|
|
343
|
-
<span class="control-action" data-i18n="help.action.run-slow">Run / Slow</span>
|
|
344
|
-
<span class="control-key" data-i18n="help.key.shift-ctrl">Shift / Ctrl</span>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
<div class="control-spacer"></div>
|
|
348
|
-
<h1 data-i18n="help.section.walk">Walk Mode</h1>
|
|
349
|
-
<div id="desktopClickToWalk">
|
|
350
|
-
<div class="control-item">
|
|
351
|
-
<span class="control-action" data-i18n="help.action.walk-to">Walk To</span>
|
|
352
|
-
<span class="control-key" data-i18n="help.key.left-click">Left Click</span>
|
|
353
|
-
</div>
|
|
354
|
-
<div class="control-item">
|
|
355
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
356
|
-
<span class="control-key" data-i18n="help.key.left-click-drag"
|
|
357
|
-
>Left Click + Drag</span
|
|
358
|
-
>
|
|
359
|
-
</div>
|
|
360
|
-
<div class="control-item">
|
|
361
|
-
<span class="control-action" data-i18n="help.action.run-slow">Run / Slow</span>
|
|
362
|
-
<span class="control-key" data-i18n="help.key.shift-ctrl">Shift / Ctrl</span>
|
|
363
|
-
</div>
|
|
364
|
-
<div class="control-item">
|
|
365
|
-
<span class="control-action" data-i18n="help.action.fly-to-point"
|
|
366
|
-
>Fly to Point</span
|
|
367
|
-
>
|
|
368
|
-
<span class="control-key" data-i18n="help.key.double-click">Double-click</span>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
371
|
-
<div id="desktopGamingControls">
|
|
372
|
-
<div class="control-item">
|
|
373
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
374
|
-
<span class="control-key" data-i18n="help.key.mouse">Mouse</span>
|
|
375
|
-
</div>
|
|
376
|
-
<div class="control-item">
|
|
377
|
-
<span class="control-action" data-i18n="help.action.move">Move</span>
|
|
378
|
-
<span class="control-key">W,S,A,D</span>
|
|
379
|
-
</div>
|
|
380
|
-
<div class="control-item">
|
|
381
|
-
<span class="control-action" data-i18n="help.action.jump">Jump</span>
|
|
382
|
-
<span class="control-key" data-i18n="help.key.space">Space</span>
|
|
383
|
-
</div>
|
|
384
|
-
<div class="control-item">
|
|
385
|
-
<span class="control-action" data-i18n="help.action.run-slow">Run / Slow</span>
|
|
386
|
-
<span class="control-key" data-i18n="help.key.shift-ctrl">Shift / Ctrl</span>
|
|
387
|
-
</div>
|
|
388
|
-
</div>
|
|
389
|
-
<div class="control-spacer"></div>
|
|
390
|
-
<h1 data-i18n="help.section.modes">Mode Switching</h1>
|
|
391
|
-
<div class="control-item">
|
|
392
|
-
<span class="control-action" data-i18n="help.action.orbit-mode">Orbit Mode</span>
|
|
393
|
-
<span class="control-key">1</span>
|
|
394
|
-
</div>
|
|
395
|
-
<div class="control-item">
|
|
396
|
-
<span class="control-action" data-i18n="help.action.fly-mode">Fly Mode</span>
|
|
397
|
-
<span class="control-key">2</span>
|
|
398
|
-
</div>
|
|
399
|
-
<div class="control-item">
|
|
400
|
-
<span class="control-action" data-i18n="help.action.toggle-walk">Toggle Walk</span>
|
|
401
|
-
<span class="control-key">3</span>
|
|
402
|
-
</div>
|
|
403
|
-
<div class="control-item">
|
|
404
|
-
<span class="control-action" data-i18n="help.action.toggle-gaming"
|
|
405
|
-
>Toggle Gaming Controls</span
|
|
406
|
-
>
|
|
407
|
-
<span class="control-key">G</span>
|
|
408
|
-
</div>
|
|
409
|
-
<div id="desktopShowCollisionHelp" class="control-item hidden">
|
|
410
|
-
<span class="control-action" data-i18n="help.action.show-collision"
|
|
411
|
-
>Show Collision</span
|
|
412
|
-
>
|
|
413
|
-
<span class="control-key">V</span>
|
|
414
|
-
</div>
|
|
415
|
-
<div class="control-item">
|
|
416
|
-
<span class="control-action" data-i18n="help.action.play-pause">Play / Pause</span>
|
|
417
|
-
<span class="control-key" data-i18n="help.key.space">Space</span>
|
|
418
|
-
</div>
|
|
419
|
-
<div class="control-item">
|
|
420
|
-
<span class="control-action" data-i18n="help.action.toggle-help">Toggle Help</span>
|
|
421
|
-
<span class="control-key">H</span>
|
|
422
|
-
</div>
|
|
423
|
-
<div class="control-item">
|
|
424
|
-
<span class="control-action" data-i18n="help.action.exit-cancel">Exit / Cancel</span>
|
|
425
|
-
<span class="control-key" data-i18n="help.key.esc">Esc</span>
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
<div id="touchInfoPanel" class="hidden">
|
|
429
|
-
<div class="control-spacer"></div>
|
|
430
|
-
<h1 data-i18n="help.section.orbit">Orbit Mode</h1>
|
|
431
|
-
<div class="control-item">
|
|
432
|
-
<span class="control-action" data-i18n="help.action.orbit">Orbit</span>
|
|
433
|
-
<span class="control-key" data-i18n="help.key.one-finger-drag">One Finger Drag</span>
|
|
434
|
-
</div>
|
|
435
|
-
<div class="control-item">
|
|
436
|
-
<span class="control-action" data-i18n="help.action.pan">Pan</span>
|
|
437
|
-
<span class="control-key" data-i18n="help.key.two-finger-drag">Two Finger Drag</span>
|
|
438
|
-
</div>
|
|
439
|
-
<div class="control-item">
|
|
440
|
-
<span class="control-action" data-i18n="help.action.zoom">Zoom</span>
|
|
441
|
-
<span class="control-key" data-i18n="help.key.pinch">Pinch</span>
|
|
442
|
-
</div>
|
|
443
|
-
<div class="control-item">
|
|
444
|
-
<span class="control-action" data-i18n="help.action.set-focus">Set Focus</span>
|
|
445
|
-
<span class="control-key" data-i18n="help.key.tap">Tap</span>
|
|
446
|
-
</div>
|
|
447
|
-
<div class="control-item">
|
|
448
|
-
<span class="control-action" data-i18n="help.action.fly-to-point">Fly to Point</span>
|
|
449
|
-
<span class="control-key" data-i18n="help.key.double-tap">Double-tap</span>
|
|
450
|
-
</div>
|
|
451
|
-
<div class="control-spacer"></div>
|
|
452
|
-
<h1 data-i18n="help.section.fly">Fly Mode</h1>
|
|
453
|
-
<div id="touchFlyClickToWalk">
|
|
454
|
-
<div class="control-item">
|
|
455
|
-
<span class="control-action" data-i18n="help.action.fly-to">Fly To</span>
|
|
456
|
-
<span class="control-key" data-i18n="help.key.tap">Tap</span>
|
|
457
|
-
</div>
|
|
458
|
-
<div class="control-item">
|
|
459
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
460
|
-
<span class="control-key" data-i18n="help.key.touch-drag">Touch + Drag</span>
|
|
461
|
-
</div>
|
|
462
|
-
<div class="control-item">
|
|
463
|
-
<span class="control-action" data-i18n="help.action.move">Move</span>
|
|
464
|
-
<span class="control-key" data-i18n="help.key.pinch-two-finger"
|
|
465
|
-
>Pinch / Two Finger Drag</span
|
|
466
|
-
>
|
|
467
|
-
</div>
|
|
468
|
-
<div class="control-item">
|
|
469
|
-
<span class="control-action" data-i18n="help.action.focus-point">Focus Point</span>
|
|
470
|
-
<span class="control-key" data-i18n="help.key.double-tap">Double-tap</span>
|
|
471
|
-
</div>
|
|
472
|
-
</div>
|
|
473
|
-
<div id="touchFlyGamingControls" class="hidden">
|
|
474
|
-
<div class="control-item">
|
|
475
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
476
|
-
<span class="control-key" data-i18n="help.key.touch-drag">Touch + Drag</span>
|
|
477
|
-
</div>
|
|
478
|
-
<div class="control-item">
|
|
479
|
-
<span class="control-action" data-i18n="help.action.move">Move</span>
|
|
480
|
-
<span class="control-key" data-i18n="help.key.joystick">Joystick</span>
|
|
481
|
-
</div>
|
|
482
|
-
</div>
|
|
483
|
-
<div class="control-spacer"></div>
|
|
484
|
-
<h1 data-i18n="help.section.walk">Walk Mode</h1>
|
|
485
|
-
<div id="touchClickToWalk">
|
|
486
|
-
<div class="control-item">
|
|
487
|
-
<span class="control-action" data-i18n="help.action.walk-to">Walk To</span>
|
|
488
|
-
<span class="control-key" data-i18n="help.key.tap">Tap</span>
|
|
489
|
-
</div>
|
|
490
|
-
<div class="control-item">
|
|
491
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
492
|
-
<span class="control-key" data-i18n="help.key.touch-drag">Touch + Drag</span>
|
|
493
|
-
</div>
|
|
494
|
-
<div class="control-item">
|
|
495
|
-
<span class="control-action" data-i18n="help.action.fly-to-point"
|
|
496
|
-
>Fly to Point</span
|
|
497
|
-
>
|
|
498
|
-
<span class="control-key" data-i18n="help.key.double-tap">Double-tap</span>
|
|
499
|
-
</div>
|
|
500
|
-
</div>
|
|
501
|
-
<div id="touchGamingControls" class="hidden">
|
|
502
|
-
<div class="control-item">
|
|
503
|
-
<span class="control-action" data-i18n="help.action.look-around">Look Around</span>
|
|
504
|
-
<span class="control-key" data-i18n="help.key.touch-drag">Touch + Drag</span>
|
|
505
|
-
</div>
|
|
506
|
-
<div class="control-item">
|
|
507
|
-
<span class="control-action" data-i18n="help.action.move">Move</span>
|
|
508
|
-
<span class="control-key" data-i18n="help.key.joystick">Joystick</span>
|
|
509
|
-
</div>
|
|
510
|
-
<div class="control-item">
|
|
511
|
-
<span class="control-action" data-i18n="help.action.jump">Jump</span>
|
|
512
|
-
<span class="control-key" data-i18n="help.key.tap">Tap</span>
|
|
513
|
-
</div>
|
|
514
|
-
</div>
|
|
515
|
-
</div>
|
|
516
|
-
</div>
|
|
517
|
-
<div id="tabs">
|
|
518
|
-
<div id="desktopTab" class="tab active" data-i18n="help.tab.desktop">Desktop</div>
|
|
519
|
-
<div id="touchTab" class="tab" data-i18n="help.tab.touch">Touch</div>
|
|
520
|
-
</div>
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
523
|
-
|
|
524
|
-
<!-- Touch Joystick -->
|
|
525
|
-
<div id="joystickBase" class="hidden">
|
|
526
|
-
<div id="joystick"></div>
|
|
527
|
-
</div>
|
|
528
|
-
|
|
529
|
-
<!-- Annotation Navigator -->
|
|
530
|
-
<div id="annotationNav" class="hidden">
|
|
531
|
-
<button id="annotationPrev">
|
|
532
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
533
|
-
<g class="stroke"><use href="#chevronLeftIcon" /></g>
|
|
534
|
-
<g class="fill"><use href="#chevronLeftIcon" /></g>
|
|
535
|
-
</svg>
|
|
536
|
-
</button>
|
|
537
|
-
<div id="annotationInfo">
|
|
538
|
-
<span id="annotationNavTitle"></span>
|
|
539
|
-
</div>
|
|
540
|
-
<button id="annotationNext">
|
|
541
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
542
|
-
<g class="stroke"><use href="#chevronRightIcon" /></g>
|
|
543
|
-
<g class="fill"><use href="#chevronRightIcon" /></g>
|
|
544
|
-
</svg>
|
|
545
|
-
</button>
|
|
546
|
-
</div>
|
|
547
|
-
|
|
548
|
-
<!-- Tooltip -->
|
|
549
|
-
<div id="tooltip"></div>
|
|
550
|
-
|
|
551
|
-
<!-- XR WebGL-required modal -->
|
|
552
|
-
<div id="xrModal" class="hidden" onwheel="event.stopPropagation()">
|
|
553
|
-
<div id="xrModalContent" onpointerdown="event.stopPropagation()">
|
|
554
|
-
<h2 data-i18n="xr-modal.title">WebGL Required</h2>
|
|
555
|
-
<p data-i18n="xr-modal.message">
|
|
556
|
-
AR and VR are not supported on the WebGPU renderer. Pressing OK will reload the viewer with
|
|
557
|
-
WebGL.
|
|
558
|
-
</p>
|
|
559
|
-
<div id="xrModalButtons">
|
|
560
|
-
<button id="xrModalCancel" data-i18n="xr-modal.cancel">Cancel</button>
|
|
561
|
-
<button id="xrModalOk" data-i18n="xr-modal.ok">OK</button>
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
</div>
|
|
566
|
-
|
|
567
|
-
<!-- SVG Icons -->
|
|
568
|
-
<svg>
|
|
569
|
-
<symbol id="playIcon" viewBox="-2 0 24 24">
|
|
570
|
-
<path
|
|
571
|
-
d="M1 1.98725C1 1.20022 1.87789 0.730421 2.5332 1.16694L14.5605 9.18061C15.146 9.57066 15.146 10.4302 14.5605 10.8203L2.5332 18.833C1.87788 19.2695 1 18.7997 1 18.0126V1.98725Z"
|
|
572
|
-
transform="translate(2 2)"
|
|
573
|
-
/>
|
|
574
|
-
</symbol>
|
|
575
|
-
<symbol id="pauseIcon" viewBox="0 0 20 20">
|
|
576
|
-
<path d="M5 16V4h3v12H5zm7-12h3v12h-3V4z" />
|
|
577
|
-
</symbol>
|
|
578
|
-
<symbol id="orbitIcon" viewBox="-2 -2 20 20">
|
|
579
|
-
<path
|
|
580
|
-
fill-rule="evenodd"
|
|
581
|
-
clip-rule="evenodd"
|
|
582
|
-
d="M4.44728 1.7561C6.14077 0.763957 8.53159 1.57857 10.4375 3.58357C12.75 3.02099 14.4585 3.40647 14.6491 4.73071C14.7831 5.66256 14.139 6.87994 12.9942 8.09008C13.7427 10.7586 13.2413 13.2551 11.5527 14.2444C9.85867 15.2369 7.46679 14.4208 5.56056 12.4143C3.34914 12.9521 1.691 12.6254 1.38412 11.4371L1.35092 11.2698C1.21678 10.3379 1.85972 9.11931 3.00457 7.90909C2.28693 5.34963 2.72037 2.94871 4.24741 1.88435L4.44728 1.7561ZM11.9889 9.03995C11.002 9.88136 9.79998 10.6808 8.47918 11.3303L8.13673 11.4937C7.70533 11.6942 7.28148 11.8681 6.8698 12.0172C7.32387 12.4287 7.79226 12.7587 8.25326 12.9983C9.39237 13.5903 10.3231 13.574 10.946 13.2092C11.5745 12.841 12.0613 12.0184 12.1263 10.7086C12.1518 10.1934 12.1065 9.62999 11.9889 9.03995ZM3.46225 9.20206C3.15128 9.5802 2.91825 9.93412 2.76238 10.2489C2.54363 10.6909 2.51958 10.967 2.53842 11.0985C2.54902 11.1721 2.56635 11.2146 2.67058 11.2763C2.81832 11.3636 3.12484 11.4626 3.6478 11.467C3.95641 11.4696 4.3074 11.4373 4.69402 11.3707C4.45655 11.0439 4.23084 10.6971 4.02215 10.3303C3.81017 9.95774 3.62416 9.58004 3.46225 9.20206ZM10.0358 4.9423C9.42018 5.13611 8.75205 5.40184 8.05014 5.74698C6.61265 6.45384 5.33887 7.34291 4.37175 8.24373C4.55213 8.73829 4.78227 9.2401 5.06511 9.73722C5.33995 10.2202 5.64271 10.6614 5.96355 11.0575C6.5793 10.8637 7.24782 10.5987 7.94988 10.2535C9.38732 9.54667 10.6605 8.65688 11.6276 7.7561C11.4473 7.26173 11.2176 6.76019 10.9349 6.26326C10.66 5.78001 10.3568 5.33855 10.0358 4.9423ZM7.74675 3.00219C6.60759 2.41015 5.67698 2.42644 5.05405 2.79126C4.42548 3.15953 3.93866 3.98199 3.87371 5.29191C3.84822 5.80668 3.89236 6.36967 4.00978 6.95922C4.91091 6.19088 5.9923 5.45862 7.17905 4.84269L7.52084 4.67016C8.07056 4.39986 8.6096 4.17089 9.12957 3.98266C8.67568 3.57138 8.20757 3.24172 7.74675 3.00219ZM12.3522 4.53344C12.0433 4.53086 11.6918 4.56177 11.3047 4.6285C11.5425 4.95566 11.7689 5.3029 11.9779 5.67016C12.1897 6.04255 12.3753 6.41999 12.5371 6.79777C12.8481 6.41965 13.0818 6.06635 13.2376 5.75154C13.4564 5.30973 13.4804 5.03352 13.4616 4.90193C13.451 4.82831 13.4337 4.7859 13.3294 4.7242C13.1817 4.63684 12.8753 4.53787 12.3522 4.53344Z"
|
|
583
|
-
/>
|
|
584
|
-
</symbol>
|
|
585
|
-
<symbol id="flyIcon" viewBox="-2 -2 20 20">
|
|
586
|
-
<path
|
|
587
|
-
fill-rule="evenodd"
|
|
588
|
-
clip-rule="evenodd"
|
|
589
|
-
d="M12 1.33337C13.4727 1.33337 14.6666 2.52728 14.6666 4.00004C14.6666 5.4728 13.4727 6.66671 12 6.66671C11.4931 6.66671 11.0194 6.52491 10.6159 6.27934L10.2721 6.62374C10.0345 6.86142 9.90102 7.18411 9.90102 7.52022V8.47986C9.90102 8.81597 10.0345 9.13866 10.2721 9.37634L10.6159 9.72009C11.0193 9.47463 11.4932 9.33337 12 9.33337C13.4727 9.33337 14.6666 10.5273 14.6666 12C14.6666 13.4728 13.4727 14.6667 12 14.6667C10.5272 14.6667 9.33331 13.4728 9.33331 12C9.33331 11.4932 9.47457 11.0194 9.72003 10.6159L9.37628 10.2722C9.1386 10.0345 8.81591 9.90108 8.4798 9.90108H7.52016C7.18405 9.90108 6.86136 10.0345 6.62368 10.2722L6.27928 10.6159C6.52485 11.0195 6.66665 11.4931 6.66665 12C6.66665 13.4728 5.47274 14.6667 3.99998 14.6667C2.52722 14.6667 1.33331 13.4728 1.33331 12C1.33331 10.5273 2.52722 9.33337 3.99998 9.33337C4.50658 9.33337 4.98008 9.47481 5.38344 9.72009L5.72784 9.37634C5.9655 9.13866 6.09894 8.81597 6.09894 8.47986V7.52022C6.09894 7.18411 5.9655 6.86142 5.72784 6.62374L5.38344 6.27934C4.98001 6.52473 4.5067 6.66671 3.99998 6.66671C2.52722 6.66671 1.33331 5.4728 1.33331 4.00004C1.33331 2.52728 2.52722 1.33337 3.99998 1.33337C5.47274 1.33337 6.66665 2.52728 6.66665 4.00004C6.66665 4.50676 6.52467 4.98008 6.27928 5.3835L6.62368 5.72791C6.86136 5.96556 7.18405 6.099 7.52016 6.099H8.4798C8.81591 6.099 9.1386 5.96556 9.37628 5.72791L9.72003 5.3835C9.47475 4.98014 9.33331 4.50664 9.33331 4.00004C9.33331 2.52728 10.5272 1.33337 12 1.33337ZM3.99998 10.3998C3.11632 10.3998 2.39972 11.1164 2.39972 12C2.39972 12.8837 3.11632 13.6003 3.99998 13.6003C4.88364 13.6003 5.60024 12.8837 5.60024 12C5.60024 11.7911 5.55917 11.5919 5.48631 11.4089L4.41469 12.4812C4.16723 12.7284 3.76625 12.7286 3.51886 12.4812C3.27147 12.2338 3.27158 11.8328 3.51886 11.5853L4.59047 10.5131C4.40769 10.4404 4.20862 10.3998 3.99998 10.3998ZM12 10.3998C11.7911 10.3998 11.5918 10.4403 11.4088 10.5131L12.4811 11.5853C12.7284 11.8328 12.7285 12.2338 12.4811 12.4812C12.2337 12.7286 11.8327 12.7284 11.5853 12.4812L10.513 11.4089C10.4402 11.5918 10.3997 11.7912 10.3997 12C10.3997 12.8837 11.1163 13.6003 12 13.6003C12.8836 13.6003 13.6002 12.8837 13.6002 12C13.6002 11.1164 12.8836 10.3998 12 10.3998ZM3.99998 2.39978C3.11632 2.39978 2.39972 3.11639 2.39972 4.00004C2.39972 4.8837 3.11632 5.6003 3.99998 5.6003C4.20871 5.6003 4.40763 5.55909 4.59047 5.48637L3.51886 4.41475C3.27158 4.16729 3.27147 3.76631 3.51886 3.51892C3.76625 3.27153 4.16723 3.27164 4.41469 3.51892L5.48631 4.59054C5.55903 4.40769 5.60024 4.20877 5.60024 4.00004C5.60024 3.11639 4.88364 2.39978 3.99998 2.39978ZM12 2.39978C11.1163 2.39978 10.3997 3.11639 10.3997 4.00004C10.3997 4.20868 10.4403 4.40775 10.513 4.59054L11.5853 3.51892C11.8327 3.27164 12.2337 3.27153 12.4811 3.51892C12.7285 3.76631 12.7284 4.16729 12.4811 4.41475L11.4088 5.48637C11.5918 5.55923 11.791 5.6003 12 5.6003C12.8836 5.6003 13.6002 4.8837 13.6002 4.00004C13.6002 3.11639 12.8836 2.39978 12 2.39978Z"
|
|
590
|
-
/>
|
|
591
|
-
</symbol>
|
|
592
|
-
<symbol id="walkIcon" viewBox="-2 -2 20 20">
|
|
593
|
-
<path
|
|
594
|
-
d="M9.75 2a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0zM5.25 4.75h5.5v4.5h-.5v5h-2v-5h-.5v5h-2v-5h-.5z"
|
|
595
|
-
/>
|
|
596
|
-
</symbol>
|
|
597
|
-
<symbol id="arIcon" viewBox="0 0 24 24">
|
|
598
|
-
<path
|
|
599
|
-
fill-rule="evenodd"
|
|
600
|
-
clip-rule="evenodd"
|
|
601
|
-
d="M12 15.3994V6H16.9629C18.2109 6 19.1167 6.1089 19.6797 6.32715C20.248 6.53997 20.7021 6.92247 21.042 7.47363C21.3818 8.02476 21.5518 8.65491 21.5518 9.36426C21.5518 10.2645 21.2943 11.0093 20.7793 11.5986C20.2641 12.1825 19.4938 12.5513 18.4688 12.7041C18.9786 13.0097 19.3983 13.3453 19.7275 13.7109C20.0621 14.0766 20.5113 14.7261 21.0742 15.6592L22.5 18H19.6797L17.9746 15.3887C17.3694 14.4559 16.9555 13.8691 16.7324 13.6289C16.5095 13.3835 16.2729 13.2172 16.0234 13.1299C15.7738 13.0371 15.3777 12.9902 14.8359 12.9902H14.3584V18H10.4053L9.35742 15.2744H4.56055L3.57031 18H1L5.67383 6H8.23633L12 15.3994ZM5.30566 13.252H8.58008L6.92676 8.7998L5.30566 13.252ZM14.3584 11.0752H16.1025C17.2336 11.0752 17.9401 11.0259 18.2217 10.9277C18.5032 10.8295 18.7235 10.66 18.8828 10.4199C19.0421 10.1798 19.1221 9.87966 19.1221 9.51953C19.122 9.11597 19.016 8.79138 18.8037 8.5459C18.5966 8.29488 18.3013 8.13677 17.9189 8.07129C17.7276 8.04401 17.1541 8.03027 16.1982 8.03027H14.3584V11.0752Z"
|
|
602
|
-
/>
|
|
603
|
-
</symbol>
|
|
604
|
-
<symbol id="vrIcon" viewBox="0 0 24 24">
|
|
605
|
-
<path
|
|
606
|
-
fill-rule="evenodd"
|
|
607
|
-
clip-rule="evenodd"
|
|
608
|
-
d="M5.52148 10.7021L7.15918 15.1133L8.76465 10.7021L9.50195 8.7002L10.4834 6H16.9541C18.1903 6 19.0879 6.10801 19.6455 6.32422C20.2081 6.53499 20.6576 6.9134 20.9941 7.45898C21.3308 8.00484 21.499 8.62946 21.499 9.33203C21.499 10.2239 21.2446 10.9622 20.7344 11.5459C20.2241 12.1242 19.4606 12.4893 18.4453 12.6406C18.9503 12.9433 19.3662 13.2756 19.6924 13.6377C20.0238 13.9999 20.4688 14.6432 21.0264 15.5674L22.4385 17.8857H19.6455L17.9561 15.2998C17.3565 14.3758 16.9466 13.7946 16.7256 13.5566C16.5047 13.3135 16.2706 13.148 16.0234 13.0615C15.7762 12.9696 15.3841 12.9238 14.8477 12.9238H14.374V17.8857H12.0381V8.54395L8.39941 17.8857H5.86133L1.10254 6H3.71289L5.52148 10.7021ZM14.374 11.0264H16.1025C17.2228 11.0264 17.9224 10.9781 18.2012 10.8809C18.4799 10.7836 17.6986 10.6157 18.8564 10.3779C19.0141 10.1402 19.0928 9.84288 19.0928 9.48633C19.0928 9.08641 18.9877 8.7647 18.7773 8.52148C18.5722 8.27286 18.2801 8.11565 17.9014 8.05078C17.712 8.02376 17.1439 8.01075 16.1973 8.01074H14.374V11.0264Z"
|
|
609
|
-
/>
|
|
610
|
-
</symbol>
|
|
611
|
-
<symbol id="infoIcon" viewBox="-2 -2 24 24">
|
|
612
|
-
<path
|
|
613
|
-
d="M9.98633 7.58301C10.2598 7.58301 10.4854 7.67643 10.6631 7.86328C10.8408 8.05013 10.9297 8.3099 10.9297 8.64258V14.0361C10.9297 14.4098 10.8408 14.6924 10.6631 14.8838C10.4854 15.0752 10.2598 15.1709 9.98633 15.1709C9.71289 15.1709 9.48958 15.0729 9.31641 14.877C9.14779 14.681 9.06348 14.4007 9.06348 14.0361V8.69727C9.06348 8.32812 9.14779 8.05013 9.31641 7.86328C9.48958 7.67643 9.71289 7.58301 9.98633 7.58301Z"
|
|
614
|
-
/>
|
|
615
|
-
<path
|
|
616
|
-
d="M10.0068 4.88965C10.2484 4.88965 10.4626 4.96712 10.6494 5.12207C10.8363 5.27702 10.9297 5.5026 10.9297 5.79883C10.9297 6.08594 10.8385 6.31152 10.6562 6.47559C10.474 6.63509 10.2575 6.71484 10.0068 6.71484C9.74707 6.71484 9.52376 6.63509 9.33691 6.47559C9.15462 6.31608 9.06348 6.09049 9.06348 5.79883C9.06348 5.53451 9.1569 5.31803 9.34375 5.14941C9.53516 4.97624 9.75618 4.88965 10.0068 4.88965Z"
|
|
617
|
-
/>
|
|
618
|
-
<path
|
|
619
|
-
fill-rule="evenodd"
|
|
620
|
-
clip-rule="evenodd"
|
|
621
|
-
d="M10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0ZM10 1.7998C5.47126 1.7998 1.7998 5.47126 1.7998 10C1.7998 14.5287 5.47126 18.2002 10 18.2002C14.5287 18.2002 18.2002 14.5287 18.2002 10C18.2002 5.47126 14.5287 1.7998 10 1.7998Z"
|
|
622
|
-
/>
|
|
623
|
-
</symbol>
|
|
624
|
-
<symbol id="settingsIcon" viewBox="0 0 24 24">
|
|
625
|
-
<path
|
|
626
|
-
fill-rule="evenodd"
|
|
627
|
-
clip-rule="evenodd"
|
|
628
|
-
d="M12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8ZM12 9.7998C10.785 9.7998 9.7998 10.785 9.7998 12C9.7998 13.215 10.785 14.2002 12 14.2002C13.215 14.2002 14.2002 13.215 14.2002 12C14.2002 10.785 13.215 9.7998 12 9.7998Z"
|
|
629
|
-
/>
|
|
630
|
-
<path
|
|
631
|
-
fill-rule="evenodd"
|
|
632
|
-
clip-rule="evenodd"
|
|
633
|
-
d="M12.7119 2.2002C13.1961 2.20028 13.6296 2.49055 13.8164 2.93066L13.8506 3.02051L14.3652 4.56641C14.7875 4.70091 15.1932 4.87075 15.5801 5.07129L17.042 4.3418L17.1299 4.30176C17.5436 4.13502 18.017 4.21245 18.3564 4.50195L18.4268 4.56641L19.4336 5.57324C19.7985 5.93836 19.8889 6.49621 19.6582 6.95801L18.9268 8.41895C19.1274 8.80592 19.2971 9.21159 19.4316 9.63379L20.9795 10.1504C21.4693 10.3138 21.7997 10.7717 21.7998 11.2881V12.7119C21.7997 13.2284 21.4695 13.6873 20.9795 13.8506L19.4316 14.3652C19.2971 14.7875 19.1274 15.1932 18.9268 15.5801L19.6582 17.042C19.8889 17.5038 19.7985 18.0616 19.4336 18.4268L18.4268 19.4336C18.0616 19.7985 17.5038 19.8889 17.042 19.6582L15.5801 18.9268C15.1932 19.1274 14.7875 19.2971 14.3652 19.4316L13.8506 20.9795C13.6873 21.4695 13.2284 21.7997 12.7119 21.7998H11.2881C10.7717 21.7997 10.3138 21.4693 10.1504 20.9795L9.63379 19.4316C9.21159 19.2971 8.80592 19.1274 8.41895 18.9268L6.95801 19.6582C6.49621 19.8889 5.93836 19.7985 5.57324 19.4336L4.56641 18.4268C4.20146 18.0617 4.1112 17.5038 4.3418 17.042L5.07129 15.5801C4.87075 15.1932 4.70091 14.7875 4.56641 14.3652L3.02051 13.8506C2.53057 13.6873 2.20029 13.2283 2.2002 12.7119V11.2881C2.20024 10.7718 2.53076 10.3139 3.02051 10.1504L4.56641 9.63379C4.70094 9.21149 4.86966 8.80498 5.07031 8.41797L4.3418 6.95801C4.11113 6.49617 4.20145 5.93834 4.56641 5.57324L5.57324 4.56641C5.93834 4.20145 6.49617 4.11113 6.95801 4.3418L8.41797 5.07031C8.80498 4.86966 9.21149 4.70094 9.63379 4.56641L10.1504 3.02051L10.1836 2.92969C10.3706 2.49001 10.8042 2.20023 11.2881 2.2002H12.7119ZM11.0186 5.4707L10.8809 5.88477L10.458 5.99316C9.88479 6.13982 9.34317 6.36768 8.84473 6.66309L8.46875 6.88477L8.0791 6.69043L6.50098 5.90137L5.90137 6.50098L6.69043 8.0791L6.88477 8.46875L6.66309 8.84473C6.36768 9.34317 6.13982 9.88479 5.99316 10.458L5.88477 10.8809L5.4707 11.0186L3.7998 11.5762V12.4229L5.4707 12.9805L5.88477 13.1182L5.99316 13.541C6.13969 14.1141 6.36763 14.6556 6.66309 15.1543L6.88477 15.5303L6.69043 15.9199L5.90137 17.498L6.50098 18.0977L8.0791 17.3086L8.46875 17.1133L8.84473 17.3359C9.34314 17.6314 9.88463 17.8591 10.458 18.0059L10.8809 18.1143L11.0186 18.5283L11.5771 20.2002H12.4229L13.1182 18.1143L13.541 18.0059C14.1143 17.8593 14.6556 17.6314 15.1543 17.3359L15.5303 17.1143L15.9199 17.3086L17.498 18.0977L18.0977 17.498L17.3086 15.9199L17.1143 15.5303L17.3359 15.1543C17.6314 14.6556 17.8593 14.1143 18.0059 13.541L18.1143 13.1182L20.2002 12.4229V11.5762L18.1143 10.8809L18.0059 10.458C17.8591 9.88463 17.6314 9.34314 17.3359 8.84473L17.1133 8.46875L17.3086 8.0791L18.0977 6.50098L17.498 5.90137L15.9199 6.69043L15.5303 6.88477L15.1543 6.66309C14.6556 6.36763 14.1141 6.13969 13.541 5.99316L13.1182 5.88477L12.9805 5.4707L12.4229 3.7998H11.5762L11.0186 5.4707Z"
|
|
634
|
-
/>
|
|
635
|
-
</symbol>
|
|
636
|
-
<symbol id="enterFullscreenIcon" viewBox="0 0 24 24">
|
|
637
|
-
<path
|
|
638
|
-
d="M3 14.7002C3.49693 14.7002 3.90018 15.1027 3.90039 15.5996V20C3.90039 20.0552 3.94477 20.0996 4 20.0996H8.40039C8.89727 20.0998 9.2998 20.5031 9.2998 21C9.2998 21.4969 8.89727 21.9002 8.40039 21.9004H4C2.95066 21.9004 2.09961 21.0493 2.09961 20V15.5996C2.09982 15.1027 2.50307 14.7002 3 14.7002Z"
|
|
639
|
-
/>
|
|
640
|
-
<path
|
|
641
|
-
d="M21 14.7002C21.4969 14.7002 21.9002 15.1027 21.9004 15.5996V20C21.9004 21.0493 21.0493 21.9004 20 21.9004H15.5996C15.1027 21.9002 14.7002 21.4969 14.7002 21C14.7002 20.5031 15.1027 20.0998 15.5996 20.0996H20C20.0552 20.0996 20.0996 20.0552 20.0996 20V15.5996C20.0998 15.1027 20.5031 14.7002 21 14.7002Z"
|
|
642
|
-
/>
|
|
643
|
-
<path
|
|
644
|
-
d="M8.40039 2.09961C8.89727 2.09982 9.2998 2.50307 9.2998 3C9.2998 3.49693 8.89727 3.90018 8.40039 3.90039H4C3.94477 3.90039 3.90039 3.94477 3.90039 4V8.40039C3.90018 8.89727 3.49693 9.2998 3 9.2998C2.50307 9.2998 2.09982 8.89727 2.09961 8.40039V4C2.09961 2.95066 2.95066 2.09961 4 2.09961H8.40039Z"
|
|
645
|
-
/>
|
|
646
|
-
<path
|
|
647
|
-
d="M20 2.09961C21.0493 2.09961 21.9004 2.95066 21.9004 4V8.40039C21.9002 8.89727 21.4969 9.2998 21 9.2998C20.5031 9.2998 20.0998 8.89727 20.0996 8.40039V4C20.0996 3.94477 20.0552 3.90039 20 3.90039H15.5996C15.1027 3.90018 14.7002 3.49693 14.7002 3C14.7002 2.50307 15.1027 2.09982 15.5996 2.09961H20Z"
|
|
648
|
-
/>
|
|
649
|
-
</symbol>
|
|
650
|
-
<symbol id="chevronLeftIcon" viewBox="0 0 24 24">
|
|
651
|
-
<path d="M15 19l-7-7 7-7" />
|
|
652
|
-
</symbol>
|
|
653
|
-
<symbol id="chevronRightIcon" viewBox="0 0 24 24">
|
|
654
|
-
<path d="M9 5l7 7-7 7" />
|
|
655
|
-
</symbol>
|
|
656
|
-
<symbol id="voxelIcon" viewBox="0 0 16 16">
|
|
657
|
-
<path
|
|
658
|
-
d="M8 1L2 4.5v7L8 15l6-3.5v-7L8 1zm0 1.15L12.85 5 8 7.85 3.15 5 8 2.15zM3 5.85l4.5 2.6v5.1L3 10.95V5.85zm5.5 7.7v-5.1L13 5.85v5.1l-4.5 2.6z"
|
|
659
|
-
/>
|
|
660
|
-
</symbol>
|
|
661
|
-
<symbol id="exitFullscreenIcon" viewBox="0 0 24 24">
|
|
662
|
-
<path
|
|
663
|
-
d="M8 15.0996C8.49706 15.0996 8.90039 15.5029 8.90039 16V21C8.90039 21.4971 8.49706 21.9004 8 21.9004C7.50294 21.9004 7.09961 21.4971 7.09961 21V16.9004H3C2.50294 16.9004 2.09961 16.4971 2.09961 16C2.09961 15.5029 2.50294 15.0996 3 15.0996H8Z"
|
|
664
|
-
/>
|
|
665
|
-
<path
|
|
666
|
-
d="M21 15.0996C21.4971 15.0996 21.9004 15.5029 21.9004 16C21.9004 16.4971 21.4971 16.9004 21 16.9004H16.9004V21C16.9004 21.4971 16.4971 21.9004 16 21.9004C15.5029 21.9004 15.0996 21.4971 15.0996 21V16C15.0996 15.5029 15.5029 15.0996 16 15.0996H21Z"
|
|
667
|
-
/>
|
|
668
|
-
<path
|
|
669
|
-
d="M8 2.09961C8.49706 2.09961 8.90039 2.50294 8.90039 3V8C8.90039 8.49706 8.49706 8.90039 8 8.90039H3C2.50294 8.90039 2.09961 8.49706 2.09961 8C2.09961 7.50294 2.50294 7.09961 3 7.09961H7.09961V3C7.09961 2.50294 7.50294 2.09961 8 2.09961Z"
|
|
670
|
-
/>
|
|
671
|
-
<path
|
|
672
|
-
d="M16 2.09961C16.4971 2.09961 16.9004 2.50294 16.9004 3V7.09961H21C21.4971 7.09961 21.9004 7.50294 21.9004 8C21.9004 8.49706 21.4971 8.90039 21 8.90039H16C15.5029 8.90039 15.0996 8.49706 15.0996 8V3C15.0996 2.50294 15.5029 2.09961 16 2.09961Z"
|
|
673
|
-
/>
|
|
674
|
-
</symbol>
|
|
675
|
-
</svg>
|
|
676
|
-
|
|
677
113
|
<!-- Application Script -->
|
|
678
114
|
<script type="module">
|
|
679
|
-
import {
|
|
680
|
-
|
|
681
|
-
const { config, settings } = window.sse;
|
|
682
|
-
const { poster } = config;
|
|
115
|
+
import { createViewer } from './index.js';
|
|
683
116
|
|
|
684
|
-
|
|
685
|
-
if (poster) {
|
|
686
|
-
const element = document.getElementById('poster');
|
|
687
|
-
element.style.setProperty('--poster-url', `url(${poster.src})`);
|
|
688
|
-
element.style.display = 'block';
|
|
689
|
-
element.style.filter = 'blur(40px)';
|
|
690
|
-
|
|
691
|
-
// hide the canvas
|
|
692
|
-
document.documentElement.style.setProperty('--canvas-opacity', '0');
|
|
693
|
-
}
|
|
117
|
+
const { options, settings } = window.sse;
|
|
694
118
|
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
const viewer = await main(canvas, settingsJson, config);
|
|
699
|
-
});
|
|
119
|
+
// the viewer builds its own subtree (canvas, ui, icons) inside the container; the
|
|
120
|
+
// standalone document's container is the page itself
|
|
121
|
+
createViewer({ container: document.body, settings, ...options });
|
|
700
122
|
</script>
|
|
701
123
|
</body>
|
|
702
124
|
</html>
|