File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2626 <small class =" secondary--text" >{{ `X = ${screw.x}, Y = ${screw.y}` }}</small >
2727 </td >
2828 <td class =" focus--text text-right" >
29+ <small
30+ v-if =" screw.relativeZ"
31+ class =" secondary--text"
32+ >({{ screw.relativeZ.toFixed(4) }})</small >
2933 {{ screw.z.toFixed(4) }}
3034 </td >
3135 <td class =" text-right" >
Original file line number Diff line number Diff line change @@ -957,6 +957,14 @@ export const getters = {
957957 }
958958 }
959959
960+ const baseZ = screws . find ( screw => screw . is_base ) ?. z
961+
962+ if ( baseZ != null ) {
963+ for ( const screw of screws ) {
964+ screw . relativeZ = screw . z - baseZ
965+ }
966+ }
967+
960968 return {
961969 ...rest ,
962970 screws
Original file line number Diff line number Diff line change @@ -1532,6 +1532,7 @@ export interface ScrewsTiltAdjustScrew {
15321532 name : string ;
15331533 prettyName : string ;
15341534 adjustMinutes : number ;
1535+ relativeZ ?: number ;
15351536 x : number ;
15361537 y : number ;
15371538 z : number ;
You can’t perform that action at this time.
0 commit comments