Comparing version 2.0.0-alpha2 to 2.0.0-alpha3
{ | ||
"name": "sigma", | ||
"version": "2.0.0-alpha2", | ||
"version": "2.0.0-alpha3", | ||
"description": "A JavaScript library dedicated to graph drawing.", | ||
@@ -49,3 +49,3 @@ "homepage": "http://sigmajs.org", | ||
"graphology-layout": "0.0.1", | ||
"graphology-layout-forceatlas2": "0.0.1", | ||
"graphology-layout-forceatlas2": "0.1.0", | ||
"html-webpack-plugin": "^2.22.0", | ||
@@ -52,0 +52,0 @@ "mocha": "^3.0.2", |
@@ -260,2 +260,10 @@ 'use strict'; | ||
// Handling window resize | ||
this.listeners.handleResize = function () { | ||
_this3.needToSoftProcess = true; | ||
_this3.scheduleRender(); | ||
}; | ||
window.addEventListener('resize', this.listeners.handleResize); | ||
// Function checking if the mouse is on the given node | ||
@@ -416,2 +424,3 @@ var mouseIsOnNode = function mouseIsOnNode(mouseX, mouseY, nodeX, nodeY, size) { | ||
// TODO: possible to index this somehow using two byte arrays or so | ||
var extent = this.sigma.getGraphExtent(); | ||
@@ -618,2 +627,6 @@ | ||
// Resizing camera | ||
// TODO: maybe move this elsewhere | ||
if (this.camera) this.camera.resize({ width: this.width, height: this.height }); | ||
// Sizing dom elements | ||
@@ -884,3 +897,3 @@ for (var id in this.elements) { | ||
if (this.renderHighlightedNodesFrame) return this; | ||
if (this.renderHighlightedNodesFrame || this.renderFrame) return this; | ||
@@ -887,0 +900,0 @@ this.renderHighlightedNodesFrame = requestAnimationFrame(function () { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11751
589620