Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cosmograph/cosmos

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmograph/cosmos - npm Package Compare versions

Comparing version 1.1.0-beta.0 to 1.1.0-beta.1

8

dist/index.d.ts

@@ -62,2 +62,8 @@ import 'd3-transition';

*/
zoom(value: number, duration?: number): void;
/**
* Zoom the view in or out to the specified zoom level.
* @param value Zoom level
* @param duration Duration of the zoom in/out transition.
*/
setZoomLevel(value: number, duration?: number): void;

@@ -90,3 +96,3 @@ /**

/** Select nodes inside a rectangular area.
* @param selection - Array of two corner points `[[left, top], [bottom, right]]`.
* @param selection - Array of two corner points `[[left, top], [right, bottom]]`.
* The `left` and `right` coordinates should be from 0 to the width of the canvas.

@@ -93,0 +99,0 @@ * The `top` and `bottom` coordinates should be from 0 to the height of the canvas. */

4

package.json
{
"name": "@cosmograph/cosmos",
"version": "1.1.0-beta.0",
"version": "1.1.0-beta.1",
"description": "GPU-based force graph layout and rendering",

@@ -10,3 +10,3 @@ "main": "dist/index.js",

"scripts": {
"build": "rollup -c",
"build": "rm -rf dist; rollup -c",
"watch": "rollup -c -w",

@@ -13,0 +13,0 @@ "lint": "eslint --cache ./src --ext .ts --ignore-path .gitignore",

@@ -139,4 +139,3 @@ <p align="center" style="color: #444">

Select nodes inside a rectangular area defined by two corner points `[[left, top], [bottom, right]]`.
Select nodes inside a rectangular area defined by two corner points `[[left, top], [right, bottom
The `left` and `right` values should be from 0 to the width of the canvas in pixels.

@@ -143,0 +142,0 @@

@@ -184,2 +184,12 @@ import { select } from 'd3-selection'

*/
public zoom (value: number, duration = 0): void {
this.setZoomLevel(value, duration)
}
/**
* Zoom the view in or out to the specified zoom level.
* @param value Zoom level
* @param duration Duration of the zoom in/out transition.
*/
public setZoomLevel (value: number, duration = 0): void {

@@ -258,3 +268,3 @@ select(this.canvas)

/** Select nodes inside a rectangular area.
* @param selection - Array of two corner points `[[left, top], [bottom, right]]`.
* @param selection - Array of two corner points `[[left, top], [right, bottom]]`.
* The `left` and `right` coordinates should be from 0 to the width of the canvas.

@@ -261,0 +271,0 @@ * The `top` and `bottom` coordinates should be from 0 to the height of the canvas. */

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc