@playcanvas/supersplat-viewer 1.41.0 → 1.42.1
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.d.ts +1 -90
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/viewer.css +7 -34
- package/dist/viewer.d.ts +4 -10
- package/dist/viewer.js +3622 -1780
- package/dist/viewer.js.map +1 -1
- package/package.json +2 -3
- package/public/index.css +7 -34
- package/public/index.html +0 -7
- package/public/index.js +2997 -1923
- 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.42.1",
|
|
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",
|
|
@@ -65,14 +65,13 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@playcanvas/eslint-config": "3.0.0
|
|
68
|
+
"@playcanvas/eslint-config": "3.0.0",
|
|
69
69
|
"@rollup/plugin-json": "6.1.0",
|
|
70
70
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
71
71
|
"@rollup/plugin-typescript": "12.3.0",
|
|
72
72
|
"autoprefixer": "10.6.1",
|
|
73
73
|
"concurrently": "9.2.5",
|
|
74
74
|
"eslint": "9.39.5",
|
|
75
|
-
"globals": "17.13.0",
|
|
76
75
|
"playcanvas": "2.23.3",
|
|
77
76
|
"postcss": "8.5.31",
|
|
78
77
|
"prettier": "3.9.10",
|
package/public/index.css
CHANGED
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
--sse-bkg-darkest: #141414;
|
|
12
12
|
--sse-bkg-light: #444;
|
|
13
13
|
--canvas-opacity: 1;
|
|
14
|
-
--sse-lift: 0px;
|
|
15
|
-
}
|
|
16
|
-
@media (pointer: coarse) {
|
|
17
|
-
.sse-viewer {
|
|
18
|
-
--sse-lift: var(--sse-experimental-touch-inset-bottom, 0px);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
.sse-viewer {
|
|
22
14
|
position: relative;
|
|
23
15
|
width: 100%;
|
|
24
16
|
height: 100%;
|
|
@@ -138,19 +130,10 @@
|
|
|
138
130
|
.sse-viewer .sse-controlsHint {
|
|
139
131
|
position: absolute;
|
|
140
132
|
right: max(16px, env(safe-area-inset-right));
|
|
141
|
-
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px
|
|
142
|
-
max-height: calc(100% - 16px - calc(max(16px, env(safe-area-inset-bottom)) + 70px + var(--sse-lift)));
|
|
143
|
-
box-sizing: border-box;
|
|
144
|
-
overflow-y: auto;
|
|
145
|
-
overscroll-behavior: contain;
|
|
146
|
-
}
|
|
147
|
-
.sse-viewer .sse-controlsHint,
|
|
148
|
-
.sse-viewer .sse-controlsHint * {
|
|
149
|
-
touch-action: pan-y;
|
|
150
|
-
}
|
|
151
|
-
.sse-viewer .sse-controlsHint {
|
|
133
|
+
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
|
|
152
134
|
min-width: 200px;
|
|
153
135
|
max-width: calc(100% - 32px);
|
|
136
|
+
box-sizing: border-box;
|
|
154
137
|
padding: 8px 8px 8px 12px;
|
|
155
138
|
border-radius: 16px;
|
|
156
139
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
@@ -324,7 +307,7 @@
|
|
|
324
307
|
}
|
|
325
308
|
.sse-viewer .sse-loadingWrap {
|
|
326
309
|
position: absolute;
|
|
327
|
-
bottom:
|
|
310
|
+
bottom: 120px;
|
|
328
311
|
left: 50%;
|
|
329
312
|
transform: translate(-50%, 0);
|
|
330
313
|
width: min(380px, 100% - 32px);
|
|
@@ -352,7 +335,7 @@
|
|
|
352
335
|
position: absolute;
|
|
353
336
|
left: max(16px, env(safe-area-inset-left));
|
|
354
337
|
right: max(16px, env(safe-area-inset-right));
|
|
355
|
-
bottom:
|
|
338
|
+
bottom: max(16px, env(safe-area-inset-bottom));
|
|
356
339
|
display: flex;
|
|
357
340
|
flex-direction: column;
|
|
358
341
|
}
|
|
@@ -484,17 +467,7 @@
|
|
|
484
467
|
.sse-viewer .sse-settingsPanel {
|
|
485
468
|
position: absolute;
|
|
486
469
|
right: max(16px, env(safe-area-inset-right));
|
|
487
|
-
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px
|
|
488
|
-
max-height: calc(100% - 16px - calc(max(16px, env(safe-area-inset-bottom)) + 70px + var(--sse-lift)));
|
|
489
|
-
box-sizing: border-box;
|
|
490
|
-
overflow-y: auto;
|
|
491
|
-
overscroll-behavior: contain;
|
|
492
|
-
}
|
|
493
|
-
.sse-viewer .sse-settingsPanel,
|
|
494
|
-
.sse-viewer .sse-settingsPanel * {
|
|
495
|
-
touch-action: pan-y;
|
|
496
|
-
}
|
|
497
|
-
.sse-viewer .sse-settingsPanel {
|
|
470
|
+
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
|
|
498
471
|
padding: 12px;
|
|
499
472
|
border-radius: 16px;
|
|
500
473
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
@@ -790,7 +763,7 @@
|
|
|
790
763
|
.sse-viewer .sse-joystickBase {
|
|
791
764
|
position: absolute;
|
|
792
765
|
left: 70px;
|
|
793
|
-
bottom:
|
|
766
|
+
bottom: 140px;
|
|
794
767
|
width: 56px;
|
|
795
768
|
height: 100px;
|
|
796
769
|
transform: translate(-50%, 50%);
|
|
@@ -942,7 +915,7 @@
|
|
|
942
915
|
.sse-viewer .sse-xrHint {
|
|
943
916
|
position: absolute;
|
|
944
917
|
left: 50%;
|
|
945
|
-
bottom:
|
|
918
|
+
bottom: 96px;
|
|
946
919
|
transform: translateX(-50%);
|
|
947
920
|
padding: 12px 20px;
|
|
948
921
|
border-radius: 20px;
|
package/public/index.html
CHANGED
|
@@ -65,12 +65,6 @@
|
|
|
65
65
|
|
|
66
66
|
const renderer = url.searchParams.has('webgl') ? 'webgl' : 'webgpu';
|
|
67
67
|
|
|
68
|
-
// css pixels to lift the toolbar by on touch devices; createViewer clamps it, and treats
|
|
69
|
-
// a value that is not a number as 0
|
|
70
|
-
const experimentalTouchInsetBottom = url.searchParams.has('experimental-touch-inset-bottom')
|
|
71
|
-
? Number(url.searchParams.get('experimental-touch-inset-bottom'))
|
|
72
|
-
: undefined;
|
|
73
|
-
|
|
74
68
|
const budgetParam = url.searchParams.get('budget');
|
|
75
69
|
const budget = budgetParam !== null ? Number(budgetParam) : undefined;
|
|
76
70
|
|
|
@@ -93,7 +87,6 @@
|
|
|
93
87
|
poster: posterUrl && createImage(posterUrl),
|
|
94
88
|
contents: prefetchContent ? fetch(contentUrl) : undefined,
|
|
95
89
|
ui: !url.searchParams.has('noui'),
|
|
96
|
-
experimentalTouchInsetBottom,
|
|
97
90
|
reticle: url.searchParams.has('reticle'),
|
|
98
91
|
noanim: url.searchParams.has('noanim'),
|
|
99
92
|
nofx: url.searchParams.has('nofx'),
|