forked from HSF/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f91dbd
commit 4ffbd9b
Showing
3 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
21 changes: 10 additions & 11 deletions
21
packages/phoenix-ng/projects/phoenix-app/src/app/sections/geometry/geometry.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<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 class="demo-info"> | ||
<p><b>Geometry Demo</b></p> | ||
<p>Try opening the console and typing:</p> | ||
<code id="geometryCode"> | ||
{{'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);'}} | ||
</code> | ||
<p class="copy-code" (click)="copyCode()"><b>Copy</b></p> | ||
</div> | ||
|
||
<div id="eventDisplay"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.demo-info { | ||
position: absolute; | ||
top: 5rem; | ||
left: 1rem; | ||
font-size: 0.8rem; | ||
color: var(--phoenix-text-color-secondary); | ||
width: 20rem; | ||
max-width: 40%; | ||
|
||
code { | ||
color: var(--phoenix-text-color-secondary); | ||
cursor: text; | ||
} | ||
|
||
.copy-code { | ||
cursor: pointer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters