Skip to content

Commit

Permalink
Add checkbox control to flip XY in the standalone app
Browse files Browse the repository at this point in the history
  • Loading branch information
6nv committed Apr 17, 2024
1 parent 6f57664 commit ee85bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ <h3>Graph Shape/Bounds</h3>
<label for="dp_max">Maximum Dry Bulb (&deg;C/&deg;F)</label><br>
<input type="number" id="alt" step="10" value="0">
<label for="alt">Altitude (m/ft)</label><br>
<input type="checkbox" id="flip">
<label for="flip">Flip X and Y to render a Mollier Diagram</label><br>
<input type="checkbox" id="adv">
<label for="adv">Advanced mode: Additionally calculate humidity ratio, vapor pressure, enthalpy, and
specific volume. (Psychart calculates dry bulb, wet bulb, dew point, and relative humidity by
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ setOnClick('btnGenerate', () => {
dbMax: dbMax,
dbMin: dbMin,
dpMax: dpMax,
flipXY: false, // TODO - add control for flipping XY in standalone app
flipXY: getCheckedState('flip'),
regions: Psychart.getRegionNamesAndTips().map(([name,]) => name).filter(name => getCheckedState(name)),
series: {
0: {
Expand Down

0 comments on commit ee85bc6

Please sign in to comment.