svg-real-renderer
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.4 • Public • Published

    NPM

    SVG Real Renderer

    A Real Time 2D Graphical Rendering Engine Made With SVG.

    Table of Contents

    Usage

    RealRenderer can only be used in the browser through a svg element. The library can be directly used in the browser with the included dist files or can be compiled using a packager like webpack or a framework like react.

    Dist Files

    The browserified and minified dist files can be found in the /dist directory on github or in the npm package.

    Browser Usage

    Including the dist for SVG Real Renderer in a script tag.

    <script src="path/to/svg-real-renderer-browser.min.js"> <!-- Real Renderer Dist-->

    R RealRenderer can be used under the namespace SVGRealRenderer from any javascript file that is loaded after the two dist files.

    const renderer = SVGRealRenderer;
    const LineGraph = new renderer.LineGraph(options); // For example

    Node Usage

    svg-real-renderer packages need to be installed via npm or yarn.

    const DrawBoard = (new require('svg-real-renderer').RealDrawBoard()).attach(document.getElementById('svg-id'), [400, 500]) // DrawBoard is an example.

    NOTE: It works with typescript

    API

    The library exports some util functions(listed below) as well as some Real Renderers. In the browser, the library exports these under the global namespace variable SVGRealRenderer.

    Read the API markdown docs or HTML docs.

    Keywords

    none

    Install

    npm i svg-real-renderer

    DownloadsWeekly Downloads

    9

    Version

    0.4.4

    License

    MIT

    Unpacked Size

    420 kB

    Total Files

    196

    Last publish

    Collaborators

    • harshkhandeparkar