From 11b78499382741e098357b3b04706102234cf8fe Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 7 Jul 2014 11:08:44 +0200 Subject: [PATCH] Updated exports --- dist/vis.js | 63 ++++++++++++++++++++++++++----------------- src/DOMutil.js | 5 ++-- src/module/exports.js | 56 +++++++++++++++++++++++--------------- 3 files changed, 77 insertions(+), 47 deletions(-) diff --git a/dist/vis.js b/dist/vis.js index e089733d..81def84c 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -1576,7 +1576,8 @@ util.binarySearchGeneric = function(orderedItems, target, field, sidePreference) * Created by Alex on 6/20/14. */ -var DOMutil = {} +var DOMutil = {}; + /** * this prepares the JSON container for allocating SVG elements * @param JSONcontainer @@ -1727,7 +1728,7 @@ DOMutil.drawPoint = function(x, y, group, JSONcontainer, svgContainer) { * @param className */ 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, "y", y); rect.setAttributeNS(null, "width", width); @@ -25075,44 +25076,58 @@ getMouseY = function(event) { * vis.js module exports */ var vis = { - util: util, moment: moment, + util: util, + DOMutil: DOMutil, + DataSet: DataSet, 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: { - Node: Node, Edge: Edge, - Popup: Popup, Groups: Groups, - Images: Images + Images: Images, + Node: Node, + Popup: Popup }, - Timeline: Timeline, - Network: Network, // Deprecated since v3.0.0 Graph: function () { throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); }, - Graph3d: Graph3d, - Graph2d: Graph2d + + Graph3d: Graph3d }; /** diff --git a/src/DOMutil.js b/src/DOMutil.js index 5f7cdeb8..a7bf81e1 100644 --- a/src/DOMutil.js +++ b/src/DOMutil.js @@ -2,7 +2,8 @@ * Created by Alex on 6/20/14. */ -var DOMutil = {} +var DOMutil = {}; + /** * this prepares the JSON container for allocating SVG elements * @param JSONcontainer @@ -153,7 +154,7 @@ DOMutil.drawPoint = function(x, y, group, JSONcontainer, svgContainer) { * @param className */ 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, "y", y); rect.setAttributeNS(null, "width", width); diff --git a/src/module/exports.js b/src/module/exports.js index b86b82a2..076e04cf 100644 --- a/src/module/exports.js +++ b/src/module/exports.js @@ -2,44 +2,58 @@ * vis.js module exports */ var vis = { - util: util, moment: moment, + util: util, + DOMutil: DOMutil, + DataSet: DataSet, 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: { - Node: Node, Edge: Edge, - Popup: Popup, Groups: Groups, - Images: Images + Images: Images, + Node: Node, + Popup: Popup }, - Timeline: Timeline, - Network: Network, // Deprecated since v3.0.0 Graph: function () { throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); }, - Graph3d: Graph3d, - Graph2d: Graph2d + + Graph3d: Graph3d }; /**