@neo4j-nvl/base
Advanced tools
Comparing version 0.3.5-6b3df132 to 0.3.5-702bf86d
@@ -0,3 +1,14 @@ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | ||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
/** | ||
@@ -4,0 +15,0 @@ * @license |
@@ -10,2 +10,3 @@ import type { ExternalCallbacks } from './modules/ExternalCallbackHandler'; | ||
import type { HitTargetNode, HitTargetRelationship, HitTargets } from './utils/hittest'; | ||
import { nvlResultTransformer } from './utils/jsDriverResultTransformer'; | ||
/** | ||
@@ -189,3 +190,3 @@ * Extends the MouseEvent interface with the {@link HitTargets} property. | ||
*/ | ||
fit(nodeIds: string[], zoomOptions: NvlState['zoomOptions']): void; | ||
fit(nodeIds: string[], zoomOptions?: NvlState['zoomOptions']): void; | ||
/** | ||
@@ -368,2 +369,2 @@ * Resets the zoom of the viewport back to the default zoom level of 0.75 | ||
export type { NvlOptions, Renderer, Node, Relationship, PartialNode, PartialRelationship, Layout, LayoutOptions, ForceDirectedOptions, HierarchicalOptions, ExternalCallbacks, HitTargets, HitTargetNode, HitTargetRelationship, Point, NvlMouseEvent, ZoomOptions, StyledCaption, WebGLRendererType, CanvasRendererType }; | ||
export { NVL, colorMapperFunctions, CompatibilityError, ForceDirectedLayoutType, HierarchicalLayoutType, GridLayoutType, FreeLayoutType, d3ForceLayoutType, drawCircleBand }; | ||
export { NVL, colorMapperFunctions, CompatibilityError, ForceDirectedLayoutType, HierarchicalLayoutType, GridLayoutType, FreeLayoutType, d3ForceLayoutType, drawCircleBand, nvlResultTransformer }; |
@@ -18,3 +18,3 @@ import type { NvlState } from '../../../modules/state'; | ||
pendingLayoutData: LayoutData; | ||
worker: SharedWorker | any; | ||
worker: SharedWorker; | ||
constructor(config: { | ||
@@ -25,3 +25,3 @@ state: NvlState; | ||
}); | ||
setupWorker(): Promise<unknown>; | ||
setupWorker(): Promise<SharedWorker>; | ||
setOptions(): void; | ||
@@ -28,0 +28,0 @@ update(refreshPositions?: boolean, updateMobXNodes?: Node[], updateMobXRelationships?: Relationship[]): void; |
@@ -22,3 +22,3 @@ export default class SolarMerger { | ||
nodeSortMap: {}; | ||
coarsenBy(level: any): { | ||
coarsenBy(levelToCoarsenBy: any): { | ||
nodes: any[]; | ||
@@ -25,0 +25,0 @@ relationships: any[]; |
@@ -10,3 +10,3 @@ export class GridLayout { | ||
update(refreshPositions?: boolean): void; | ||
layout(nodes: any, nodeIds: any, idToPosition: any, rels: any): void; | ||
layout(mobxNodes: any, nodeIds: any, idToPosition: any, rels: any): void; | ||
getNodePositions(nodeList: any): any[]; | ||
@@ -13,0 +13,0 @@ getShouldUpdate(): boolean; |
@@ -18,3 +18,3 @@ import { type HierarchicalOptions, type LayoutOptions, type NvlState } from '../../modules/state'; | ||
constructor(config: HierarchicalLayoutConfig); | ||
setupWorker(): Promise<unknown>; | ||
setupWorker(): Promise<SharedWorker>; | ||
setOptions(options: LayoutOptions): void; | ||
@@ -21,0 +21,0 @@ update(refreshPositions?: boolean): void; |
@@ -99,3 +99,3 @@ import type { Node, Relationship } from '../types/graph-element'; | ||
setZoomAndPan(zoom: number, panX: number, panY: number): void; | ||
fit(nodeIds: string[], zoomOptions: ZoomOptions): void; | ||
fit(nodeIds: string[], zoomOptions?: ZoomOptions): void; | ||
resetZoom(): void; | ||
@@ -102,0 +102,0 @@ setRenderer(renderer: string): void; |
@@ -16,6 +16,6 @@ /** | ||
* by a call to endTest(). Tests can be nested. | ||
* @param {String} name String identifying this measurement. Only used for printing, so | ||
* @param {String} measurement String identifying this measurement. Only used for printing, so | ||
* keep it human readable. | ||
*/ | ||
startTest(name: string): void; | ||
startTest(measurement: string): void; | ||
/** | ||
@@ -22,0 +22,0 @@ * Ends the last started test, giving it an end time. |
@@ -199,2 +199,4 @@ import type { LogLevelDesc } from 'loglevel'; | ||
maxZoom?: number; | ||
/** If true, will not animate the zoom/pan transition. */ | ||
animated?: boolean; | ||
}; | ||
@@ -201,0 +203,0 @@ export interface NvlState { |
{ | ||
"name": "@neo4j-nvl/base", | ||
"version": "0.3.5-6b3df132", | ||
"version": "0.3.5-702bf86d", | ||
"license": "SEE LICENSE IN 'LICENSE.txt'", | ||
@@ -25,3 +25,3 @@ "homepage": "https://neo4j.com/docs/nvl/current/", | ||
"test": "yarn global:jest", | ||
"eslint": "yarn global:eslint ./src/ --plugin only-warn", | ||
"eslint": "yarn global:eslint ./src/", | ||
"coverage": "yarn test --coverage --silent", | ||
@@ -32,3 +32,3 @@ "prepack": "cp ../../LICENSE.txt ./", | ||
"dependencies": { | ||
"@neo4j-nvl/layout-workers": "0.3.5-6b3df132", | ||
"@neo4j-nvl/layout-workers": "0.3.5-702bf86d", | ||
"@segment/analytics-next": "^1.70.0", | ||
@@ -55,2 +55,3 @@ "color-string": "^1.9.1", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"neo4j-driver": "^5.26.0", | ||
"typedoc": "^0.23.15", | ||
@@ -60,3 +61,6 @@ "webpack": "^5.75.0", | ||
}, | ||
"stableVersion": "0.3.5" | ||
"stableVersion": "0.3.5", | ||
"peerDependencies": { | ||
"neo4j-driver": "*" | ||
} | ||
} |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1208851
101
2887
14
11
+ Added@neo4j-nvl/layout-workers@0.3.5-702bf86d(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedneo4j-driver@5.27.0(transitive)
+ Addedneo4j-driver-bolt-connection@5.27.0(transitive)
+ Addedneo4j-driver-core@5.27.0(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
- Removed@neo4j-nvl/layout-workers@0.3.5-6b3df132(transitive)