Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gerber-to-svg

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gerber-to-svg - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [4.2.1](https://github.com/tracespace/tracespace/compare/v4.2.0...v4.2.1) (2020-04-30)
### Bug Fixes
* **deps:** update devDependencies, React, and yargs ([#315](https://github.com/tracespace/tracespace/issues/315)) ([34ebb3e](https://github.com/tracespace/tracespace/commit/34ebb3e))
# [4.2.0](https://github.com/tracespace/tracespace/compare/v4.1.1...v4.2.0) (2019-10-10)

@@ -8,0 +19,0 @@

10

package.json
{
"name": "gerber-to-svg",
"version": "4.2.0",
"version": "4.2.1",
"description": "Render individual Gerber / NC drill files as SVGs",

@@ -42,6 +42,6 @@ "main": "index.js",

"@tracespace/xml-id": "^4.0.0",
"@types/node": "^12.7.11",
"@types/node": "^13.1.6",
"escape-html": "^1.0.3",
"gerber-parser": "^4.2.0",
"gerber-plotter": "^4.2.0",
"gerber-parser": "^4.2.1",
"gerber-plotter": "^4.2.1",
"inherits": "^2.0.4",

@@ -52,3 +52,3 @@ "lodash.isfinite": "^3.3.2",

},
"gitHead": "4304c118ad28283ef15184b9b5dc0e28a0a5630d"
"gitHead": "71020e5ec5a2b87c781f9becf18758aa15444ba3"
}

@@ -102,3 +102,12 @@ // test suite for the plotter to svg transform stream

it('should handle polygon primitives', function() {
var toolShape = [{type: 'poly', points: [[0, 0], [1, 0], [0, 1]]}]
var toolShape = [
{
type: 'poly',
points: [
[0, 0],
[1, 0],
[0, 1],
],
},
]
var expected = {id: 'id_pad-12', points: '0,0 1000,0 0,1000'}

@@ -194,6 +203,38 @@

var clippedShapes = [
{type: 'poly', points: [[po, po], [mP, po], [mP, mP], [po, mP]]},
{type: 'poly', points: [[ne, po], [mN, po], [mN, mP], [ne, mP]]},
{type: 'poly', points: [[ne, ne], [mN, ne], [mN, mN], [ne, mN]]},
{type: 'poly', points: [[po, ne], [mP, ne], [mP, mN], [po, mN]]},
{
type: 'poly',
points: [
[po, po],
[mP, po],
[mP, mP],
[po, mP],
],
},
{
type: 'poly',
points: [
[ne, po],
[mN, po],
[mN, mP],
[ne, mP],
],
},
{
type: 'poly',
points: [
[ne, ne],
[mN, ne],
[mN, mN],
[ne, mN],
],
},
{
type: 'poly',
points: [
[po, ne],
[mP, ne],
[mP, mN],
[po, mN],
],
},
]

@@ -703,3 +744,8 @@ var ring = {type: 'ring', r: 0.004, width: 0.002, cx: 0, cy: 0}

it('if only one layer, it should wrap the current layer and repeat it', function() {
var offsets = [[0, 0], [0, 1], [1, 0], [1, 1]]
var offsets = [
[0, 0],
[0, 1],
[1, 0],
[1, 1],
]
var expected = [

@@ -730,3 +776,8 @@ {'xlink:href': '#id_pad-10', x: 250, y: 250},

it('should allow several layers in a block', function() {
var offsets = [[0, 0], [0, 5], [5, 0], [5, 5]]
var offsets = [
[0, 0],
[0, 5],
[5, 0],
[5, 5],
]

@@ -931,3 +982,8 @@ p.write({type: 'repeat', offsets: offsets, box: [0, 0, 0.5, 0.5]})

it('should handle step repeats that start with clear', function() {
var offsets = [[0, 0], [0, 0.5], [0.5, 0], [0.5, 0.5]]
var offsets = [
[0, 0],
[0, 0.5],
[0.5, 0],
[0.5, 0.5],
]

@@ -1033,3 +1089,8 @@ p.layer = ['LAYER']

it('should handle step repeats that start with dark then change to clear', function() {
var offsets = [[0, 0], [0, 0.5], [0.5, 0], [0.5, 0.5]]
var offsets = [
[0, 0],
[0, 0.5],
[0.5, 0],
[0.5, 0.5],
]

@@ -1077,3 +1138,8 @@ p.layer = ['SOME_EXISTING_STUFF']

it('should handle polarity switches with no objects gracefully', function() {
var offsets = [[0, 0], [0, 0.5], [0.5, 0], [0.5, 0.5]]
var offsets = [
[0, 0],
[0, 0.5],
[0.5, 0],
[0.5, 0.5],
]

@@ -1091,3 +1157,8 @@ p.layer = ['SOME_EXISTING_STUFF']

it('should handle Infinities in the box', function() {
var offsets = [[0, 0], [0, 0.5], [0.5, 0], [0.5, 0.5]]
var offsets = [
[0, 0],
[0, 0.5],
[0.5, 0],
[0.5, 0.5],
]

@@ -1172,3 +1243,8 @@ p.layer = ['SOME_EXISTING_STUFF']

it('should finish any in-progress repeat', function() {
var offsets = [[0, 0], [0, 1], [1, 0], [1, 1]]
var offsets = [
[0, 0],
[0, 1],
[1, 0],
[1, 1],
]

@@ -1175,0 +1251,0 @@ p.write({type: 'repeat', offsets: offsets, box: [0, 0, 0.5, 0.5]})

Sorry, the diff of this file is too big to display

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc