npm.io
2.1.0 • Published 9 years ago

svg-transport-controls

Licence
MIT
Version
2.1.0
Deps
2
Vulns
0
Weekly
0
Stars
1

svg-transport-controls

DAW transport controls as svg.

screenshot

Usage

const controls = require('svg-transport-controls')
const html = require('bel')

document.body.appendChild(html`
  <svg>
    ${controls().render({
      width: 210,
      height: 35,
      playing: false
    })}
    ${controls().render({
      width: 210,
      height: 35,
      y: 50,
      playing: true
    })}
    ${controls().render({
      width: 210,
      height: 35,
      y: 100,
      playing: true,
      recording: true
    })}
  </svg>
`)

License

MIT