Skip to content

Commit

Permalink
Merge fa26de3 into f1a2063
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Jan 24, 2020
2 parents f1a2063 + fa26de3 commit 132c18a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/maslowWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -138164,11 +138164,11 @@ return d[d.length-1];};return ", funcName].join("");
return Shape.fromGeometry(values[0]).as(values[1]).toDisjointGeometry();
case 'specify':
console.log(Shape.fromGeometry(values[0]));
return Shape.fromGeometry(values[0]).item([values[1]]).toDisjointGeometry();
return Shape.fromGeometry(values[0]).Item(values[1]).toDisjointGeometry();
case 'translate':
return Shape.fromGeometry(values[0]).move(values[1], values[2], values[3]).toDisjointGeometry();
case 'getBOM':
return Shape.fromGeometry(values[0]).toBillOfMaterial();
return Shape.fromGeometry(values[0]).bom();
case 'union':
return union$5(Shape.fromGeometry(values[0]), Shape.fromGeometry(values[1])).toDisjointGeometry();
default:
Expand Down
9 changes: 6 additions & 3 deletions src/js/BOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class BOMEntry {
* The number of this item needed.
* @type {number}
*/
this.numberNeeded = 0
this.numberNeeded = 1
/**
* The cost of one of this item in USD.
* @type {number}
Expand Down Expand Up @@ -48,9 +48,12 @@ export const extractBomTags = async(geometry) => {

if (result != -1 ){
//Filter for only bomItems
bomItems = result.filter(item => {return item.substring(5, 12) == "BOMitem"})
bomItems = bomItems.map(JSON.parse)
bomItems = result.filter(item => {
return item[0].substring(2, 13) == "BOMitemName"
})

bomItems = bomItems.map(JSON.parse)
//bomItems = bomItems.map(JSON.parse)

//Consolidate similar items into a single item
var compiledArray = []
Expand Down

0 comments on commit 132c18a

Please sign in to comment.