Socket
Socket
Sign inDemoInstall

standalone-vexflow-context

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    standalone-vexflow-context

Standalone vexflow contexts for supporting React Native & Node.js


Version published
Maintainers
1
Created

Readme

Source

standalone-vexflow-context

Browser independent VexFlow context

Getting Started

npm install standalone-vexflow-context

Ex)

import { ReactNativeSVGContext, NotoFontPack } from 'standalone-vexflow-context';
...
  render() {
    const context = new ReactNativeSVGContext(NotoFontPack, { width: 400, height: 400 });
    const stave = new Stave(100, 150, 200);
    stave.setContext(context);
    stave.setClef('treble');
    stave.setTimeSignature('4/4');
    stave.draw();

    return (
      <View>{ context.render() }</View>
    );
  }
...

And you can also start from this seed project, https://github.com/panarch/react-native-vexflow-seed

Keywords

FAQs

Last updated on 03 Feb 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc