bio4j / el-grafo

GSoC 2014 project - D3-based Bio4j data model visualization
4 stars 3 forks source link

testing require.js to organize project #13

Closed carmen-tm closed 10 years ago

carmen-tm commented 10 years ago

Testing require-js lib

First attempts to organize the project by using require.js The common structure is

Tests:

  1. Test1: trying to load 2 lib (dagre-d3 + d3)

by doing:

<!-- main.js loads one.js, two.js and three.js via a require call: -->
require(["one", "two", "three"], function (one, two, three) {
});

but doesn't work. It seems to load dagre-d3 but not d3 as is giving an Undefine error related to d3 commands.

  1. Test2: same structure, but just 1 lib to be loaded by:
require(["helper/util"], function(util) {
});

It works fine.

  1. Test3: again 1 lib to be loaded (d3) but this time it calls an external json file. It doesn't work.