README.md 1.2 KB
Newer Older
Julian Frosch's avatar
Julian Frosch committed
1
2
# BezLinApp for node.js and electron
This is an application written with node.js and electron that tries to do a piecewise linear approximation on Bezier curves in a given SVG-file.
3
4
5

## How to start
Before starting, npm is required.
6
7
8
9
10
11
Furthermore, the npm-package *electron-prebuilt* is required. Installing it will take some time, as it contains some data...
So ensure that you have a rather good connection. Run
```
sudo npm install electron-prebuilt -g
```
and electron will be installed!
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

In order to test the program, clone the repo, cd into it's directory and run 
```
npm install
```

This will download the dependencies and create a folder *node_modules/* with their data.
Next you can run
```
npm start
```
or
```
electron .
```
to start the application!

Julian Frosch's avatar
Julian Frosch committed
29
## Using the app
30
You will see the window with a *Hello World!*-Greeting and some text on the left and the developer-tools on the right.
Julian Frosch's avatar
Julian Frosch committed
31
You can just drag an SVG-File (example-file is in the res/-folder) directly onto the "Drag your SVG-File here!"-Text on the left side. Once done, the program will read the data of all paths in your file (may get an error warning if there is no such data... duh) and show the parsed data in the "console" on the right side :)