proportions

1.1.0 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i proportions

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

10.4 kB

Total Files

6

Last publish

Collaborators

  • christianhg