File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
view-objects/3d/application Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,13 @@ export default function MethodPopup({
42
42
< th > Type</ th >
43
43
</ thead >
44
44
< tbody >
45
- { method . parameters . map ( ( params ) => (
46
- < tr key = { params . name } >
47
- < td > { params . name } </ td >
48
- < td > { params . type } </ td >
49
- </ tr >
50
- ) ) }
45
+ { method . parameters &&
46
+ method . parameters . map ( ( params ) => (
47
+ < tr key = { params . name } >
48
+ < td > { params . name } </ td >
49
+ < td > { params . type } </ td >
50
+ </ tr >
51
+ ) ) }
51
52
</ tbody >
52
53
</ table >
53
54
</ >
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ export class MethodGroup extends THREE.Group {
38
38
39
39
// Compute geometry with width and height
40
40
const box = new THREE . BoxGeometry (
41
- parentLayout . width / 4 ,
41
+ parentLayout . width / 8 ,
42
42
functionHeight ,
43
- parentLayout . depth / 4
43
+ parentLayout . depth / 8
44
44
) ;
45
45
46
46
// Compute material and colors for method mesh
@@ -63,7 +63,7 @@ export class MethodGroup extends THREE.Group {
63
63
boxMaterial ,
64
64
this . dataModel . methods [ index ]
65
65
) ;
66
- methodHeightMesh . position . setX ( methodHeightMesh . position . x - 0.7 ) ;
66
+ methodHeightMesh . position . setX ( methodHeightMesh . position . x + 0.85 ) ;
67
67
methodHeightMesh . position . setY (
68
68
- parentGeo . parameters . height / 2 + functionHeight / 2 + yPos
69
69
) ;
You can’t perform that action at this time.
0 commit comments