Skip to content

Commit

Permalink
Fix read me
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan-Lyashenko committed Nov 5, 2017
1 parent 6ebe1d4 commit c3c055d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ You can find sources for examples explained below in [docs directory](/docs).
/**
* Access APIs when js2flowchart injected into HTML page
*/
const {convertFlowTreeToSvg, convertCodeToFlowTree} = window.js2flowchart;
const {convertCodeToFlowTree, convertFlowTreeToSvg} = window.js2flowchart;

/**
* or import from node_modules
*/
import {convertFlowTreeToSvg, convertCodeToFlowTree} from 'js2flowchart';//way 1
import {convertCodeToFlowTree, convertFlowTreeToSvg} from 'js2flowchart';//way 1
import * as js2flowchart from 'js2flowchart';//way 2
```

Expand Down Expand Up @@ -100,7 +100,7 @@ If you need to modify default behavior you can split ```js2flowchart.convertCode
- shapes printing

```javascript
const {convertFlowTreeToSvg, convertCodeToFlowTree} = js2flowchart;
const {convertCodeToFlowTree, convertFlowTreeToSvg} = js2flowchart;

const flowTree = convertCodeToFlowTree(code);

Expand Down

0 comments on commit c3c055d

Please sign in to comment.