Comparing version 0.1.7 to 0.1.8
@@ -1,8 +0,10 @@ | ||
/*global window, setTimeout, require, module*/ | ||
/*global $, THREE, window, setTimeout, require, module*/ | ||
// browserify support | ||
// More below after igraph is defined. | ||
if(typeof require === 'function') { | ||
if(!$) var $ = require('jquery'); | ||
if(!THREE) { | ||
if (typeof require === 'function') { | ||
if (!$) { | ||
var $ = require('jquery'); | ||
} | ||
if (!THREE) { | ||
var THREE = require('three'); | ||
@@ -14,2 +16,3 @@ require('./TrackballControls'); | ||
THREE.Matrix3.prototype.getInverse = function (a, b) { | ||
'use strict'; | ||
var c = a.elements, d = this.elements; | ||
@@ -171,3 +174,3 @@ d[0] = c[10] * c[5] - c[6] * c[9]; | ||
if (edge.hasOwnProperty('arrowSize')) { | ||
arrow.scale.set(arrowSize, arrowSize, arrowSize); | ||
arrow.scale.set(edge.arrowSize, edge.arrowSize, edge.arrowSize); | ||
} else if (edge.hasOwnProperty('size')) { | ||
@@ -415,3 +418,3 @@ sqrt = Math.sqrt(edge.size); | ||
for (i = 0; i < iterations; i += 1) { | ||
setTimeout(iterate, 0); | ||
setTimeout(iterate, 3 * i); | ||
} | ||
@@ -418,0 +421,0 @@ } |
{ | ||
"name": "igraph", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "An embeddable webGL graph visualization library.", | ||
@@ -5,0 +5,0 @@ "main": "js/igraph.js", |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1069981
5859
0
1