modified probeDialog
This commit is contained in:
@@ -39,6 +39,14 @@
|
|||||||
return ValidSteps.includes(str);
|
return ValidSteps.includes(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const stepLabels: Record<Step, string> = {
|
||||||
|
None: "",
|
||||||
|
CheckProbe: "Check probe",
|
||||||
|
BitDimensions: "Bit dimensions",
|
||||||
|
PlaceProbeBlock: "Place probe block",
|
||||||
|
Probe: "Probe",
|
||||||
|
Done: "Done",
|
||||||
|
};
|
||||||
|
|
||||||
const cancelled = writable(false);
|
const cancelled = writable(false);
|
||||||
const userAcknowledged = writable(false);
|
const userAcknowledged = writable(false);
|
||||||
@@ -76,15 +84,6 @@
|
|||||||
allowClose: false,
|
allowClose: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const stepLabels: Record<Step, string> = {
|
|
||||||
None: "",
|
|
||||||
CheckProbe: "Check probe",
|
|
||||||
BitDimensions: "Bit dimensions",
|
|
||||||
PlaceProbeBlock: probeType === "a" ? "Start Probe" : "Place probe block",
|
|
||||||
Probe: "Probe",
|
|
||||||
Done: "Done",
|
|
||||||
};
|
|
||||||
|
|
||||||
$: metric = $Config.settings?.units === "METRIC";
|
$: metric = $Config.settings?.units === "METRIC";
|
||||||
$: cutterDiameterMetric = numberWithUnit
|
$: cutterDiameterMetric = numberWithUnit
|
||||||
.parse(cutterDiameterString)
|
.parse(cutterDiameterString)
|
||||||
@@ -117,6 +116,10 @@
|
|||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: if(probeType === 'a'){
|
||||||
|
stepLabels["PlaceProbeBlock"] = "Start Probe";
|
||||||
|
}
|
||||||
|
|
||||||
async function begin() {
|
async function begin() {
|
||||||
try {
|
try {
|
||||||
$probingActive = true;
|
$probingActive = true;
|
||||||
@@ -441,7 +444,7 @@
|
|||||||
Place the probe block face up, on the lower-left corner
|
Place the probe block face up, on the lower-left corner
|
||||||
of your workpiece.
|
of your workpiece.
|
||||||
{:else if probeType === "a"}
|
{:else if probeType === "a"}
|
||||||
You are about to start the probing of rotary.
|
You are about to start the probing of rotary. <br /> <strong>Note: </strong>Position the bit above the probe and attach the probe magnet.
|
||||||
{:else}
|
{:else}
|
||||||
Place the probe block face down, with the bit above the
|
Place the probe block face down, with the bit above the
|
||||||
recess.
|
recess.
|
||||||
|
|||||||
Reference in New Issue
Block a user