Skip to content
This repository has been archived by the owner on Jul 23, 2018. It is now read-only.

Commit

Permalink
Cleanup CI, README, and LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed May 2, 2016
1 parent 4a516c7 commit 2b0cc1e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sudo: false
language: node_js
node_js:
- 0.10
- 0.12
- node
- "0.10"
- "4"
- node
matrix:
include:
- node_js: node
Expand Down
20 changes: 10 additions & 10 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,29 +90,29 @@ The output will be a string of an SVG node with the following format:

``` xml
<svg
id="<id>"
id="${id}"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="<width><units>"
height="<height><units>"
viewBox="<min-x * 1000> <min-y * 1000> <width * 1000> <height * 1000>"
width="${width}${units}"
height="${height}${units}"
viewBox="${xMin * 1000} ${yMin * 1000} ${width * 1000} ${height * 1000}"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="0">

<defs>
<!-- example pad definition -->
<circle cx="0" cy="0" r="200" id="<id>_pad-10"/>
<circle cx="0" cy="0" r="200" id="${id}_pad-10"/>
</defs>

<g
transform="translate(0,<1000 * (min-y + max-y)>) scale(1,-1)"
fill="<color>"
stroke="<color>">
transform="translate(0,${1000 * (yMin + yMax)}) scale(1,-1)"
fill="${color}"
stroke="${color}">

<!-- example pad flash -->
<use x="1000" y="1000" xlink:href="#<id>_pad-10"/>
<use x="1000" y="1000" xlink:href="#${id}_pad-10"/>
<!-- example stroke -->
<path stroke-width="5" fill="none" d="M 400 400 400 200 200 200"/>
<!-- example region -->
Expand Down Expand Up @@ -204,7 +204,7 @@ The interior (innerText) of the `defs` node of the SVG. This is where pad shapes

### layer

The interior of the top-level `g` node of the SVG. This is where regions, strokes, and flashes of dark layers will be. If there are clear layers, there may be nested `g` nodes with `mask` attributes inside `layer`.
The interior of the top-level `g` node of the SVG. This is where regions, strokes, and flashes of dark layers will be. If there are clear layers, there may be nested `g` nodes with `mask` attributes inside `layer`. If no image was produces, this property will be falsey.

### viewBox

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2015 by Michael Cousins and contributors, shared under the terms of the MIT License.
Copyright 2014 by Michael Cousins and contributors, shared under the terms of the MIT License.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ Browser tests are run with [Zuul](https://github.com/defunctzombie/zuul) and [Sa

The visual test suite made up of sample Gerber files and expected (looks-like) results. Expected SVGs are output from [gerbv](http://gerbv.geda-project.org/) or hand-coded if the gerbv render is incorrect. Sample files live in [test-visual/gerber](./test-visual/gerber) and expected results live in [test-visual/expected](./test-visual/expected).

To run the visual tests, run `$ npm run test-visual` and point your browser to [localhost:4242](http://localhost.com:4242). Refreshing the page will re-render the files.
To run the visual tests, run `$ npm run test:visual` and point your browser to [localhost:4242](http://localhost.com:4242). Refreshing the page will re-render the files.

0 comments on commit 2b0cc1e

Please sign in to comment.