New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sigma

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sigma - npm Package Compare versions

Comparing version

to
3.0.0-alpha3

2

package.json
{
"name": "sigma",
"version": "3.0.0-alpha2",
"version": "3.0.0-alpha3",
"description": "A JavaScript library aimed at visualizing graphs of thousands of nodes and edges.",

@@ -5,0 +5,0 @@ "homepage": "https://www.sigmajs.org",

@@ -55,2 +55,3 @@ /**

zoomToSizeRatioFunction: (ratio: number) => number;
itemSizesReference: "screen" | "positions";
labelDensity: number;

@@ -57,0 +58,0 @@ labelGridCellSize: number;

@@ -38,2 +38,3 @@ "use strict";

zoomToSizeRatioFunction: Math.sqrt,
itemSizesReference: "screen",
// Labels

@@ -40,0 +41,0 @@ labelDensity: 1,

@@ -77,3 +77,3 @@ /**

private normalizationFunction;
private cameraSizeRatio;
private graphToViewportRatio;
private width;

@@ -130,2 +130,8 @@ private height;

/**
* Method unbinding camera handlers.
*
* @return {Sigma}
*/
private unbindCameraHandlers;
/**
* Method that checks whether or not a node collides with a given position.

@@ -212,7 +218,2 @@ */

private render;
/**
* Internal method used to update expensive and therefore cached values
* each time the camera state is updated.
*/
private updateCachedValues;
/**---------------------------------------------------------------------------

@@ -229,2 +230,9 @@ * Public API.

/**
* Method setting the renderer's camera.
*
* @param {Camera} camera - New camera.
* @return {Sigma}
*/
setCamera(camera: Camera): void;
/**
* Method returning the container DOM element.

@@ -428,2 +436,7 @@ *

/**
* Method returning the distance multiplier between the graph system and the
* viewport system.
*/
getGraphToViewportRatio(): number;
/**
* Method returning the graph's bounding box.

@@ -465,6 +478,7 @@ *

*
* @param {number} size - The size to scale (node size, edge thickness etc.).
* @return {number} - The scaled size.
* @param {number?} size - The size to scale (node size, edge thickness etc.).
* @param {number?} cameraRatio - A camera ratio (defaults to the actual camera ratio).
* @return {number} - The scaled size.
*/
scaleSize(size: number): number;
scaleSize(size?: number, cameraRatio?: number): number;
/**

@@ -471,0 +485,0 @@ * Method that returns the collection of all used canvases.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display