opened
amarzavery
username_0
This PR solves two issues
- It exposes the options object so that users can set the options to provide type, dir and generate options, otherwise we get an error in the generated svg as mentioned below and there is no way to set the type.
```
<svg xmlns='http://www.w3.org/2000/svg' width='350' height='30'><text fill='red' x='10' y='20'>Error: Missing mandatory 'type' directive</text></svg>
```
- At times, I got an error `Inavlid expression`. However, I had no clue what was wrong and what is the error stack for me to point and debug. With the changes in the second commit, this becomes much better.
```
Error: Invalid expression [ModelClass
    at parseYumlExpr (/Users/amarz/sdk/tmpd/node_modules/yuml2svg/scripts/class-diagram.js:102:18)
    at composeDotExpr (/Users/amarz/sdk/tmpd/node_modules/yuml2svg/scripts/class-diagram.js:117:18)
    at processYumlDocument (/Users/amarz/sdk/tmpd/node_modules/yuml2svg/scripts/yumldoc-utils.js:54:15)
    at /Users/amarz/sdk/tmpd/test.js:8:17
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
```
Exposing options object
issue
created
aduh95
username_1
Great proposals, indeed I've let the default settings after my fork, this is now fixed.
comment