@neo4j-nvl/base
Advanced tools
Comparing version 0.3.4 to 0.3.5-b4771bdf
@@ -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 { |
@@ -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-b4771bdf", | ||
"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-b4771bdf", | ||
"@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
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
628267
13
10
2851
+ Added@neo4j-nvl/layout-workers@0.3.5-b4771bdf(transitive)
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.3(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.3(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.3(transitive)
- Removed@babel/plugin-syntax-async-generators@7.8.4(transitive)
- Removed@babel/plugin-syntax-bigint@7.8.3(transitive)
- Removed@babel/plugin-syntax-class-properties@7.12.13(transitive)
- Removed@babel/plugin-syntax-class-static-block@7.14.5(transitive)
- Removed@babel/plugin-syntax-import-attributes@7.26.0(transitive)
- Removed@babel/plugin-syntax-import-meta@7.10.4(transitive)
- Removed@babel/plugin-syntax-json-strings@7.8.3(transitive)
- Removed@babel/plugin-syntax-jsx@7.25.9(transitive)
- Removed@babel/plugin-syntax-logical-assignment-operators@7.10.4(transitive)
- Removed@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(transitive)
- Removed@babel/plugin-syntax-numeric-separator@7.10.4(transitive)
- Removed@babel/plugin-syntax-object-rest-spread@7.8.3(transitive)
- Removed@babel/plugin-syntax-optional-catch-binding@7.8.3(transitive)
- Removed@babel/plugin-syntax-optional-chaining@7.8.3(transitive)
- Removed@babel/plugin-syntax-private-property-in-object@7.14.5(transitive)
- Removed@babel/plugin-syntax-top-level-await@7.14.5(transitive)
- Removed@babel/plugin-syntax-typescript@7.25.9(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.4(transitive)
- Removed@babel/types@7.26.3(transitive)
- Removed@bcoe/v8-coverage@0.2.3(transitive)
- Removed@eslint-community/eslint-utils@4.4.1(transitive)
- Removed@eslint-community/regexpp@4.12.1(transitive)
- Removed@eslint/config-array@0.19.1(transitive)
- Removed@eslint/core@0.9.1(transitive)
- Removed@eslint/eslintrc@3.2.0(transitive)
- Removed@eslint/js@9.17.0(transitive)
- Removed@eslint/object-schema@2.1.5(transitive)
- Removed@eslint/plugin-kit@0.2.4(transitive)
- Removed@humanfs/core@0.19.1(transitive)
- Removed@humanfs/node@0.16.6(transitive)
- Removed@humanwhocodes/module-importer@1.0.1(transitive)
- Removed@humanwhocodes/retry@0.3.10.4.1(transitive)
- Removed@istanbuljs/load-nyc-config@1.1.0(transitive)
- Removed@istanbuljs/schema@0.1.3(transitive)
- Removed@jest/console@29.7.0(transitive)
- Removed@jest/core@29.7.0(transitive)
- Removed@jest/environment@29.7.0(transitive)
- Removed@jest/expect@29.7.0(transitive)
- Removed@jest/expect-utils@29.7.0(transitive)
- Removed@jest/fake-timers@29.7.0(transitive)
- Removed@jest/globals@29.7.0(transitive)
- Removed@jest/reporters@29.7.0(transitive)
- Removed@jest/schemas@29.6.3(transitive)
- Removed@jest/source-map@29.6.3(transitive)
- Removed@jest/test-result@29.7.0(transitive)
- Removed@jest/test-sequencer@29.7.0(transitive)
- Removed@jest/transform@29.7.0(transitive)
- Removed@jest/types@29.6.3(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@neo4j-nvl/layout-workers@0.3.4(transitive)
- Removed@sinclair/typebox@0.27.8(transitive)
- Removed@sinonjs/commons@3.0.1(transitive)
- Removed@sinonjs/fake-timers@10.3.0(transitive)
- Removed@types/babel__core@7.20.5(transitive)
- Removed@types/babel__generator@7.6.8(transitive)
- Removed@types/babel__template@7.4.4(transitive)
- Removed@types/babel__traverse@7.20.6(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removed@types/graceful-fs@4.1.9(transitive)
- Removed@types/istanbul-lib-coverage@2.0.6(transitive)
- Removed@types/istanbul-lib-report@3.0.3(transitive)
- Removed@types/istanbul-reports@3.0.4(transitive)
- Removed@types/json-schema@7.0.15(transitive)
- Removed@types/node@22.10.5(transitive)
- Removed@types/stack-utils@2.0.3(transitive)
- Removed@types/yargs@17.0.33(transitive)
- Removed@types/yargs-parser@21.0.3(transitive)
- Removedacorn@8.14.0(transitive)
- Removedacorn-jsx@5.3.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-escapes@4.3.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.05.2.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedargparse@1.0.102.0.1(transitive)
- Removedbabel-jest@29.7.0(transitive)
- Removedbabel-plugin-istanbul@6.1.1(transitive)
- Removedbabel-plugin-jest-hoist@29.6.3(transitive)
- Removedbabel-preset-current-node-syntax@1.1.0(transitive)
- Removedbabel-preset-jest@29.6.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbrowserslist@4.24.3(transitive)
- Removedbser@2.1.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcamelcase@5.3.16.3.0(transitive)
- Removedcaniuse-lite@1.0.30001690(transitive)
- Removedchalk@4.1.2(transitive)
- Removedchar-regex@1.0.2(transitive)
- Removedci-info@3.9.0(transitive)
- Removedcjs-module-lexer@1.4.1(transitive)
- Removedcliui@8.0.1(transitive)
- Removedco@4.6.0(transitive)
- Removedcollect-v8-coverage@1.0.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removedcreate-jest@29.7.0(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddedent@1.5.3(transitive)
- Removeddeep-is@0.1.4(transitive)
- Removeddeepmerge@4.3.1(transitive)
- Removeddetect-newline@3.1.0(transitive)
- Removeddiff-sequences@29.6.3(transitive)
- Removedelectron-to-chromium@1.5.76(transitive)
- Removedemittery@0.13.1(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescalade@3.2.0(transitive)
- Removedescape-string-regexp@2.0.04.0.0(transitive)
- Removedeslint@9.17.0(transitive)
- Removedeslint-scope@8.2.0(transitive)
- Removedeslint-visitor-keys@3.4.34.2.0(transitive)
- Removedespree@10.3.0(transitive)
- Removedesprima@4.0.1(transitive)
- Removedesquery@1.6.0(transitive)
- Removedesrecurse@4.3.0(transitive)
- Removedestraverse@5.3.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedexeca@5.1.1(transitive)
- Removedexit@0.1.2(transitive)
- Removedexpect@29.7.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedfb-watchman@2.0.2(transitive)
- Removedfile-entry-cache@8.0.0(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfind-up@4.1.05.0.0(transitive)
- Removedflat-cache@4.0.1(transitive)
- Removedflatted@3.3.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedget-package-type@0.1.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedglob-parent@6.0.2(transitive)
- Removedglobals@11.12.014.0.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhtml-escaper@2.0.2(transitive)
- Removedhuman-signals@2.1.0(transitive)
- Removedignore@5.3.2(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedimport-local@3.2.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-generator-fn@2.1.0(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedisexe@2.0.0(transitive)
- Removedistanbul-lib-coverage@3.2.2(transitive)
- Removedistanbul-lib-instrument@5.2.16.0.3(transitive)
- Removedistanbul-lib-report@3.0.1(transitive)
- Removedistanbul-lib-source-maps@4.0.1(transitive)
- Removedistanbul-reports@3.1.7(transitive)
- Removedjest@29.7.0(transitive)
- Removedjest-changed-files@29.7.0(transitive)
- Removedjest-circus@29.7.0(transitive)
- Removedjest-cli@29.7.0(transitive)
- Removedjest-config@29.7.0(transitive)
- Removedjest-diff@29.7.0(transitive)
- Removedjest-docblock@29.7.0(transitive)
- Removedjest-each@29.7.0(transitive)
- Removedjest-environment-node@29.7.0(transitive)
- Removedjest-get-type@29.6.3(transitive)
- Removedjest-haste-map@29.7.0(transitive)
- Removedjest-leak-detector@29.7.0(transitive)
- Removedjest-matcher-utils@29.7.0(transitive)
- Removedjest-message-util@29.7.0(transitive)
- Removedjest-mock@29.7.0(transitive)
- Removedjest-pnp-resolver@1.2.3(transitive)
- Removedjest-regex-util@29.6.3(transitive)
- Removedjest-resolve@29.7.0(transitive)
- Removedjest-resolve-dependencies@29.7.0(transitive)
- Removedjest-runner@29.7.0(transitive)
- Removedjest-runtime@29.7.0(transitive)
- Removedjest-snapshot@29.7.0(transitive)
- Removedjest-util@29.7.0(transitive)
- Removedjest-validate@29.7.0(transitive)
- Removedjest-watcher@29.7.0(transitive)
- Removedjest-worker@29.7.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjs-yaml@3.14.14.1.0(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedjson-buffer@3.0.1(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stable-stringify-without-jsonify@1.0.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedkeyv@4.5.4(transitive)
- Removedkleur@3.0.3(transitive)
- Removedleven@3.1.0(transitive)
- Removedlevn@0.4.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlocate-path@5.0.06.0.0(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmake-dir@4.0.0(transitive)
- Removedmakeerror@1.0.12(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedms@2.1.3(transitive)
- Removednatural-compare@1.4.0(transitive)
- Removednode-int64@0.4.0(transitive)
- Removednode-releases@2.0.19(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removednpm-run-path@4.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@5.1.2(transitive)
- Removedoptionator@0.9.4(transitive)
- Removedp-limit@2.3.03.1.0(transitive)
- Removedp-locate@4.1.05.0.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpirates@4.0.6(transitive)
- Removedpkg-dir@4.2.0(transitive)
- Removedprelude-ls@1.2.1(transitive)
- Removedpretty-format@29.7.0(transitive)
- Removedprompts@2.4.2(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedpure-rand@6.1.0(transitive)
- Removedreact-is@18.3.1(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedresolve@1.22.10(transitive)
- Removedresolve-cwd@3.0.0(transitive)
- Removedresolve-from@4.0.05.0.0(transitive)
- Removedresolve.exports@2.0.3(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsisteransi@1.0.5(transitive)
- Removedslash@3.0.0(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.13(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstack-utils@2.0.6(transitive)
- Removedstring-length@4.0.2(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedstrip-bom@4.0.0(transitive)
- Removedstrip-final-newline@2.0.0(transitive)
- Removedstrip-json-comments@3.1.1(transitive)
- Removedsupports-color@7.2.08.1.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtest-exclude@6.0.0(transitive)
- Removedtmpl@1.0.5(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtype-check@0.4.0(transitive)
- Removedtype-detect@4.0.8(transitive)
- Removedtype-fest@0.21.3(transitive)
- Removedtypescript@5.7.2(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedv8-to-istanbul@9.3.0(transitive)
- Removedwalker@1.0.8(transitive)
- Removedwhich@2.0.2(transitive)
- Removedword-wrap@1.2.5(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@4.0.2(transitive)
- Removedy18n@5.0.8(transitive)
- Removedyallist@3.1.1(transitive)
- Removedyargs@17.7.2(transitive)
- Removedyargs-parser@21.1.1(transitive)
- Removedyocto-queue@0.1.0(transitive)