fix slice step down when not rough or outline. remove settings name hover

This commit is contained in:
Stewart Allen 2020-10-28 12:10:09 -04:00
commit b08c4b297f
5 changed files with 4 additions and 27 deletions

View file

@ -1245,7 +1245,6 @@
toolTaperTip: $('tool-ttip'),
toolMetric: $('tool-metric'),
setNow: $('set-now'),
setMenu: $('set-menu'),
settings: $('settings'),
settingsBody: $('settingsBody'),
@ -1707,11 +1706,6 @@
API.space.reload();
};
// when profile hover/pop, hide other poppers
$('set-top').onmouseover = () => {
UC.hidePoppers();
};
SPACE.addEventHandlers(self, [
'keyup', keyUpHandler,
'keydown', keyDownHandler,

View file

@ -1847,8 +1847,6 @@
settings.cproc[mode] = name;
// save named process with the current device
settings.devproc[currentDeviceName()] = name;
// update settings hover-pop with current process name
UI.setNow.innerText = named;
// allow mode driver to take any necessary actions
API.event.emit("settings.load", settings);

View file

@ -873,7 +873,9 @@
procDrill = proc.camDrillingOn && proc.camDrillDown && proc.camDrillDownSpeed,
procDrillReg = proc.camDrillReg,
procTrace = proc.camTraceOn,
sliceDepth = Math.max(0.1, Math.min(proc.camRoughDown, proc.camOutlineDown) / 3 * units),
roughDown = procRough ? proc.camRoughDown : Infinity,
outlineDown = procOutline ? proc.camOutlineDown : Infinity,
sliceDepth = Math.max(0.1, Math.min(roughDown, outlineDown) / 3 * units),
pocketOnlyRough = proc.camRoughPocket,
pocketOnlyOutline = proc.camOutlinePocket,
addTabsRough = procRough && proc.camTabsOn && !pocketOnlyRough,