add global slicePre similar to sliceAll (which should be renamed slicePost)

add shared cam operational state so index+stock can run once for all instances
This commit is contained in:
Stewart Allen 2026-01-03 11:42:37 -05:00
commit 87e4a32092
6 changed files with 70 additions and 13 deletions

View file

@ -420,6 +420,18 @@ const dispatch = {
send.done({});
},
slicePre(data, send) {
const { settings } = data;
const { mode } = settings;
const driver = drivers[mode];
if (driver.slicePre) {
driver.slicePre(settings);
}
send.done();
},
slice(data, send) {
send.data({ update:0.001, updateStatus:"slicing" });