1.1.0 • Published 6 years ago

proportions v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Proportions for JavaScript 📐

npm module Dependencies devDependencies Status

Organic, Mechanical and Musical Proportions for JavaScript

From The Elements of Typographic Style by Robert Bringhurst.

npm install proportions

Import the whole proportions object:

import proportions from 'proportions'

Or "destructure" it to only get a select few:

import { goldenSection } from 'proportions'

Available proportions:

export {
  doubleSquare,
  tallOctagon,
  tallHexagon,
  octagon,
  hexagon,
  tallPentagon,
  goldenSection,
  pentagon,
  shortPentagon,
  tallHalfOctagon,
  halfOctagon,
  truncatedPentagon,
  turnedHexagon,
  tallCrossOctagon,
  turnedPentagon,
  square,
  broadPentagon,
  broadCrossOctagon,
  broadHexagon,
  fullCrossOctagon,
  iso,
  octave,
  majorSeventh,
  minorSeventh,
  majorSixth,
  minorSixth,
  fifth,
  diminishedFifth,
  augmentedFourth,
  fourth,
  majorThird,
  minorThird,
  majorSecond,
  minorSecond,
  unison
}
1.1.0

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago