Skip to content
Snippets Groups Projects
Commit 428ee7fc authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

units in plist instead of camplist

parent 62c7a1fc
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Created by aghassaei on 1/26/15. * Created by aghassaei on 1/26/15.
*/ */
define(['jquery', 'underscore', 'menuParent', 'camPlist', 'cam', 'lattice', 'text!camMenuTemplate'], define(['jquery', 'underscore', 'menuParent', 'camPlist', 'plist', 'cam', 'lattice', 'text!camMenuTemplate'],
function($, _, MenuParentView, camPlist, cam, lattice, template){ function($, _, MenuParentView, camPlist, plist, cam, lattice, template){
return MenuParentView.extend({ return MenuParentView.extend({
...@@ -36,7 +36,7 @@ define(['jquery', 'underscore', 'menuParent', 'camPlist', 'cam', 'lattice', 'tex ...@@ -36,7 +36,7 @@ define(['jquery', 'underscore', 'menuParent', 'camPlist', 'cam', 'lattice', 'tex
}, },
_makeTemplateJSON: function(){ _makeTemplateJSON: function(){
var data = _.extend(this.model.toJSON(), cam.toJSON(), camPlist, cam.get("assembler").toJSON(), lattice.toJSON()); var data = _.extend(this.model.toJSON(), cam.toJSON(), camPlist, plist, cam.get("assembler").toJSON(), lattice.toJSON());
if (cam.get("stockPositionRelative")){ if (cam.get("stockPositionRelative")){
var relStockPos = {}; var relStockPos = {};
relStockPos.x = data.stockPosition.x - data.originPosition.x; relStockPos.x = data.stockPosition.x - data.originPosition.x;
......
...@@ -202,12 +202,6 @@ define(['three'], function(THREE){ ...@@ -202,12 +202,6 @@ define(['three'], function(THREE){
shopbot: "Shopbot (sbp)", shopbot: "Shopbot (sbp)",
gcode: "G-Code", gcode: "G-Code",
tinyG: "TinyG (G-Code)" tinyG: "TinyG (G-Code)"
},
allUnitTypes: {
inches: "Inches",
mm: "mm",
um: "Micron"
} }
} }
......
...@@ -370,6 +370,12 @@ define(['three'], function(THREE){ ...@@ -370,6 +370,12 @@ define(['three'], function(THREE){
allScripts: { allScripts: {
loadFile: "Load From File..." loadFile: "Load From File..."
},
allUnitTypes: {
inches: "Inches",
mm: "mm",
um: "Micron"
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment