added helical to UIs
This commit is contained in:
parent
cf35717a6b
commit
b014d694b2
6 changed files with 68 additions and 14 deletions
|
|
@ -525,6 +525,16 @@ const conf = exports({
|
|||
camDrillingOn: false,
|
||||
camRegisterSpeed: 1000,
|
||||
camRegisterThru: 5,
|
||||
camHelicalTool: 1000,
|
||||
camHelicalSpindle: 1000,
|
||||
camHelicalDownSpeed: 250,
|
||||
camHelicalSpeed: 1000,
|
||||
camHelicalDown: 5,
|
||||
camHelicalThru: 0,
|
||||
camHelicalOffset: "auto",
|
||||
camHelicalForceStartAngle: false,
|
||||
camHelicalStartAngle: 0,
|
||||
camHelicalOffsetOverride: 0,
|
||||
camFlipAxis: "X",
|
||||
camFlipOther: "",
|
||||
camLaserEnable: ["M321"],
|
||||
|
|
|
|||
|
|
@ -89,16 +89,13 @@ const LISTS = {
|
|||
{ name: "follow" },
|
||||
{ name: "clear" }
|
||||
],
|
||||
helicalmode: [
|
||||
{ name: "clear" },
|
||||
{ name: "threadCutting" }
|
||||
],
|
||||
traceoff: [
|
||||
{ name: "none" },
|
||||
{ name: "inside" },
|
||||
{ name: "outside" }
|
||||
],
|
||||
helicaloff:[
|
||||
{ name: "auto" },
|
||||
{ name: "inside" },
|
||||
{ name: "outside" },
|
||||
],
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ gapp.register("kiri.ui", [], (root, exports) => {
|
|||
bound,
|
||||
toInt,
|
||||
toFloat,
|
||||
toDegsFloat,
|
||||
isSticky,
|
||||
setSticky,
|
||||
newBoolean,
|
||||
|
|
@ -342,6 +343,18 @@ gapp.register("kiri.ui", [], (root, exports) => {
|
|||
return nv;
|
||||
}
|
||||
|
||||
function toDegsFloat(){
|
||||
let nv = this.value !== '' ? parseFloat(this.value) : null;
|
||||
if (nv !== null && this.bound) nv = this.bound(nv);
|
||||
nv = (nv+360)% 360; // bound the val to 0-359.99
|
||||
if (this.setv) {
|
||||
return this.setv(nv);
|
||||
} else {
|
||||
this.value = nv;
|
||||
}
|
||||
return nv;
|
||||
}
|
||||
|
||||
function raw() {
|
||||
return this.value !== '' ? this.value : null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue