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();