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

@neo4j-nvl/base

Package Overview
Dependencies
Maintainers
0
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-nvl/base - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5-2242c7ab

7

dist/types/index.d.ts

@@ -27,6 +27,3 @@ import type { ExternalCallbacks } from './modules/ExternalCallbackHandler';

*
* const options = {
* layout: 'forceDirected',
* initialZoom: 0.5
* }
* const options = { initialZoom: 0.5 }
*

@@ -39,4 +36,2 @@ * const callbacks = {

* ```
*
* For more examples, head to the {@link https://neo4j.com/docs/nvl/current/core-library/ NVL Base documentation page}.
*/

@@ -43,0 +38,0 @@ declare class NVL {

2

dist/types/layouts/forcedirectedlayout/ForceCytoLayout.d.ts

@@ -19,5 +19,5 @@ export declare const ForceDirectedLayoutType = "forceDirected";

updateNodes(positionList: any): void;
getNodePositions(data: any): import("../..").Node[];
getNodePositions(data: any): import("../../types/graph-element").Node[];
terminateUpdate(): void;
destroy(): void;
}

@@ -15,2 +15,4 @@ import type { Node } from '../types/graph-element';

onWebGLContextLost?: (webGLContextEvent: WebGLContextEvent) => void;
/** Triggered when a zoom transition (e.g. {@link NVL.fit} or {@link NVL.resetZoom}) function is done. */
onZoomTransitionDone?: () => void;
restart?: () => void;

@@ -22,2 +24,3 @@ }

constructor(externalCallbacks?: ExternalCallbacks);
onZoomTransitionDone(): void;
onLayoutDone(): void;

@@ -24,0 +27,0 @@ onLayoutStep(p: Node[]): void;

@@ -11,2 +11,3 @@ import type { Node, Relationship } from '../types/graph-element';

export declare const EVENT_ERROR = "onError";
export declare const EVENT_ZOOM_TRANSITION_DONE = "onZoomTransitionDone";
export declare const EVENT_LAYOUT_DONE = "onLayoutDone";

@@ -13,0 +14,0 @@ export declare const EVENT_LAYOUT_STEP = "onLayoutStep";

@@ -12,12 +12,10 @@ import PIDController from 'node-pid-controller';

private readonly canvas;
private readonly defaultZoomLevel;
private readonly stateDisposers;
constructor({ state, getNodePositions, canvas, defaultZoomLevel }: {
constructor({ state, getNodePositions, canvas }: {
state: NvlState;
getNodePositions: (data: Node[]) => Node[];
canvas: HTMLCanvasElement;
defaultZoomLevel: number;
});
needsToRun(): boolean;
update(layoutActive: boolean): void;
update(layoutActive: boolean, onTransitionCompleted?: () => void): void;
destroy(): void;

@@ -24,0 +22,0 @@ private recalculateTarget;

{
"name": "@neo4j-nvl/base",
"version": "0.3.4",
"version": "0.3.5-2242c7ab",
"license": "SEE LICENSE IN 'LICENSE.txt'",

@@ -22,6 +22,6 @@ "homepage": "https://neo4j.com/docs/nvl/current/",

"scripts": {
"build": "tsc && webpack",
"build": "yarn global:tsc && webpack",
"watch": "concurrently 'tsc -w' 'webpack -w' -k -n 'tsc,webpack' -c 'cyan,magenta'",
"test": "jest",
"eslint": "eslint ./src/ --plugin only-warn",
"test": "yarn global:jest",
"eslint": "yarn global:eslint ./src/ --plugin only-warn",
"coverage": "yarn test --coverage --silent",

@@ -32,3 +32,3 @@ "prepack": "cp ../../LICENSE.txt ./",

"dependencies": {
"@neo4j-nvl/layout-workers": "0.3.4",
"@neo4j-nvl/layout-workers": "0.3.5-2242c7ab",
"@segment/analytics-next": "^1.70.0",

@@ -55,14 +55,7 @@ "color-string": "^1.9.1",

"copy-webpack-plugin": "^11.0.0",
"eslint": "^8.38.0",
"jest": "^29.7.0",
"typedoc": "^0.23.15",
"typescript": "^5.4.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
},
"peerDependencies": {
"eslint": "*",
"jest": "*",
"typescript": "*"
}
"stableVersion": "0.3.5"
}

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