Browse Source

fixed bug by #75

css_transitions
Alex de Mulder 10 years ago
parent
commit
659d8a536c
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      dist/vis.js
  2. +1
    -1
      src/graph/Edge.js

+ 2
- 2
dist/vis.js View File

@ -5,7 +5,7 @@
* A dynamic, browser-based visualization library. * A dynamic, browser-based visualization library.
* *
* @version 0.7.2-SNAPSHOT * @version 0.7.2-SNAPSHOT
* @date 2014-03-31
* @date 2014-04-02
* *
* @license * @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com * Copyright (C) 2011-2014 Almende B.V, http://almende.com
@ -10648,7 +10648,7 @@ Edge.prototype.draw = function(ctx) {
* @return {boolean} True if location is located on the edge * @return {boolean} True if location is located on the edge
*/ */
Edge.prototype.isOverlappingWith = function(obj) { Edge.prototype.isOverlappingWith = function(obj) {
if (this.connected == true) {
if (this.connected) {
var distMax = 10; var distMax = 10;
var xFrom = this.from.x; var xFrom = this.from.x;
var yFrom = this.from.y; var yFrom = this.from.y;

+ 1
- 1
src/graph/Edge.js View File

@ -216,7 +216,7 @@ Edge.prototype.draw = function(ctx) {
* @return {boolean} True if location is located on the edge * @return {boolean} True if location is located on the edge
*/ */
Edge.prototype.isOverlappingWith = function(obj) { Edge.prototype.isOverlappingWith = function(obj) {
if (this.connected == true) {
if (this.connected) {
var distMax = 10; var distMax = 10;
var xFrom = this.from.x; var xFrom = this.from.x;
var yFrom = this.from.y; var yFrom = this.from.y;

Loading…
Cancel
Save