Skip to content

Commit

Permalink
feat(app): Get GeometryDemo working again
Browse files Browse the repository at this point in the history
Use the new buildGeometryFromParameters function in EventDisplay
Added some WIP instructions (which don't currently work).
  • Loading branch information
EdwardMoyse committed Nov 18, 2020
1 parent 04dc545 commit 8f91dbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
<app-nav></app-nav>
<app-experiment-info experimentTagline="Geometry Demo">
<div>
<p>
Try opening the console and typing:
<!--
{{ var parameters = { ModuleName: "Module 3", Xdim: 10., Ydim: 1., Zdim: 45, NumPhiEl: 64, NumZEl: 10, Radius: 105, MinZ: -250, MaxZ: 250, TiltAngle: 0.3, PhiOffset: 0.0, Colour: 0xffff00, EdgeColour: 0x449458 };}}
{{window.EventDisplay.buildGeometryFromParameters(parameters)}}
-->
</p>
</div>
</app-experiment-info>
<div id="eventDisplay"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export class GeometryComponent implements OnInit {

ngOnInit() {
this.eventDisplay.init({});
var parameters = { ModuleName: "Module 2", Xdim: 10., Ydim: 1., Zdim: 45, NumPhiEl: 64, NumZEl: 10, Radius: 75, MinZ: -250, MaxZ: 250, TiltAngle: 0.3, PhiOffset: 0.0, Colour: 0x00ff00, EdgeColour: 0x449458 };
this.eventDisplay.buildGeometryFromParameters(parameters);
}

}

0 comments on commit 8f91dbd

Please sign in to comment.