@cosmograph/cosmos
Advanced tools
Comparing version 1.1.0-beta.0 to 1.1.0-beta.1
@@ -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. */ |
{ | ||
"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
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
297581
5404
209