tweak sla hover help, bed, print preview

This commit is contained in:
Stewart Allen 2020-04-15 11:52:44 -04:00
commit 4f8a8e2ebd
9 changed files with 23 additions and 12 deletions

View file

@ -91,7 +91,7 @@ let gs_kiri_conf = exports;
noclone: valueOf(code.no_clone, false),
mode: mode || code.mode || '',
internal: 0,
bedHeight: 2.5,
bedHeight: valueOf(set.bed_height, 2.5),
bedWidth: valueOf(set.bed_width, 300),
bedDepth: valueOf(set.bed_depth, 175),
bedRound: valueOf(set.bed_circle, false),
@ -292,7 +292,7 @@ let gs_kiri_conf = exports;
internal: 0,
bedWidth: 150,
bedDepth: 150,
bedHeight: 2.5,
bedHeight: 1.5,
maxHeight: 150
},
// process defaults SLA:Process

View file

@ -228,6 +228,7 @@ let gs_kiri_sla = exports;
imgDV.setUint32(i, lineDV.getUint32(i));
}
ctx.putImageData(img,0,0);
$('print-layer').innerText = range.value.padStart(4,'0');
};
range.oninput();

View file

@ -1436,16 +1436,16 @@ var gs_kiri_init = exports;
outputLayerRetract: UC.newBoolean(LANG.ad_lret_s, onBooleanClick, {title:LANG.ad_lret_l, modes:FDM, expert:true}),
// SLA
slaProc: UC.newGroup('sla slice', null, {modes:SLA}),
slaProc: UC.newGroup('slice', null, {modes:SLA, group:"sla-slice"}),
slaSlice: UC.newInput('layer height', {title:'slice height', convert:UC.toFloat, modes:SLA}),
slaShell: UC.newInput('hollow shell', {title:'shell thickness in mm\nuse multiple of layer height\nuse 0 for solid', convert:UC.toInt, modes:SLA}),
slaOpenTop: UC.newBoolean('open top', onBooleanClick, {title:'solid layers', modes:SLA}),
slaOpenBase: UC.newBoolean('open base', onBooleanClick, {title:'bottom layers', modes:SLA}),
slaOutput: UC.newGroup('sla output', null, {modes:SLA}),
slaOutput: UC.newGroup('output', null, {modes:SLA, group:"sla-output"}),
slaLayerOn: UC.newInput('layer on', {title:'layer light on\ntime in seconds', convert:UC.toFloat, modes:SLA}),
slaLayerOff: UC.newInput('layer off', {title:'layer light off\ntime in seconds', convert:UC.toFloat, modes:SLA}),
slaBaseLayers: UC.newInput('base count', {title:'number of\bbase layers', convert:UC.toInt, modes:SLA}),
slaBaseOn: UC.newInput('base on', {title:'base layer light\non time in seconds', convert:UC.toFloat, modes:SLA}),
slaBaseLayers: UC.newInput('base count', {title:'number of\nbase layers', convert:UC.toInt, modes:SLA}),
slaBaseOn: UC.newInput('base on', {title:'base layer light on\ntime in seconds', convert:UC.toFloat, modes:SLA}),
slaPeelDist: UC.newInput('peel dist', {title:'peel distance\nin millimeters', convert:UC.toFloat, modes:SLA}),
slaPeelLift: UC.newInput('peel lift', {title:'peel lift speed\nin mm/sec', convert:UC.toFloat, modes:SLA}),
slaPeelDrop: UC.newInput('peel drop', {title:'peel drop speed\nin mm/sec', convert:UC.toFloat, modes:SLA}),

View file

@ -932,7 +932,7 @@ self.kiri.copyright = exports.COPYRIGHT;
SPACE.platform.setSize(
width = parseInt(dev.bedWidth),
depth = parseInt(dev.bedDepth),
height
height = parseFloat(dev.bedHeight)
);
SPACE.platform.setHidden(width > 500 || depth > 500);
platform.update_origin();

View file

@ -4,6 +4,7 @@
"settings":{
"bed_width": 115,
"bed_depth": 65,
"bed_height": 1,
"max_height": 155
}
}

View file

@ -4,6 +4,7 @@
"settings":{
"bed_width": 115,
"bed_depth": 65,
"bed_height": 1,
"max_height": 165
}
}

View file

@ -151,7 +151,7 @@ kiri.lang['en-us'] = {
se_save: "save",
// FDM SLICING
sl_menu: "slicing",
sl_menu: "slice",
sl_lahi_s: "layer height",
sl_lahi_l: "height of each slice\nlayer in millimeters",
sl_shel_s: "shell count",

View file

@ -20,6 +20,6 @@
</div>
<div class="print-sel">
<input id="print-range" type="range">
<input id="print-range" type="range"><label id="print-layer"></label>
<canvas id="print-canvas" width="1440" height="2560"></canvas>
</div>

View file

@ -271,11 +271,19 @@ input[type=range]::-moz-focus-outer {
text-align: right !important;
}
#print-canvas {
width: 360px;
height: 640px;
width: 180px;
height: 320px;
border: 1px solid #ccc;
background-color: #f5f5f5;
}
#print-range {
width: 90%;
width: 80%;
}
#print-layer {
border: 1px solid #ddd;
padding: 0 3px 0 3px;
margin: 0 5px 0 5px;
font-family: monospace;
}
#print .print-sel:hover {
border: 1px solid #555;