0.11.1 • Published 6 years ago

ng-atomspace-visualizer v0.11.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
6 years ago

ng2-atomspace-visualizer

This module is a design of a visualizer for the opencog atomspace.

Setup

npm install ng2-atomspace-visualizer --save

Configuration

Simple example

app.module.ts

import {AtomspaceVisualizerModule} from 'ng2-atomspace-visualizer'
@NgModule({
  imports: [
    CommonModule,
    AtomspaceVisualizerModule.forRoot()
  ],
  declarations: [AppComponent],
  providers: []
})
export class AppModule { }

app.component.ts

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  private atoms:any = null;

  constructor() {
    this.atoms = /** atoms to visualize in json format **/
  }
}

app.component.html

<cog-visualizer [atoms]="atoms"></cog-visualizer>

TODO

  • work on enhancement of the visualizer

Troubleshooting


License


0.11.1

6 years ago