5.0.0 • Published 4 years ago

@eo4geo/curr-viz v5.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

EO4GEO-curr-viz

EO4GEO-curr-viz is an script to visualize curricula in a tree layout.

Installation

Using npm:

npm i @eo4geo/curr-viz

Usage

Place a div and give it an id. If you want to show also the textual information, place a div and give it an id.

<div id="graphTree"></div>

Then in Javascript:

import * as cv from '@eo4geo/curr-viz';

[...]
// displays the 'program' tree
cv.displayCurricula('graphTree', program, width, height = 650);

// returns current selected node
cv.getCurrentNode();

// adds an existing node as a chils of the selected node
cv.addExistingNode(node);

// adds a new node as a child of the selected node with depth (0 for Study program, 1 for Modules, 2 for Courses and 3 for Lectures)
cv.addNewNodeWithDepth('New', depth);

// updates selected node with 'node' info
cv.updateNode(node);
5.0.0

4 years ago

4.1.0

4 years ago

3.2.0

4 years ago

4.0.0

4 years ago