Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
skymakerolof committed Aug 8, 2023
1 parent 38fd3a6 commit 4b6cebf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
8 changes: 5 additions & 3 deletions src/handlers/entity/hatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const process = (tuples) => {
case 94:
case 95:
case 96:
if( drawType === 4 ) status = 'SPLINE'
if (drawType === 4) status = 'SPLINE'
fillDrawEntity(type, drawType, parseFloat(value))
break
case 42:
Expand Down Expand Up @@ -303,7 +303,7 @@ function fillDrawEntity(type, drawType, value) {
break
case 4:
{
drawEntity.controlPoints.points.push( { x: value, y: 0 } )
drawEntity.controlPoints.points.push({ x: value, y: 0 })
}
break
}
Expand All @@ -328,7 +328,9 @@ function fillDrawEntity(type, drawType, value) {
break
case 4:
{
drawEntity.controlPoints.points[ drawEntity.controlPoints.points.length - 1].y = value
drawEntity.controlPoints.points[
drawEntity.controlPoints.points.length - 1
].y = value
}
break
}
Expand Down
6 changes: 3 additions & 3 deletions src/handlers/entity/vertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export const TYPE = 'VERTEX'

const ensureFaces = (entity) => {
entity.faces = entity.faces || []
if('x' in entity && !entity.x) delete entity.x
if('y' in entity && !entity.y) delete entity.y
if('z' in entity && !entity.z) delete entity.z
if ('x' in entity && !entity.x) delete entity.x
if ('y' in entity && !entity.y) delete entity.y
if ('z' in entity && !entity.z) delete entity.z
}

export const process = (tuples) => {
Expand Down

0 comments on commit 4b6cebf

Please sign in to comment.