This package has been deprecated

Author message:

Please consider using the package exsurge-angular as this one is no longer maintained!

exsurge-angular-beta
TypeScript icon, indicating that this package has built-in type declarations

1.0.18 • Public • Published

Exsurge Renderer for Angular

Angular component that can be used to render gregorian chant in the GABC format, either in SVG or PNG.

This component uses a fork created by Benjamin Bloomfield from the exsurge component by Fr. Matthew Spencer, OSJ.

Currently, the exsurge used by this component is at commit 95456f1e.

Usage

This project was built and tested with the following configuration:

Angular CLI: 7.3.6

Node: 10.15.1

Angular: 7.2.10

To use the component, install it with npm install exsurge-angular. Then, on the component, just import it invoking import {ExsurgeRendererModule} from 'exsurge-angular'.

On the html template, just use the tag <lib-exsurge-renderer/> and pass the source to render as below:

<h1>EXAMPLES</h1>
  <div>
    <h2>Render in canvas</h2>
    <textarea [(ngModel)]="canvasTextAreaValue" rows="25"></textarea>
    <lib-exsurge-renderer source="{{canvasTextAreaValue}}" [isRenderInCanvas]="true"></lib-exsurge-renderer>
    <p></p>
  </div>
  <div>
    <h2>Render in SVG</h2>
    <textarea [(ngModel)]="svgTextAreaValue" rows="25"></textarea>
    <lib-exsurge-renderer source="{{svgTextAreaValue}}" [isRenderInCanvas]="false"></lib-exsurge-renderer>
  </div>

External sources:

Package Sidebar

Install

npm i exsurge-angular-beta

Weekly Downloads

1

Version

1.0.18

License

MIT

Unpacked Size

1.28 MB

Total Files

34

Last publish

Collaborators

  • suri24