|
|
@ -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 |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|