This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/@jscad/svg-deserializer/README.md

60 lines
1.5 KiB
Markdown
Raw Normal View History

## @jscad/svg-deserializer
> svg deserializer for the jscad project
[![npm version](https://badge.fury.io/js/%40jscad%2Fsvg-deserializer.svg)](https://badge.fury.io/js/%40jscad%2Fsvg-deserializer)
[![Build Status](https://travis-ci.org/jscad/io.svg)](https://travis-ci.org/jscad/svg-deserializer)
## Overview
This deserializer converts raw svg data to jscad code (that can be evaluated to CSG/CAG).
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Contribute](#contribute)
- [Acknowledgements](#acknowledgements)
- [Sponsors](#sponsors)
- [License](#license)
## Installation
```
npm install @jscad/svg-deserializer
```
## Usage
```javascript
const svgDeSerializer = require('@jscad/svg-deserializer').deserialize
const rawData = fs.readFileSync('PATH/TO/file.svg')
const csgData = svgDeSerializer(rawData)
```
## Contribute
For questions about the API, please contact the [User Group](https://plus.google.com/communities/114958480887231067224)
PRs accepted.
Small Note: If editing this README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## Acknowledgements
OpenJSCAD and its sub components are built upon great open source work, contribution & modules.
## Sponsors
* The upgrades (direct CSG output from this deserializer) and refactoring have been very kindly sponsored by [Copenhagen Fabrication / Stykka](https://www.stykka.com/)
## License
[The MIT License (MIT)](./LICENSE)
(unless specified otherwise)