Skip to content

Commit 6b67c89

Browse files
committed
Added MachineType response & Surface Finish calc
1 parent 11916d7 commit 6b67c89

File tree

5 files changed

+353
-106
lines changed

5 files changed

+353
-106
lines changed

src/webviews/apps/calc/calc.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,23 @@ <h3>Chip Load</h3>
7070
<vscode-panel-view id="view-3">
7171
<section class="row">
7272
<section id="mrr" class="calculator">
73-
<h3>Metal Removal Rate</h3>
73+
<h3>Metal Removal</h3>
7474
<vscode-divider role="separator"></vscode-divider>
75-
<vscode-text-field id="mrr-ap" placeholder="Axial Depth of Cut" size="15">A<sub>p</sub> - Axial Depth of Cut</vscode-text-field>
76-
<vscode-text-field id="mrr-ae" placeholder="Radial Depth of Cut" size="15">A<sub>e</sub> - Radial Depth of Cut</vscode-text-field>
77-
<vscode-text-field id="mrr-fr" placeholder="Enter Feedrate" size="15">Feedrate</vscode-text-field>
78-
<label class="results">Metal Removal Rate</label><span id="mrr-results" class="results"></span>
75+
<vscode-text-field id="mrr-ap" placeholder="Axial DoC" size="6">A<sub>p</sub> - Axial Depth of Cut</vscode-text-field>
76+
<vscode-text-field id="mrr-ae" placeholder="Radial DoC" size="6">A<sub>e</sub> - Radial Depth of Cut</vscode-text-field>
77+
<vscode-text-field id="mrr-fr" placeholder="Enter Feedrate" size="6">Feedrate</vscode-text-field>
78+
<label class="results">Metal Removal</label><span id="mrr-results" class="results"></span>
7979
<vscode-button id="mrr-calc-btn">Calculate</vscode-button>
8080
</section>
81+
<section id="finish" class="calculator">
82+
<h3>Surface Finish</h3>
83+
<vscode-divider role="separator"></vscode-divider>
84+
<vscode-text-field id="finish-radius" placeholder="Enter Radius" size="6">Corner Radius</vscode-text-field>
85+
<vscode-text-field id="finish-feedrate" placeholder="Enter Feedrate" size="6">Feedrate</vscode-text-field>
86+
<vscode-text-field class="hidden" size="6" disabled>Hidden</vscode-text-field>
87+
<label class="results">Surface Finish</label><span id="finish-results" class="results"></span>
88+
<vscode-button id="finish-btn">Calculate</vscode-button>
89+
</section>
8190
</section>
8291
<section class="row">
8392
<span class="clear-btn">

src/webviews/apps/calc/calc.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
section {
1313
display: flex;
1414
flex-direction: column;
15-
justify-content: center;
16-
15+
justify-content: start;
1716
padding: 1em;
1817
}
1918

2019
section.row {
2120
flex-direction: row;
2221
flex: none;
22+
justify-content: center;
2323
padding: 0;
2424
}
2525

@@ -68,14 +68,18 @@ span.results {
6868
padding: 5px;
6969
}
7070

71-
#mrr-results {
72-
width: 130px;
73-
}
74-
7571
section.calculator > vscode-button {
7672
margin-top: 1rem;
7773
}
7874

7975
.error {
8076
color: var(--vscode-errorForeground);
77+
}
78+
79+
.hidden {
80+
visibility: hidden;
81+
}
82+
83+
#finish .label {
84+
padding-bottom: 3.5px;
8185
}

0 commit comments

Comments
 (0)