@playcanvas/supersplat-viewer 1.19.0 → 1.20.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 +9 -9
- package/public/index.css +12 -0
- package/public/index.html +14 -6
- package/public/index.js +4783 -1775
- 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.20.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",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"@rollup/plugin-json": "6.1.0",
|
|
46
46
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
47
47
|
"@rollup/plugin-typescript": "12.3.0",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
49
|
-
"@typescript-eslint/parser": "8.
|
|
50
|
-
"autoprefixer": "10.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "8.59.0",
|
|
49
|
+
"@typescript-eslint/parser": "8.59.0",
|
|
50
|
+
"autoprefixer": "10.5.0",
|
|
51
51
|
"concurrently": "9.2.1",
|
|
52
52
|
"eslint": "9.39.4",
|
|
53
|
-
"globals": "17.
|
|
54
|
-
"playcanvas": "2.
|
|
55
|
-
"postcss": "8.5.
|
|
53
|
+
"globals": "17.5.0",
|
|
54
|
+
"playcanvas": "2.18.0",
|
|
55
|
+
"postcss": "8.5.10",
|
|
56
56
|
"publint": "0.3.18",
|
|
57
|
-
"rollup": "4.
|
|
57
|
+
"rollup": "4.60.2",
|
|
58
58
|
"rollup-plugin-copy": "3.5.0",
|
|
59
59
|
"rollup-plugin-scss": "4.0.1",
|
|
60
60
|
"rollup-plugin-string": "3.0.0",
|
|
61
|
-
"sass": "1.
|
|
61
|
+
"sass": "1.99.0",
|
|
62
62
|
"serve": "14.2.6",
|
|
63
63
|
"typescript": "5.9.3"
|
|
64
64
|
},
|
package/public/index.css
CHANGED
|
@@ -26,6 +26,18 @@ canvas {
|
|
|
26
26
|
height: 100%;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
body::after {
|
|
30
|
+
content: "";
|
|
31
|
+
position: fixed;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
width: 1px;
|
|
35
|
+
height: 1px;
|
|
36
|
+
backdrop-filter: blur(1px);
|
|
37
|
+
-webkit-backdrop-filter: blur(1px);
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
button {
|
|
30
42
|
-webkit-appearance: none;
|
|
31
43
|
-moz-appearance: none;
|
package/public/index.html
CHANGED
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
const settingsUrl = url.searchParams.has('settings') ? url.searchParams.get('settings') : './settings.json';
|
|
22
22
|
const contentUrl = url.searchParams.has('content') ? url.searchParams.get('content') : './scene.compressed.ply';
|
|
23
23
|
|
|
24
|
+
const renderer =
|
|
25
|
+
url.searchParams.has('compute') ? 'compute' :
|
|
26
|
+
url.searchParams.has('gpu') ? 'gpu' :
|
|
27
|
+
url.searchParams.has('cpu') ? 'cpu' :
|
|
28
|
+
'webgl';
|
|
29
|
+
|
|
30
|
+
const budgetParam = url.searchParams.get('budget');
|
|
31
|
+
const budget = budgetParam !== null ? Number(budgetParam) : undefined;
|
|
32
|
+
|
|
24
33
|
const sseConfig = {
|
|
25
34
|
poster: posterUrl && createImage(posterUrl),
|
|
26
35
|
skyboxUrl,
|
|
@@ -33,10 +42,9 @@
|
|
|
33
42
|
hpr: url.searchParams.has('hpr') ? ['', '1', 'true', 'enable'].includes(url.searchParams.get('hpr')) : undefined,
|
|
34
43
|
ministats: url.searchParams.has('ministats'),
|
|
35
44
|
colorize: url.searchParams.has('colorize'),
|
|
36
|
-
|
|
37
|
-
webgpu: url.searchParams.has('webgpu'),
|
|
38
|
-
gpusort: url.searchParams.has('gpusort'),
|
|
45
|
+
renderer,
|
|
39
46
|
aa: url.searchParams.has('aa'),
|
|
47
|
+
budget,
|
|
40
48
|
heatmap: url.searchParams.has('heatmap'),
|
|
41
49
|
fullload: url.searchParams.has('fullload'),
|
|
42
50
|
};
|
|
@@ -171,9 +179,9 @@
|
|
|
171
179
|
|
|
172
180
|
<!-- Settings Panel -->
|
|
173
181
|
<div id="settingsPanel" class="hidden">
|
|
174
|
-
<div id="
|
|
175
|
-
<div id="
|
|
176
|
-
<div id="
|
|
182
|
+
<div id="performanceModeRow" class="settingsRow">
|
|
183
|
+
<div id="performanceModeOption">Performance Mode</div>
|
|
184
|
+
<div id="performanceModeCheck" class="toggleSwitch"><div class="toggleTrack"><div class="toggleThumb"></div></div></div>
|
|
177
185
|
</div>
|
|
178
186
|
<div id="gamingControlsDivider" class="divider"></div>
|
|
179
187
|
<div id="gamingControlsRow" class="settingsRow">
|