bellows-generator/README.md

1.8 KiB

bellows

Example

const bellows = require('bellows')

bellows([options]) ⏏

Kind: Exported function
Typicalname:bellows: Generate bellows pattern for cutting and folding.

Param Type Description
[options] Object Bellows configuration options
[options.dpi] Integer DPI of the image
[options.pageW] Integer Page width in pixels
[options.pageH] Integer Page height in pixels
[options.frontIW] Integer Front inner width of bellows in pixels
[options.frontOW] Integer Front outer width of bellows in pixels
[options.frontIH] Integer Front inner height of bellows in pixels
[options.frontOH] Integer Front outer height of bellows in pixels
[options.backIW] Integer Back inner width of bellows in pixels
[options.backOW] Integer Back outer width of bellows in pixels
[options.backIH] Integer Back inner height of bellows in pixels
[options.backOH] Integer Back outer height of bellows in pixels
[options.maxLength] Integer Maximum length of bellows in pixels
[options.align] Integer Vertical alignment adjustment in pixels
[options.parts] Integer Number of parts to split pattern into: 1, 2, or 4
[options.key] Boolean Print key on page
[options.overlap] Boolean Add overlapping flap between parts returns {String} Base64 encoded png data

Example

const b = bellows({ parts : 2 })
console.log(b)