mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add refresh() to ForceGraphInstance (#35596)
This commit is contained in:
parent
cdc7decebc
commit
ac5a85c9af
@ -72,7 +72,8 @@ graph
|
||||
.cooldownTicks(Infinity)
|
||||
.cooldownTime(15000)
|
||||
.onEngineTick(() => {})
|
||||
.onEngineStop(() => {});
|
||||
.onEngineStop(() => {})
|
||||
.refresh();
|
||||
|
||||
graph
|
||||
.onNodeClick(() => {})
|
||||
|
||||
3
types/force-graph/index.d.ts
vendored
3
types/force-graph/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for force-graph 1.14
|
||||
// Type definitions for force-graph 1.15
|
||||
// Project: https://github.com/vasturiano/force-graph
|
||||
// Definitions by: Peter Kimberley <https://github.com/p-kimberley>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@ -121,6 +121,7 @@ declare namespace ForceGraph {
|
||||
pauseAnimation(): ForceGraphInstance;
|
||||
stopAnimation(): ForceGraphInstance; // Alias for pauseAnimation()
|
||||
resumeAnimation(): ForceGraphInstance;
|
||||
refresh(): ForceGraphInstance;
|
||||
centerAt(x?: number, y?: number, milliseconds?: number): ForceGraphInstance & {x: number, y: number};
|
||||
zoom(zoomLevel?: number, duration?: number): ForceGraphInstance & number;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user