gerber-to-svg
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -445,2 +445,6 @@ (function() { | ||
this.quad = 'm'; | ||
} else if (code === 'G70') { | ||
this.backupUnits = 'in'; | ||
} else if (code === 'G71') { | ||
this.backupUnits = 'mm'; | ||
} else if (!code.match(/^G(0?4)|(5[45])|(7[01])|(9[01])/)) { | ||
@@ -669,3 +673,7 @@ throw new SyntaxError('invalid operation G code'); | ||
if (this.units == null) { | ||
throw new Error('units have not been set'); | ||
if (this.backupUnits != null) { | ||
this.units = this.backupUnits; | ||
} else { | ||
throw new Error('units have not been set'); | ||
} | ||
} | ||
@@ -672,0 +680,0 @@ newPosition = this.coordinate(coord); |
{ | ||
"name": "gerber-to-svg", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Gerber file to SVG converter", | ||
@@ -5,0 +5,0 @@ "main": "lib/gerber-to-svg.js", |
@@ -1,3 +0,3 @@ | ||
# gerber-to-svg | ||
Javascript Gerber file to SVG converter for Node and the browser. | ||
# gerber-to-svg [![Build Status](http://img.shields.io/travis/mcous/gerber-to-svg.svg?style=flat)](https://travis-ci.org/mcous/gerber-to-svg) [![Version](http://img.shields.io/npm/v/gerber-to-svg.svg?style=flat)](https://www.npmjs.org/package/gerber-to-svg) | ||
Gerber file to SVG converter for Node and the browser. | ||
@@ -4,0 +4,0 @@ ## usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168581
1867