add jsdoc

This commit is contained in:
bakedpotatolord 2025-05-16 10:08:22 -06:00
commit ff5b470b79

View file

@ -68,6 +68,11 @@ class Engine {
return this;
}
/**
* Sets the mode of the engine. Valid modes are:
* @param {"FDM"|"CAM"|"LASER"|"SLA"} mode - the mode to set
* @returns {Engine} this
*/
setMode(mode) {
this.settings.mode = mode;
return this;