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,

View file

@ -902,23 +902,6 @@ th, tr, td, label {
border-bottom-left-radius: 0;
background-color: var(--bg-gray);
}
#set-top:hover #set-now {
display: flex;
}
#set-now {
display: none;
position: absolute;
transform: translateY(-50%);
top: 50%;
right: 100%;
padding: 5px;
margin-right: 5px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
white-space: nowrap;
z-index: 10;
}
#set-end {
color: black;
padding: 1px 10px 2px 2px;

View file

@ -332,7 +332,7 @@
</div>
<div id="mid-rcol" class="f-col j-center noshow">
<div id="set-menu" class="f-col">
<div id="set-top" class="set-group"><a>settings</a><div id="set-now"></div></div>
<div id="set-top" class="set-group"><a>settings</a></div>
<div id="settings" class="f-col"></div>
<div id="set-end" class="set-group"></div>
</div>