diff --git a/modules/processes/mill/raster/2D b/modules/processes/mill/raster/2D index 22d6dcc3b55581bea8457113b880f1f88ea260a2..5918c2bae78c5285a2cf47088d324956029c8e93 100644 --- a/modules/processes/mill/raster/2D +++ b/modules/processes/mill/raster/2D @@ -40,7 +40,7 @@ var init = function() { // inputs // var inputs = { - imageInfo:{type:'object', + imageInfo:{type:'', event:function(evt){ mod.name = evt.detail.name mod.dpi = evt.detail.dpi @@ -50,7 +50,7 @@ var inputs = { ctx.canvas.width = mod.width ctx.canvas.height = mod.height }}, - path:{type:'array', + path:{type:'', event:function(evt){ if (mod.label.nodeValue == 'calculating') { draw_path(evt.detail) @@ -73,7 +73,7 @@ var inputs = { } } }, - settings:{type:'object', + settings:{type:'', event:function(evt){ set_values(evt.detail) } @@ -83,18 +83,18 @@ var inputs = { // outputs // var outputs = { - diameter:{type:'number', + diameter:{type:'', event:function(){ mods.output(mod,'diameter',Math.ceil(mod.dpi*mod.dia_in.value)) } }, - offset:{type:'number', + offset:{type:'', event:function(){ var pixels = mod.offset*parseFloat(mod.dia_in.value)*mod.dpi mods.output(mod,'offset',pixels) } }, - toolpath:{type:'object', + toolpath:{type:'', event:function(){ cmd = {} cmd.path = mod.path diff --git a/modules/processes/mill/raster/3D/rough b/modules/processes/mill/raster/3D/rough index ce0136f58e36ede15ecdc3a69aca5cfa36802970..96193dec55ae9a45703f8d3dfa632f1e61f78121 100644 --- a/modules/processes/mill/raster/3D/rough +++ b/modules/processes/mill/raster/3D/rough @@ -40,7 +40,7 @@ var init = function() { // inputs // var inputs = { - imageInfo:{type:'object', + imageInfo:{type:'', event:function(evt){ mod.name = evt.detail.name mod.dpi = evt.detail.dpi @@ -50,7 +50,7 @@ var inputs = { ctx.canvas.width = mod.width ctx.canvas.height = mod.height }}, - path:{type:'array', + path:{type:'', event:function(evt){ if (mod.label.nodeValue == 'calculating') { draw_path(evt.detail) @@ -73,7 +73,7 @@ var inputs = { } } }, - settings:{type:'object', + settings:{type:'', event:function(evt){ set_values(evt.detail) } @@ -83,18 +83,18 @@ var inputs = { // outputs // var outputs = { - diameter:{type:'number', + diameter:{type:'', event:function(){ mods.output(mod,'diameter',Math.ceil(mod.dpi*mod.dia_in.value)) } }, - offset:{type:'number', + offset:{type:'', event:function(){ var pixels = mod.offset*parseFloat(mod.dia_in.value)*mod.dpi mods.output(mod,'offset',pixels) } }, - toolpath:{type:'object', + toolpath:{type:'', event:function(){ cmd = {} cmd.path = mod.path