Browse Source

Updated exports

css_transitions
jos 10 years ago
parent
commit
11b7849938
3 changed files with 77 additions and 47 deletions
  1. +39
    -24
      dist/vis.js
  2. +3
    -2
      src/DOMutil.js
  3. +35
    -21
      src/module/exports.js

+ 39
- 24
dist/vis.js View File

@ -1576,7 +1576,8 @@ util.binarySearchGeneric = function(orderedItems, target, field, sidePreference)
* Created by Alex on 6/20/14. * Created by Alex on 6/20/14.
*/ */
var DOMutil = {}
var DOMutil = {};
/** /**
* this prepares the JSON container for allocating SVG elements * this prepares the JSON container for allocating SVG elements
* @param JSONcontainer * @param JSONcontainer
@ -1727,7 +1728,7 @@ DOMutil.drawPoint = function(x, y, group, JSONcontainer, svgContainer) {
* @param className * @param className
*/ */
DOMutil.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer) { DOMutil.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer) {
rect = DOMutil.getSVGElement('rect',JSONcontainer, svgContainer);
var rect = DOMutil.getSVGElement('rect',JSONcontainer, svgContainer);
rect.setAttributeNS(null, "x", x - 0.5 * width); rect.setAttributeNS(null, "x", x - 0.5 * width);
rect.setAttributeNS(null, "y", y); rect.setAttributeNS(null, "y", y);
rect.setAttributeNS(null, "width", width); rect.setAttributeNS(null, "width", width);
@ -25075,44 +25076,58 @@ getMouseY = function(event) {
* vis.js module exports * vis.js module exports
*/ */
var vis = { var vis = {
util: util,
moment: moment, moment: moment,
util: util,
DOMutil: DOMutil,
DataSet: DataSet, DataSet: DataSet,
DataView: DataView, DataView: DataView,
Range: Range,
stack: stack,
TimeStep: TimeStep,
components: {
items: {
Item: Item,
ItemBox: ItemBox,
ItemPoint: ItemPoint,
ItemRange: ItemRange
},
Component: Component,
ItemSet: ItemSet,
TimeAxis: TimeAxis
Timeline: Timeline,
Graph2d: Graph2d,
timeline: {
DataStep: DataStep,
Range: Range,
stack: stack,
TimeStep: TimeStep,
components: {
items: {
Item: Item,
ItemBox: ItemBox,
ItemPoint: ItemPoint,
ItemRange: ItemRange
},
Component: Component,
CurrentTime: CurrentTime,
CustomTime: CustomTime,
DataAxis: DataAxis,
GraphGroup: GraphGroup,
Group: Group,
ItemSet: ItemSet,
Legend: Legend,
LineGraph: LineGraph,
TimeAxis: TimeAxis
}
}, },
Network: Network,
network: { network: {
Node: Node,
Edge: Edge, Edge: Edge,
Popup: Popup,
Groups: Groups, Groups: Groups,
Images: Images
Images: Images,
Node: Node,
Popup: Popup
}, },
Timeline: Timeline,
Network: Network,
// Deprecated since v3.0.0 // Deprecated since v3.0.0
Graph: function () { Graph: function () {
throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
}, },
Graph3d: Graph3d,
Graph2d: Graph2d
Graph3d: Graph3d
}; };
/** /**

+ 3
- 2
src/DOMutil.js View File

@ -2,7 +2,8 @@
* Created by Alex on 6/20/14. * Created by Alex on 6/20/14.
*/ */
var DOMutil = {}
var DOMutil = {};
/** /**
* this prepares the JSON container for allocating SVG elements * this prepares the JSON container for allocating SVG elements
* @param JSONcontainer * @param JSONcontainer
@ -153,7 +154,7 @@ DOMutil.drawPoint = function(x, y, group, JSONcontainer, svgContainer) {
* @param className * @param className
*/ */
DOMutil.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer) { DOMutil.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer) {
rect = DOMutil.getSVGElement('rect',JSONcontainer, svgContainer);
var rect = DOMutil.getSVGElement('rect',JSONcontainer, svgContainer);
rect.setAttributeNS(null, "x", x - 0.5 * width); rect.setAttributeNS(null, "x", x - 0.5 * width);
rect.setAttributeNS(null, "y", y); rect.setAttributeNS(null, "y", y);
rect.setAttributeNS(null, "width", width); rect.setAttributeNS(null, "width", width);

+ 35
- 21
src/module/exports.js View File

@ -2,44 +2,58 @@
* vis.js module exports * vis.js module exports
*/ */
var vis = { var vis = {
util: util,
moment: moment, moment: moment,
util: util,
DOMutil: DOMutil,
DataSet: DataSet, DataSet: DataSet,
DataView: DataView, DataView: DataView,
Range: Range,
stack: stack,
TimeStep: TimeStep,
components: {
items: {
Item: Item,
ItemBox: ItemBox,
ItemPoint: ItemPoint,
ItemRange: ItemRange
},
Timeline: Timeline,
Graph2d: Graph2d,
timeline: {
DataStep: DataStep,
Range: Range,
stack: stack,
TimeStep: TimeStep,
components: {
items: {
Item: Item,
ItemBox: ItemBox,
ItemPoint: ItemPoint,
ItemRange: ItemRange
},
Component: Component,
ItemSet: ItemSet,
TimeAxis: TimeAxis
Component: Component,
CurrentTime: CurrentTime,
CustomTime: CustomTime,
DataAxis: DataAxis,
GraphGroup: GraphGroup,
Group: Group,
ItemSet: ItemSet,
Legend: Legend,
LineGraph: LineGraph,
TimeAxis: TimeAxis
}
}, },
Network: Network,
network: { network: {
Node: Node,
Edge: Edge, Edge: Edge,
Popup: Popup,
Groups: Groups, Groups: Groups,
Images: Images
Images: Images,
Node: Node,
Popup: Popup
}, },
Timeline: Timeline,
Network: Network,
// Deprecated since v3.0.0 // Deprecated since v3.0.0
Graph: function () { Graph: function () {
throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
}, },
Graph3d: Graph3d,
Graph2d: Graph2d
Graph3d: Graph3d
}; };
/** /**

Loading…
Cancel
Save