Use 8.5inch default width for A4 paper
This commit is contained in:
parent
70c0161caf
commit
95259f48bc
|
@ -79,7 +79,7 @@ input{
|
|||
<div>
|
||||
<div>
|
||||
<label for="pageW">Sheet Width</label>
|
||||
<input name="pageW" type="number" value="11" /> in
|
||||
<input name="pageW" type="number" value="8.5" /> in
|
||||
</div>
|
||||
<div>
|
||||
<label for="pageH">Sheet Height</label>
|
||||
|
|
|
@ -16,8 +16,6 @@ if (!browser) {
|
|||
createCanvas = require('canvas').createCanvas
|
||||
}
|
||||
|
||||
|
||||
|
||||
function line (ctx, rgba, start, end) {
|
||||
ctx.strokeStyle = `rgba(${rgba})`
|
||||
ctx.beginPath()
|
||||
|
@ -78,10 +76,9 @@ function taper (back, front, length, pos) {
|
|||
*
|
||||
* @example
|
||||
* Generate the default square bellows in 2 parts and print the string to the console.
|
||||
* ```
|
||||
*
|
||||
* const b = bellows({ parts : 2 })
|
||||
* console.log(b)
|
||||
* ```
|
||||
*/
|
||||
|
||||
function bellows (options = {}) {
|
||||
|
@ -91,7 +88,7 @@ function bellows (options = {}) {
|
|||
let dpi = options.dpi || 300
|
||||
const MM = dpi / IN
|
||||
|
||||
let pageW = options.pageW || dpi * 11
|
||||
let pageW = options.pageW || dpi * 8.5
|
||||
let pageH = options.pageH || dpi * 11
|
||||
|
||||
let frontIW = options.frontIW || Math.round(MM * 40)
|
||||
|
|
Loading…
Reference in New Issue