File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { getName } from "../lib/getName.js";
8
8
import { linkTypes } from "./links.js" ;
9
9
import { parseCharge } from "../lib/parseCharge.js" ;
10
10
11
- const TOP_MARGIN = 40 ;
11
+ const TOP_MARGIN = 45 ;
12
12
13
13
class EDMObject {
14
14
constructor ( ) {
@@ -62,6 +62,7 @@ export class MCParticle extends EDMObject {
62
62
this . texImg = null ;
63
63
this . color = "#dff6ff" ;
64
64
this . radius = 15 ;
65
+ this . height = 270 ;
65
66
}
66
67
67
68
updateTexImg ( text ) {
@@ -85,7 +86,7 @@ export class MCParticle extends EDMObject {
85
86
drawTex (
86
87
ctx ,
87
88
boxCenterX ,
88
- this . y + this . height * 0.4 ,
89
+ this . y + TOP_MARGIN + 80 ,
89
90
this . texImg ,
90
91
this . width
91
92
) ;
@@ -94,7 +95,7 @@ export class MCParticle extends EDMObject {
94
95
drawTex (
95
96
ctx ,
96
97
boxCenterX ,
97
- this . y + this . height * 0.4 ,
98
+ this . y + TOP_MARGIN + 80 ,
98
99
this . texImg ,
99
100
this . width
100
101
) ;
@@ -107,7 +108,7 @@ export class MCParticle extends EDMObject {
107
108
topLines . push ( "Gen. stat.: " + this . generatorStatus ) ;
108
109
topLines . push ( "Sim. stat.: " + this . simulatorStatus ) ;
109
110
110
- const bottomY = this . y + this . height * 0.6 ;
111
+ const bottomY = this . y + this . height * 0.65 ;
111
112
const bottomLines = [ ] ;
112
113
bottomLines . push ( "p = " + this . momentum + " GeV" ) ;
113
114
bottomLines . push ( "d = " + this . vertex + " mm" ) ;
You can’t perform that action at this time.
0 commit comments