svg-playhead

3.0.0 • Public • Published

svg-playhead

Render a playhead element as svg.

screenshot

Usage

const Playhead = require('svg-playhead')
const html = require('bel')

const playhead = Playhead()

const el = html`
  <svg heigth=600 width=100>
    <rect height=100% width=100% fill=gray />
    <g transform="translate(40, 0)">
      ${playhead.render({ height: 600, width: 10 })}
    </g>
  </svg>
`

document.body.appendChild(el)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i svg-playhead

Weekly Downloads

5

Version

3.0.0

License

MIT

Last publish

Collaborators

  • juliangruber