An angular module to create flow diagrams
- For the demo:
ng serve
(runs onlocalhost:4200
) - To build
ngxflowchart
:ng build ngxflowchart
- Add
<flowchart [data]='flowchart_data'>
to use
- Update to angular 7
- Add a library using
ng generate library ngflow
; The library appears undersprojects
folder. This will need to be built before use. Be sure to add the--prefix
or angular appendslib-
as default prefix. On adding a library, 3 changes take place:- a project is added under
projects
angular.json
file changes in your main apptsconfig.json
file changes in your main app- To delete a library: https://stackoverflow.com/questions/50243023/how-to-remove-a-created-library-in-angular6
- To create a library: https://blog.angularindepth.com/creating-a-library-in-angular-6-87799552e7e5
- a project is added under
- Build the library:
ng build ngxflowchart
- Use the library in a demo: After building the library, you can directly import the module in your demo app. Make sure you've exported the module in
public_api.ts
file in your library folder though - this is your entrypoint file. - Build the library
- Import the library in
app.module.ts
; always import the entire module, not individual files. If the module is not found, make sure you've built the module first and restart the server after building - Add a simple node and wire and render it
- Add position data to node and wire
- Render a graph using a data structure
- Add ability to drag nodes
- [] Add ability to connect nodes
- [] Add ability to transfer data between nodes
- [] Add callback to process content flowing through node
- [] Add multiple inputs to node