# @intesso/scratch-svg-renderer

> SVG renderer for Scratch

Latest version **0.2.3** (published 2019-12-19) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @intesso/scratch-svg-renderer
pnpm add @intesso/scratch-svg-renderer
yarn add @intesso/scratch-svg-renderer
bun add @intesso/scratch-svg-renderer
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2019-12-19 |
| First published | 2019-07-12 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Author | Massachusetts Institute of Technology |
| Maintainers | intesso |

## Links

- npm: https://www.npmjs.com/package/@intesso/scratch-svg-renderer
- Repository: https://github.com/LLK/scratch-svg-renderer
- Homepage: https://github.com/LLK/scratch-svg-renderer#readme
- Issues: https://github.com/LLK/scratch-svg-renderer/issues
- npm.io page: https://npm.io/package/@intesso/scratch-svg-renderer

## Dependencies (6)

- [minilog](https://npm.io/package/minilog.md) 3.1.0
- [base64-js](https://npm.io/package/base64-js.md) 1.2.1
- [base64-loader](https://npm.io/package/base64-loader.md) 1.0.0
- [@intesso/scratch-env](https://npm.io/package/@intesso/scratch-env.md) ^1.0.0
- [scratch-render-fonts](https://npm.io/package/scratch-render-fonts.md) 1.0.0-prerelease.20180906193204
- [transformation-matrix](https://npm.io/package/transformation-matrix.md) 1.14.1

## Recent versions

- 0.2.3 (latest) — 2019-12-19
- 0.2.2 — 2019-07-12
- 0.2.1 — 2019-07-12
- 0.2.0 — 2019-07-12

## README

# scratch-svg-renderer

[![Greenkeeper badge](https://badges.greenkeeper.io/LLK/scratch-svg-renderer.svg)](https://greenkeeper.io/)
A class built for importing SVGs into [Scratch](https://github.com/LLK/scratch-gui). Imports an SVG string to a DOM element or an HTML canvas. Handles some of the quirks with Scratch 2.0 SVGs, which sometimes misreport their width, height and view box.

## Installation
This requires you to have Git and Node.js installed.

To install as a dependency for your own application:
```bash
npm install scratch-svg-renderer
```
To set up a development environment to edit scratch-svg-renderer yourself:
```bash
git clone https://github.com/LLK/scratch-svg-renderer.git
cd scratch-svg-renderer
npm install
```

## How to include in a Node.js App
```js
import SvgRenderer from 'scratch-svg-renderer';

var svgRenderer = new SvgRenderer();
svgRenderer.fromString(svgData, callback);
```

## Donate
We provide [Scratch](https://scratch.mit.edu) free of charge, and want to keep it that way! Please consider making a [donation](https://secure.donationpay.org/scratchfoundation/) to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!

---
_Source: https://npm.io/package/@intesso/scratch-svg-renderer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
