Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
img
LICENSE.txt
README.md
board-browser.js
board-cli.js
board-common.js
board-draw.js
board-parser.js
board.js
package.json
svg-base.js
svg-browser.js
svg-direct.js

README.md

Akiha-board

Akiha-board draws printed wiring board pattern by ASCII-art.

How to use

Node.js

Install Akiha-board:

npm install -g akiha-board

To obtain a SVG file of printed wiring board pattern, you type the below command.

akiha-board [--option=value ...] akiha-board-file

The options are avaibale described later.

Browser

Write this HTML fragment in your HTML file.

<script src="akiha-board.js"></script>

To output printed wiring board pattern, you surround the source of the pattern in script tag whose type attribute is text/x-akiha-board.

Element

Akiha-board has the elements shown as follows.

Element Description
| or - wire
o node
p or q node; if the nodes is neighbored, the nodes will be shorted
+ branch of wire
# fill the box
* fill the box and branches the wires

Option

You can specify options by writing the line which begins ;#option=value. The value is optional. If you do not specify the value, the value true is specified.

Option Description
dpi dot per inch
lineWidth width of wire by inch
outerRadius radius of outer node by inch
innerRadius radius of inner node by inch
positive output positive pattern
negative output negative pattern

Example

Input:

;#positive
############
#*##########
 |        ##
 +-----+  ##
 | +-+ |  ##
 ooooooo  ##
          ##
          ##
 opppppo--*#
 +-----+  ##

Output:

svg

You can’t perform that action at this time.