gerber-to-svg
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -28,4 +28,4 @@ (function() { | ||
params.hole = { | ||
width: parseFloat(mods[2]), | ||
height: parseFloat(mods[1]) | ||
width: parseFloat(mods[1]), | ||
height: parseFloat(mods[2]) | ||
}; | ||
@@ -47,4 +47,4 @@ } else if (mods.length > 1) { | ||
params.hole = { | ||
width: parseFloat(mods[3]), | ||
height: parseFloat(mods[2]) | ||
width: parseFloat(mods[2]), | ||
height: parseFloat(mods[3]) | ||
}; | ||
@@ -66,4 +66,4 @@ } else if (mods.length > 2) { | ||
params.hole = { | ||
width: parseFloat(mods[3]), | ||
height: parseFloat(mods[2]) | ||
width: parseFloat(mods[2]), | ||
height: parseFloat(mods[3]) | ||
}; | ||
@@ -89,4 +89,4 @@ } else if (mods.length > 2) { | ||
params.hole = { | ||
width: parseFloat(mods[4]), | ||
height: parseFloat(mods[3]) | ||
width: parseFloat(mods[3]), | ||
height: parseFloat(mods[4]) | ||
}; | ||
@@ -319,2 +319,3 @@ } else if (mods.length > 3) { | ||
} | ||
this.currentTool = ad.code; | ||
break; | ||
@@ -321,0 +322,0 @@ case 'AM': |
{ | ||
"name": "gerber-to-svg", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Gerber file to SVG converter", | ||
@@ -29,12 +29,19 @@ "main": "lib/gerber-to-svg.js", | ||
"devDependencies": { | ||
"browserify": "^5.9.1", | ||
"coffee-script": "^1.7.1", | ||
"coffeeify": "^0.7.0", | ||
"gulp": "^3.8.5", | ||
"gulp-coffee": "^2.0.1", | ||
"gulp-mocha": "^0.4.1", | ||
"gulp-rename": "^1.2.0", | ||
"gulp-streamify": "0.0.5", | ||
"gulp-uglify": "^0.3.1", | ||
"gulp-util": "^2.2.19", | ||
"jquery": "^2.1.1", | ||
"mocha": "^1.20.1", | ||
"should": "^4.0.4" | ||
"node-static": "^0.7.4", | ||
"should": "^4.0.4", | ||
"vinyl-source-stream": "^0.1.1" | ||
}, | ||
"dependencies": { | ||
} | ||
"dependencies": {} | ||
} |
@@ -10,8 +10,13 @@ # 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) | ||
### api (with Node or in the Browser with Browserify) | ||
### api (node and browser) | ||
For Node and Browserify: | ||
1. `$ npm install --save(-dev) gerber-to-svg` | ||
2. Add `var gerberToSvg = require(gerber-to-svg);` to your JavaScript | ||
If you'd rather not manage your packages: | ||
1. Download the standalone [library]() or [minified library]() | ||
2. Add `<script src="path/to/gerber-to-svg.js"></script>` to your HTML before your application | ||
Use in your app with: | ||
``` javascript | ||
var gerberToSvg = require(gerber-to-svg); | ||
var svgString = gerberToSvg(gerberString); | ||
@@ -18,0 +23,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
254491
45
3732
37
15
2
5