Skip to content

Commit

Permalink
a few more docs
Browse files Browse the repository at this point in the history
Sorry - I'm occupied with life at the moment. Not very pleasntly, alas.

Anyway I keep improving code bit by bit.
  • Loading branch information
anvaka committed Dec 3, 2018
1 parent 535c19a commit c6ec2dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/createRenderer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* The core of the rendering process
*/
import createPanZoom from 'panzoom';
import createTextMeasure from './measureText';
import createAggregateLayout from './aggregateLayout';
Expand All @@ -6,6 +9,9 @@ import createLinkAnimator from './renderer/linkAnimator';

let svg = require('simplesvg');

/**
* Creates a new renderer. The rendering is done with SVG.
*/
export default function createRenderer(progress) {
const scene = document.querySelector('#scene');
const nodeContainer = scene.querySelector('#nodes');
Expand Down
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**
* This is the entry point into the application.
*
* From here I recommend to go to ./lib/buildGraph.js to see how the graph is created
* or to the ./lib/createRenderer.js that initializes rending process
*/
import Vue from 'vue'
import App from './App'
Expand Down

0 comments on commit c6ec2dc

Please sign in to comment.