-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d08c03c
commit 4607253
Showing
71 changed files
with
2,381 additions
and
1,360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Node } from '../'; | ||
export declare type Options = { | ||
top: number; | ||
left: number; | ||
right: number; | ||
bottom: number; | ||
onZoomIn: (event: MouseEvent) => any; | ||
onZoomOut: (event: MouseEvent) => any; | ||
}; | ||
export declare type ViewportChangeOptions = { | ||
padding: number; | ||
}; | ||
export declare const zoomTo: (nodes: Node[], options?: Partial<ViewportChangeOptions> | undefined) => { | ||
zoom: number; | ||
position: number[]; | ||
}; | ||
export declare const fit: (zoom: number, position: [number, number], nodes: Node[], options?: Partial<ViewportChangeOptions> | undefined) => { | ||
zoom: number; | ||
position: number[]; | ||
}; | ||
export declare const clampZoom: (min: number, max: number, zoom: number) => number; | ||
export declare const Control: (options: { | ||
container: HTMLDivElement; | ||
}) => (options: Partial<Options>) => void; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { NodeStyle, EdgeStyle } from './renderers/pixi'; | ||
export declare type Node<E extends Edge = Edge, Style = Partial<NodeStyle>> = { | ||
id: string; | ||
radius: number; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
label?: string | undefined; | ||
style?: Style; | ||
subGraph?: { | ||
nodes: Node<E>[]; | ||
edges: E[]; | ||
options?: {}; | ||
} | undefined; | ||
}; | ||
export declare type Edge<Style = Partial<EdgeStyle>> = { | ||
id: string; | ||
source: string; | ||
target: string; | ||
label?: string; | ||
style?: Style; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.