File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 "three" : " ^0.178.0" ,
6565 "three-mesh-bvh" : " ^0.7.6" ,
6666 "uglify-js" : " 3.14.5" ,
67- "validator" : " >=13.15.15 " ,
67+ "validator" : " >=13.15.23 " ,
6868 "ws" : " ^8.18.2"
6969 },
7070 "devDependencies" : {
Original file line number Diff line number Diff line change 11/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
22
33import { util } from '../../../geo/base.js' ;
4- import { fdm_slice , sliceAll } from './slice.js' ;
4+ import { fdm_slice , sliceAll , supports } from './slice.js' ;
55import { fdm_prepare } from './prepare.js' ;
66import { fdm_export } from './export.js' ;
7+ import { codec } from '../../core/codec.js' ;
78
89// noz = nozzle diameter
910// fil = filament diameter
@@ -26,8 +27,8 @@ function init(worker) {
2627 worker . dispatch . fdm_support_generate = function ( data , send ) {
2728 const { settings } = data ;
2829 const widgets = Object . values ( worker . cache ) ;
29- const fresh = widgets . filter ( widget => FDM . supports ( settings , widget ) ) ;
30- send . done ( kiri . codec . encode ( fresh . map ( widget => { return {
30+ const fresh = widgets . filter ( widget => supports ( settings , widget ) ) ;
31+ send . done ( codec . encode ( fresh . map ( widget => { return {
3132 id : widget . id ,
3233 supports : widget . supports ,
3334 } } ) ) ) ;
You can’t perform that action at this time.
0 commit comments