Skip to content

Commit 8c491f2

Browse files
committed
STLViewer in web viewer is not full screen
1 parent 8e05fe7 commit 8c491f2

2 files changed

Lines changed: 3 additions & 22 deletions

File tree

solid_node/viewers/web/app/src/App.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@ const App = () => {
7373
return (
7474
<Router>
7575
<div className="app">
76-
<div className="top">
77-
</div>
7876
<div className="body">
7977
<Resizable
8078
className="pane left"
81-
defaultSize={{ width: '80%', height: '100%' }}
79+
defaultSize={{ width: '100%', height: '100%' }}
8280
enable={{ right: true }}
8381
>
8482
{!error &&
@@ -103,13 +101,6 @@ const App = () => {
103101
*/}
104102
</div>
105103
</Resizable>
106-
<Resizable
107-
defaultSize={{ width: '20%', height: '100%' }}
108-
className="pane right"
109-
enable={{ right: true }}
110-
>
111-
<NavigationTree />
112-
</Resizable>
113104
</div>
114105
</div>
115106
</Router>

solid_node/viewers/web/app/src/node.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,8 @@ export abstract class Node {
106106
const tstamp = new Date().getTime(); // avoid cache
107107

108108
stlLoader.load(`/node${this.path}${this.model}?t=${tstamp}`, (geometry) => {
109-
let material;
110-
if (this.color) {
111-
const color = new THREE.Color(this.color);
112-
material = new THREE.MeshBasicMaterial({
113-
color: color,
114-
//metalness: 0.2,
115-
//roughness: 0.5,
116-
//emissive: color,
117-
});
118-
} else {
119-
material = new THREE.MeshNormalMaterial();
120-
}
109+
// TODO use this.color to colorize node
110+
const material = new THREE.MeshNormalMaterial();
121111
const mesh = new THREE.Mesh(geometry, material);
122112
if (this.context.scene) {
123113
if (this.mesh) {

0 commit comments

Comments
 (0)