From 100dab2a343a48146e57d58a0418a6c8f04109b6 Mon Sep 17 00:00:00 2001
From: Neil Gershenfeld <gersh@cba.mit.edu>
Date: Thu, 20 Sep 2018 22:19:03 -0400
Subject: [PATCH] wip

---
 modules/processes/mill/raster/2D       | 12 ++++++------
 modules/processes/mill/raster/3D/rough | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/modules/processes/mill/raster/2D b/modules/processes/mill/raster/2D
index 22d6dcc..5918c2b 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 ce0136f..96193de 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
-- 
GitLab