NPM | Angular Documentation | Model Documentation | Try it out
An MIT-licensed slot-driven directed-acyclical-graph (DAG) editor for Angular. This component was built for use in Astronaut Labs' Livefire product suite because there was no good existing open-source editor. We wanted to fix that, so we hope you find lots of great ways to use this editor in your projects!
Diazo is inspired by Blueprint, the visual programming language of Unreal Engine. Diazo itself is just the editor that would power such an experience, and the library itself is completely domain-agnostic. You can use Diazo in your apps to introduce visual node-graph functionality in any domain where it makes sense to apply it, and we encourage you to do so!
The underlying data model and context layer are separate from this package, which is just the Angular components which implement the editor. The DiazoGraph types and the DiazoContext layer exist in @diazo/model.
Diazo uses Angular Material. Make sure it is installed before continuing:
ng add @angular/material
Diazo also depends on @astronautlabs/monaco (an Angular package for using
Microsoft's Monaco code editor component):
npm i diazo @astronautlabs/monaco
Now add DiazoModule to your Angular module's list of imports:
@NgModule({
// ....
imports: [
// ...
DiazoModule,
// ...
]
})
export class AppModule {
}npm run buildto build the librarynpm run docsto generate documentationcd dist ; npm linkto make your local built copy of the library available for applications you are testing it with- use
npm link diazowithin your test app's folder to link your local copy of diazo into the environment. cd dist ; npm publishto publish the library
Consult the table below for Angular version compatibility.
| Angular Version | Diazo Version |
|---|---|
| v9-v14 | v0.2.x |
| v15-v16 | v0.3.x |
| v17 | v0.4.x |
