@playcanvas/supersplat-viewer 1.15.0 → 1.16.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/dist/index.js +3 -3
- package/package.json +6 -6
- package/public/index.css +61 -37
- package/public/index.html +56 -14
- package/public/index.js +410 -255
- package/public/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/supersplat-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
|
|
6
6
|
"description": "Viewer for https://superspl.at",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"@rollup/plugin-json": "6.1.0",
|
|
42
42
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
43
43
|
"@rollup/plugin-typescript": "12.3.0",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
45
|
-
"@typescript-eslint/parser": "8.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
45
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
46
46
|
"autoprefixer": "10.4.24",
|
|
47
47
|
"concurrently": "9.2.1",
|
|
48
|
-
"eslint": "9.39.
|
|
48
|
+
"eslint": "9.39.3",
|
|
49
49
|
"globals": "17.3.0",
|
|
50
|
-
"playcanvas": "2.16.
|
|
50
|
+
"playcanvas": "2.16.2",
|
|
51
51
|
"postcss": "8.5.6",
|
|
52
52
|
"publint": "0.3.17",
|
|
53
|
-
"rollup": "4.
|
|
53
|
+
"rollup": "4.59.0",
|
|
54
54
|
"rollup-plugin-copy": "3.5.0",
|
|
55
55
|
"rollup-plugin-scss": "4.0.1",
|
|
56
56
|
"rollup-plugin-string": "3.0.0",
|
package/public/index.css
CHANGED
|
@@ -111,7 +111,7 @@ button {
|
|
|
111
111
|
bottom: 120px;
|
|
112
112
|
left: 50%;
|
|
113
113
|
transform: translate(-50%, 0);
|
|
114
|
-
width: 380px;
|
|
114
|
+
width: min(380px, 100vw - 32px);
|
|
115
115
|
display: flex;
|
|
116
116
|
flex-direction: column;
|
|
117
117
|
padding: 16px;
|
|
@@ -264,15 +264,18 @@ button {
|
|
|
264
264
|
position: fixed;
|
|
265
265
|
right: max(16px, env(safe-area-inset-right));
|
|
266
266
|
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
|
|
267
|
-
padding:
|
|
268
|
-
border-radius:
|
|
267
|
+
padding: 12px;
|
|
268
|
+
border-radius: 16px;
|
|
269
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
269
270
|
display: flex;
|
|
270
271
|
flex-direction: column;
|
|
271
272
|
align-items: flex-end;
|
|
272
273
|
gap: 4px;
|
|
273
274
|
font-size: 14px;
|
|
274
275
|
color: #E0DCDD;
|
|
275
|
-
background-color:
|
|
276
|
+
background-color: rgba(51, 51, 51, 0.8);
|
|
277
|
+
backdrop-filter: blur(20px);
|
|
278
|
+
-webkit-backdrop-filter: blur(20px);
|
|
276
279
|
}
|
|
277
280
|
#settingsPanel > .settingsRow {
|
|
278
281
|
display: flex;
|
|
@@ -283,13 +286,17 @@ button {
|
|
|
283
286
|
flex-grow: 1;
|
|
284
287
|
height: 34px;
|
|
285
288
|
padding: 0 20px;
|
|
286
|
-
border: 0;
|
|
289
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
290
|
+
border-radius: 8px;
|
|
291
|
+
font-size: 13px;
|
|
287
292
|
cursor: pointer;
|
|
288
|
-
color: #
|
|
289
|
-
background-color:
|
|
293
|
+
color: #AAA;
|
|
294
|
+
background-color: rgba(255, 255, 255, 0.04);
|
|
295
|
+
transition: background-color 250ms ease, color 250ms ease;
|
|
290
296
|
}
|
|
291
297
|
#settingsPanel > .settingsRow > button:hover {
|
|
292
298
|
color: #fff;
|
|
299
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
293
300
|
}
|
|
294
301
|
#settingsPanel > .settingsRow > div {
|
|
295
302
|
height: 34px;
|
|
@@ -301,9 +308,11 @@ button {
|
|
|
301
308
|
}
|
|
302
309
|
#settingsPanel > .settingsRow > div.checkMark {
|
|
303
310
|
width: 16px;
|
|
311
|
+
opacity: 0.2;
|
|
304
312
|
}
|
|
305
|
-
#settingsPanel > .settingsRow > div.checkMark
|
|
306
|
-
|
|
313
|
+
#settingsPanel > .settingsRow > div.checkMark.active {
|
|
314
|
+
opacity: 1;
|
|
315
|
+
color: #F60;
|
|
307
316
|
}
|
|
308
317
|
#settingsPanel > .settingsRow > div:hover {
|
|
309
318
|
color: #E0DCDD;
|
|
@@ -312,7 +321,7 @@ button {
|
|
|
312
321
|
width: 100%;
|
|
313
322
|
height: 1px;
|
|
314
323
|
margin: 8px 0;
|
|
315
|
-
background-color:
|
|
324
|
+
background-color: rgba(255, 255, 255, 0.08);
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
/* infoPanel */
|
|
@@ -327,74 +336,89 @@ button {
|
|
|
327
336
|
}
|
|
328
337
|
#infoPanel > #infoPanelContent {
|
|
329
338
|
position: absolute;
|
|
330
|
-
top:
|
|
339
|
+
top: 50%;
|
|
331
340
|
left: 50%;
|
|
332
|
-
transform: translate(-50%,
|
|
341
|
+
transform: translate(-50%, -50%);
|
|
333
342
|
min-height: 280px;
|
|
334
343
|
min-width: 320px;
|
|
335
344
|
padding: 8px;
|
|
336
|
-
border-radius:
|
|
345
|
+
border-radius: 16px;
|
|
346
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
337
347
|
display: flex;
|
|
338
348
|
flex-direction: column;
|
|
339
349
|
color: #E0DCDD;
|
|
340
350
|
background-color: rgba(51, 51, 51, 0.8);
|
|
351
|
+
backdrop-filter: blur(20px);
|
|
352
|
+
-webkit-backdrop-filter: blur(20px);
|
|
341
353
|
}
|
|
342
354
|
#infoPanel > #infoPanelContent > #tabs {
|
|
343
355
|
display: flex;
|
|
344
|
-
gap:
|
|
345
|
-
padding:
|
|
346
|
-
border-radius:
|
|
356
|
+
gap: 4px;
|
|
357
|
+
padding: 4px;
|
|
358
|
+
border-radius: 12px;
|
|
347
359
|
background-color: #282828;
|
|
348
360
|
}
|
|
349
361
|
#infoPanel > #infoPanelContent > #tabs > .tab {
|
|
350
|
-
padding: 8px;
|
|
351
|
-
border-radius:
|
|
362
|
+
padding: 8px 12px;
|
|
363
|
+
border-radius: 10px;
|
|
352
364
|
cursor: pointer;
|
|
353
365
|
flex-grow: 1;
|
|
354
366
|
text-align: center;
|
|
355
367
|
font-weight: bold;
|
|
356
368
|
font-size: 14px;
|
|
357
|
-
color: #
|
|
358
|
-
transition: background-color 250ms ease;
|
|
369
|
+
color: #AAA;
|
|
370
|
+
transition: background-color 250ms ease, color 250ms ease;
|
|
359
371
|
}
|
|
360
372
|
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
|
|
361
|
-
|
|
373
|
+
color: #fff;
|
|
374
|
+
background-color: rgba(255, 255, 255, 0.06);
|
|
362
375
|
}
|
|
363
376
|
#infoPanel > #infoPanelContent > #tabs > .tab.active {
|
|
364
|
-
|
|
377
|
+
color: #fff;
|
|
378
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
365
379
|
}
|
|
366
380
|
#infoPanel > #infoPanelContent > #infoPanels {
|
|
367
381
|
padding: 16px;
|
|
368
382
|
}
|
|
369
383
|
#infoPanel > #infoPanelContent > #infoPanels h1 {
|
|
370
|
-
font-size:
|
|
384
|
+
font-size: 11px;
|
|
371
385
|
font-weight: bold;
|
|
372
|
-
|
|
373
|
-
|
|
386
|
+
text-transform: uppercase;
|
|
387
|
+
letter-spacing: 1px;
|
|
388
|
+
padding: 4px 0 8px 0;
|
|
389
|
+
color: #F60;
|
|
374
390
|
}
|
|
375
391
|
#infoPanel > #infoPanelContent > #infoPanels .control-item {
|
|
376
392
|
display: flex;
|
|
377
393
|
justify-content: space-between;
|
|
394
|
+
align-items: center;
|
|
378
395
|
gap: 32px;
|
|
379
|
-
|
|
396
|
+
padding: 5px 8px;
|
|
397
|
+
margin: 0 -8px;
|
|
398
|
+
border-radius: 6px;
|
|
399
|
+
font-size: 13px;
|
|
380
400
|
}
|
|
381
401
|
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-action {
|
|
382
402
|
text-align: left;
|
|
383
403
|
}
|
|
384
404
|
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-key {
|
|
385
405
|
text-align: right;
|
|
406
|
+
color: #AAA;
|
|
407
|
+
font-size: 12px;
|
|
408
|
+
}
|
|
409
|
+
#infoPanel > #infoPanelContent > #infoPanels .control-item:nth-child(odd) {
|
|
410
|
+
background-color: rgba(255, 255, 255, 0.03);
|
|
386
411
|
}
|
|
387
412
|
#infoPanel > #infoPanelContent > #infoPanels .control-spacer {
|
|
388
|
-
|
|
389
|
-
margin: 10px 0;
|
|
413
|
+
margin: 14px 0;
|
|
390
414
|
}
|
|
391
415
|
|
|
392
416
|
#joystickBase {
|
|
393
417
|
position: absolute;
|
|
394
|
-
width:
|
|
395
|
-
height:
|
|
418
|
+
width: 56px;
|
|
419
|
+
height: 100px;
|
|
396
420
|
transform: translate(-50%, -50%);
|
|
397
|
-
border-radius:
|
|
421
|
+
border-radius: 28px;
|
|
398
422
|
touch-action: none;
|
|
399
423
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.2666666667) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2666666667) 100%);
|
|
400
424
|
background-color: rgba(0, 0, 0, 0.2);
|
|
@@ -404,8 +428,8 @@ button {
|
|
|
404
428
|
#joystickBase > #joystick {
|
|
405
429
|
position: absolute;
|
|
406
430
|
left: 8px;
|
|
407
|
-
width:
|
|
408
|
-
height:
|
|
431
|
+
width: 40px;
|
|
432
|
+
height: 40px;
|
|
409
433
|
border-radius: 50%;
|
|
410
434
|
touch-action: none;
|
|
411
435
|
background-color: rgba(255, 255, 255, 0.5333333333);
|
|
@@ -413,14 +437,14 @@ button {
|
|
|
413
437
|
transition: left 0.1s ease;
|
|
414
438
|
}
|
|
415
439
|
#joystickBase.mode-2d {
|
|
416
|
-
width:
|
|
417
|
-
height:
|
|
418
|
-
border-radius:
|
|
440
|
+
width: 100px;
|
|
441
|
+
height: 100px;
|
|
442
|
+
border-radius: 50px;
|
|
419
443
|
background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2666666667) 100%);
|
|
420
444
|
background-color: rgba(0, 0, 0, 0.2);
|
|
421
445
|
}
|
|
422
446
|
#joystickBase.mode-2d > #joystick {
|
|
423
|
-
left:
|
|
447
|
+
left: 30px;
|
|
424
448
|
}
|
|
425
449
|
|
|
426
450
|
#tooltip {
|
package/public/index.html
CHANGED
|
@@ -176,6 +176,15 @@
|
|
|
176
176
|
<div id="lqCheck" class="checkMark">✓</div>
|
|
177
177
|
<div id="lqOption">Low Quality Render</div>
|
|
178
178
|
</div>
|
|
179
|
+
<div id="touchControlsDivider" class="divider hidden"></div>
|
|
180
|
+
<div id="joystickSchemeRow" class="settingsRow hidden">
|
|
181
|
+
<div id="joystickSchemeCheck" class="checkMark">✓</div>
|
|
182
|
+
<div id="joystickSchemeOption">Joystick Controls</div>
|
|
183
|
+
</div>
|
|
184
|
+
<div id="pinchSchemeRow" class="settingsRow hidden">
|
|
185
|
+
<div id="pinchSchemeCheck" class="checkMark">✓</div>
|
|
186
|
+
<div id="pinchSchemeOption">Pinch Controls</div>
|
|
187
|
+
</div>
|
|
179
188
|
<div class="divider"></div>
|
|
180
189
|
<div class="settingsRow">
|
|
181
190
|
<button id="frame">Frame</button>
|
|
@@ -210,24 +219,41 @@
|
|
|
210
219
|
<span class="control-action">Set Focus</span>
|
|
211
220
|
<span class="control-key">Double Click</span>
|
|
212
221
|
</div>
|
|
222
|
+
<div class="control-item">
|
|
223
|
+
<span class="control-action">Frame Scene</span>
|
|
224
|
+
<span class="control-key">F</span>
|
|
225
|
+
</div>
|
|
226
|
+
<div class="control-item">
|
|
227
|
+
<span class="control-action">Reset Camera</span>
|
|
228
|
+
<span class="control-key">R</span>
|
|
229
|
+
</div>
|
|
213
230
|
<div class="control-spacer"></div>
|
|
214
|
-
<h1>Fly Mode</h1>
|
|
231
|
+
<h1>Fly / Walk Mode</h1>
|
|
215
232
|
<div class="control-item">
|
|
216
233
|
<span class="control-action">Look Around</span>
|
|
217
|
-
<span class="control-key">
|
|
234
|
+
<span class="control-key">Mouse</span>
|
|
218
235
|
</div>
|
|
219
236
|
<div class="control-item">
|
|
220
|
-
<span class="control-action">
|
|
237
|
+
<span class="control-action">Move</span>
|
|
221
238
|
<span class="control-key">W,S,A,D</span>
|
|
222
239
|
</div>
|
|
240
|
+
<div class="control-item">
|
|
241
|
+
<span class="control-action">Jump (Walk)</span>
|
|
242
|
+
<span class="control-key">Space</span>
|
|
243
|
+
</div>
|
|
223
244
|
<div class="control-spacer"></div>
|
|
245
|
+
<h1>Mode Switching</h1>
|
|
224
246
|
<div class="control-item">
|
|
225
|
-
<span class="control-action">
|
|
226
|
-
<span class="control-key">
|
|
247
|
+
<span class="control-action">Orbit Mode</span>
|
|
248
|
+
<span class="control-key">1</span>
|
|
227
249
|
</div>
|
|
228
250
|
<div class="control-item">
|
|
229
|
-
<span class="control-action">
|
|
230
|
-
<span class="control-key">
|
|
251
|
+
<span class="control-action">Fly Mode</span>
|
|
252
|
+
<span class="control-key">2</span>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="control-item">
|
|
255
|
+
<span class="control-action">Walk Mode</span>
|
|
256
|
+
<span class="control-key">3</span>
|
|
231
257
|
</div>
|
|
232
258
|
</div>
|
|
233
259
|
<div id="touchInfoPanel" class="hidden">
|
|
@@ -250,14 +276,30 @@
|
|
|
250
276
|
<span class="control-key">Double Tap</span>
|
|
251
277
|
</div>
|
|
252
278
|
<div class="control-spacer"></div>
|
|
253
|
-
<h1>Fly Mode</h1>
|
|
254
|
-
<div
|
|
255
|
-
<
|
|
256
|
-
|
|
279
|
+
<h1>Fly / Walk Mode</h1>
|
|
280
|
+
<div id="touchFlyJoystick">
|
|
281
|
+
<div class="control-item">
|
|
282
|
+
<span class="control-action">Look Around</span>
|
|
283
|
+
<span class="control-key">Touch + Drag</span>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="control-item">
|
|
286
|
+
<span class="control-action">Move</span>
|
|
287
|
+
<span class="control-key">Joystick</span>
|
|
288
|
+
</div>
|
|
257
289
|
</div>
|
|
258
|
-
<div class="
|
|
259
|
-
<
|
|
260
|
-
|
|
290
|
+
<div id="touchFlyPinch" class="hidden">
|
|
291
|
+
<div class="control-item">
|
|
292
|
+
<span class="control-action">Look Around</span>
|
|
293
|
+
<span class="control-key">One Finger Drag</span>
|
|
294
|
+
</div>
|
|
295
|
+
<div class="control-item">
|
|
296
|
+
<span class="control-action">Move Forward/Back</span>
|
|
297
|
+
<span class="control-key">Pinch</span>
|
|
298
|
+
</div>
|
|
299
|
+
<div class="control-item">
|
|
300
|
+
<span class="control-action">Strafe</span>
|
|
301
|
+
<span class="control-key">Two Finger Drag</span>
|
|
302
|
+
</div>
|
|
261
303
|
</div>
|
|
262
304
|
</div>
|
|
263
305
|
</div>
|