Socket
Book a DemoInstallSign in
Socket

svg-playhead

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-playhead

Render a playhead element as svg

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 01 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts