fix contour curvesOnly with threaded slicing. add booleans to codec

This commit is contained in:
Stewart Allen 2023-01-15 17:23:48 -05:00
commit 3f372e70aa
3 changed files with 8 additions and 4 deletions

View file

@ -39,6 +39,7 @@ function toCodable(object) {
switch (typeof object) {
case 'function':
return undefined;
// case 'boolean':
case 'string':
case 'number':
return object;
@ -101,6 +102,7 @@ function encode(o, state) {
return arr;
}
switch (typeof(o)) {
case 'boolean':
case 'string':
case 'number':
return o;
@ -120,6 +122,7 @@ function decode(o, state) {
return o;
}
switch (typeof(o)) {
case 'boolean':
case 'string':
case 'number':
return o;