add ability for ui components to enable/disable based on arbitrary functions. add laser slice min height when auto detect enabled

This commit is contained in:
Stewart Allen 2020-10-10 13:36:20 -04:00
commit 9238a68257
6 changed files with 29 additions and 5 deletions

View file

@ -40,7 +40,9 @@
}
SLICER.sliceWidget(widget, {
height: proc.laserSliceHeight, single: proc.laserSliceSingle
single: proc.laserSliceSingle,
height: proc.laserSliceHeight,
minHeight: proc.laserSliceHeight === 0 ? proc.laserSliceHeightMin : 0
}, function(slices) {
widget.slices = slices;
slices.forEach(function(slice, index) {