Minor tidy ups
- whitespace fix - added a few var's
This commit is contained in:
parent
14aea1afe6
commit
affbca426c
|
@ -35,13 +35,13 @@ var Graph = function()
|
|||
this.eventListeners = [];
|
||||
};
|
||||
|
||||
Node = function(id, data)
|
||||
var Node = function(id, data)
|
||||
{
|
||||
this.id = id;
|
||||
this.data = typeof(data) !== 'undefined' ? data : {};
|
||||
};
|
||||
|
||||
Edge = function(id, source, target, data)
|
||||
var Edge = function(id, source, target, data)
|
||||
{
|
||||
this.id = id;
|
||||
this.source = source;
|
||||
|
|
16
springyui.js
16
springyui.js
|
@ -26,14 +26,14 @@ Copyright (c) 2010 Dennis Hotson
|
|||
(function() {
|
||||
|
||||
jQuery.fn.springy = function(params) {
|
||||
var graph = params.graph;
|
||||
if(!graph){
|
||||
return;
|
||||
}
|
||||
|
||||
var stiffness = params.stiffness || 400.0;
|
||||
var repulsion = params.repulsion || 400.0;
|
||||
var damping = params.damping || 0.5;
|
||||
var graph = params.graph;
|
||||
if(!graph){
|
||||
return;
|
||||
}
|
||||
|
||||
var stiffness = params.stiffness || 400.0;
|
||||
var repulsion = params.repulsion || 400.0;
|
||||
var damping = params.damping || 0.5;
|
||||
|
||||
var canvas = this[0];
|
||||
var ctx = canvas.getContext("2d");
|
||||
|
|
Loading…
Reference in New Issue
Block a user