Browse Source

Added a simple tool to watch for changes in the source and automatically rebuild vis.js on changes

css_transitions
josdejong 11 years ago
parent
commit
3c414664e0
9 changed files with 58 additions and 28 deletions
  1. +1
    -0
      .npmignore
  2. +4
    -0
      README.md
  3. +1
    -0
      component.json
  4. +3
    -3
      package.json
  5. +3
    -2
      src/util.js
  6. +1
    -5
      test/dataset.html
  7. +29
    -3
      test/timeline.html
  8. +13
    -12
      vis.js
  9. +3
    -3
      vis.min.js

+ 1
- 0
.npmignore View File

@ -1,6 +1,7 @@
node_modules
src
test
tools
.idea
component.json
Jakefile.js

+ 4
- 0
README.md View File

@ -12,6 +12,10 @@ the Common Hybrid Agent Platform, developed by [Almende B.V](http://almende.com)
## Install
Install via npm:
npm install vis
Install via bower:
bower install vis

+ 1
- 0
component.json View File

@ -11,6 +11,7 @@
"node_modules",
"src",
"test",
"tools",
".idea",
"Jakefile.js",
"package.json",

+ 3
- 3
package.json View File

@ -25,9 +25,9 @@
},
"dependencies": {},
"devDependencies": {
"jake": ">= 0.5.9",
"jake-utils": ">= 0.0.18",
"uglify-js": ">= 2.2.5",
"jake": "latest",
"jake-utils": "latest",
"node-watch": "latest",
"moment": "latest"
}
}

+ 3
- 2
src/util.js View File

@ -1,5 +1,6 @@
// create namespace
/**
* utility functions
*/
var util = {};
/**

+ 1
- 5
test/dataset.html View File

@ -2,12 +2,8 @@
<html>
<head>
<title></title>
<script src="../lib/moment.min.js"></script>
<script src="../src/module.js"></script>
<script src="../node_modules/moment/moment.js"></script>
<script src="../src/util.js"></script>
<script src="../src/events.js"></script>
<script src="../src/range.js"></script>
<script src="../src/timestep.js"></script>
<script src="../src/dataset.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>

+ 29
- 3
test/timeline.html View File

@ -3,13 +3,39 @@
<head>
<title></title>
<script>
function require() {}
var baseUrl = '../src/';
var modules = [
'../node_modules/moment/moment.js',
'util.js',
'events.js',
'timestep.js',
'dataset.js',
'stack.js',
'controller.js',
'range.js',
'component/component.js',
'component/panel.js',
'component/rootpanel.js',
'component/timeaxis.js',
'component/itemset.js',
'component/item/item.js',
'component/item/itembox.js',
'component/item/itemrange.js',
'component/item/itempoint.js',
'visualization/timeline.js'
];
function require(name) {
}
var module = {
exports: {}
};
var exports = module.exports;
</script>
<script src="../lib/moment.min.js"></script>
<script src="../src/module.js"></script>
<script src="../src/util.js"></script>
<script src="../src/events.js"></script>

+ 13
- 12
vis.js View File

@ -56,7 +56,7 @@ var vis = {
module.exports = exports = vis;
},{"./dataset":2,"./events":3,"./controller":4,"./range":5,"./stack":6,"./timestep":7,"./util":8,"./component/component":9,"./component/rootpanel":10,"./component/panel":11,"./component/itemset":12,"./component/timeaxis":13,"./visualization/timeline":14}],3:[function(require,module,exports){
},{"./controller":2,"./dataset":3,"./events":4,"./range":5,"./stack":6,"./timestep":7,"./util":8,"./component/component":9,"./component/panel":10,"./component/rootpanel":11,"./component/itemset":12,"./component/timeaxis":13,"./visualization/timeline":14}],4:[function(require,module,exports){
/**
* Event listener (singleton)
*/
@ -177,8 +177,9 @@ var events = {
module.exports = exports = events;
},{}],8:[function(require,module,exports){
// create namespace
/**
* utility functions
*/
var util = {};
/**
@ -962,7 +963,7 @@ if(!Array.isArray) {
// exports
module.exports = exports = util;
},{}],4:[function(require,module,exports){
},{}],2:[function(require,module,exports){
var util = require('./util'),
Component = require('./component/component');
@ -1110,7 +1111,7 @@ Controller.prototype.reflow = function () {
module.exports = exports = Controller;
},{"./util":8,"./component/component":9}],2:[function(require,module,exports){
},{"./util":8,"./component/component":9}],3:[function(require,module,exports){
var util = require('./util');
/**
@ -2196,7 +2197,7 @@ Range.prototype.move = function(moveFactor) {
// exports
module.exports = exports = Range;
},{"./util":8,"./events":3}],6:[function(require,module,exports){
},{"./util":8,"./events":4}],6:[function(require,module,exports){
var util = require('./util');
/**
@ -2483,7 +2484,7 @@ Component.prototype.on = function (event, callback) {
// exports
module.exports = exports = Component;
},{"./../util":8}],11:[function(require,module,exports){
},{"./../util":8}],10:[function(require,module,exports){
var util = require('../util'),
Component = require('./component');
@ -2592,7 +2593,7 @@ Panel.prototype.reflow = function () {
// exports
module.exports = exports = Panel;
},{"../util":8,"./component":9}],10:[function(require,module,exports){
},{"../util":8,"./component":9}],11:[function(require,module,exports){
var util = require('../util'),
Panel = require('./panel');
@ -2800,7 +2801,7 @@ RootPanel.prototype._updateEventEmitters = function () {
// exports
module.exports = exports = RootPanel;
},{"../util":8,"./panel":11}],12:[function(require,module,exports){
},{"./panel":10,"../util":8}],12:[function(require,module,exports){
var util = require('../util'),
DataSet = require('../dataset'),
Panel = require('./panel'),
@ -3319,7 +3320,7 @@ ItemSet.prototype.toScreen = function(time) {
// exports
module.exports = exports = ItemSet;
},{"../util":8,"../dataset":2,"./panel":11,"../stack":6,"./item/itembox":15,"./item/itemrange":16,"./item/itempoint":17}],13:[function(require,module,exports){
},{"../util":8,"../dataset":3,"./panel":10,"../stack":6,"./item/itembox":15,"./item/itemrange":16,"./item/itempoint":17}],13:[function(require,module,exports){
var util = require('../util'),
TimeStep = require('../timestep'),
Component = require('./component');
@ -4590,7 +4591,7 @@ ItemBox.prototype.reposition = function () {
// exports
module.exports = exports = ItemBox;
},{"./item":19,"../../util":8}],16:[function(require,module,exports){
},{"../../util":8,"./item":19}],16:[function(require,module,exports){
var util = require('../../util'),
Item = require('./item');
@ -6588,7 +6589,7 @@ Timeline.prototype.setData = function(data) {
// exports
module.exports = exports = Timeline;
},{"./../util":8,"../range":5,"../controller":4,"../component/component":9,"../component/rootpanel":10,"../component/timeaxis":13,"../component/itemset":12,"moment":18}],19:[function(require,module,exports){
},{"./../util":8,"../range":5,"../controller":2,"../component/component":9,"../component/rootpanel":11,"../component/timeaxis":13,"../component/itemset":12,"moment":18}],19:[function(require,module,exports){
var Component = require('../component');
/**

+ 3
- 3
vis.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save