@@ -134,10 +134,16 @@ export class CalcApp extends GWebviewApp {
134134 switch ( this . _machineType ) {
135135 case MachineTypes . Mill :
136136 {
137+ // Focus Speeds Tab
138+ const speedsTab = document . getElementById ( 'tab-1' ) as HTMLElement ;
139+ if ( speedsTab ) {
140+ speedsTab . click ( ) ;
141+ }
142+
137143 // Hide Surface Finish Calculator
138- const finishSection = document . getElementById ( 'finish' ) ?. parentElement as HTMLElement ;
144+ const finishSection = document . getElementById ( 'finish' ) as HTMLElement ;
139145 if ( finishSection ) {
140- finishSection . style . display = 'none ' ;
146+ finishSection . style . visibility = 'hidden ' ;
141147 }
142148
143149 const mrrTab = document . getElementById ( 'tab-3' ) as HTMLElement ;
@@ -169,14 +175,14 @@ export class CalcApp extends GWebviewApp {
169175 // Update MRR Calculator
170176 const mrrDepth = document . getElementById ( 'mrr-ap' ) as HTMLElement ;
171177 if ( mrrDepth ) {
172- mrrDepth . setAttribute ( 'placeholder' , 'Axial Depth of Cut ' ) ;
173- mrrDepth . innerHTML = 'A<sub>p</sub> - Axial Depth of Cut ' ;
178+ mrrDepth . setAttribute ( 'placeholder' , 'Axial DoC ' ) ;
179+ mrrDepth . innerHTML = 'A<sub>p</sub> - Axial DoC ' ;
174180 }
175181
176182 const mrrSpeed = document . getElementById ( 'mrr-ae' ) as HTMLElement ;
177183 if ( mrrSpeed ) {
178- mrrSpeed . setAttribute ( 'placeholder' , 'Radial Depth of Cut ' ) ;
179- mrrSpeed . innerHTML = 'A<sub>e</sub> - Radial Depth of Cut ' ;
184+ mrrSpeed . setAttribute ( 'placeholder' , 'Radial DoC ' ) ;
185+ mrrSpeed . innerHTML = 'A<sub>e</sub> - Radial DoC ' ;
180186 }
181187 }
182188 break ;
@@ -220,14 +226,14 @@ export class CalcApp extends GWebviewApp {
220226
221227 const mrrSpeed = document . getElementById ( 'mrr-ae' ) as HTMLElement ;
222228 if ( mrrSpeed ) {
223- mrrSpeed . setAttribute ( 'placeholder' , ' Enter Cutting Speed' ) ;
229+ mrrSpeed . setAttribute ( 'placeholder' , ` Enter ${ this . _units === Units . MM ? 'SMM' : 'SFM' } ` ) ;
224230 mrrSpeed . innerHTML = 'Cutting Speed' ;
225231 }
226232
227233 // Show Surface Finish Calculator
228- const finishSection = document . getElementById ( 'finish' ) ?. parentElement as HTMLElement ;
234+ const finishSection = document . getElementById ( 'finish' ) as HTMLElement ;
229235 if ( finishSection ) {
230- finishSection . style . display = '' ;
236+ finishSection . style . visibility = '' ;
231237 }
232238
233239 const mrrTab = document . getElementById ( 'tab-3' ) as HTMLElement ;
0 commit comments