MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / GraphContextProps

Interface GraphContextProps

src/components/graph/Graph.tsx:88–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87/* Context for variable handling */
88interface GraphContextProps {
89 addAddressPaths: (
90 paths: string[][],
91 incoming: boolean,
92 volume: number,
93 ) => void;
94 addEdges: (newEdges: Edge[]) => void;
95 setEdgeState: (edgeID: string, state: TransfershipEdgeStates) => void;
96 getEdgeVolumeScale: (volume: number) => number;
97 getEdgeHandleID: (edgeID: string) => string;
98 setFocusedAddressData: (data: AddressAnalysis | null) => void;
99 setHoveredTransferData: (data: TransactionTooltipProps | null) => void;
100 setFocusedEdgeData: (data: TransactionTooltipProps | null) => void;
101 doLayout: () => void;
102 setNodeHighlight: (address: string, highlight: boolean) => void;
103 getNodeCount: () => number;
104 setShowTutorial: (show: boolean) => void;
105 addNewAddressToCenter: (address: string) => void;
106 addMultipleDifferentPaths: (pathArgs: PathExpansionArgs[]) => void;
107 deleteNodes: (ids: string[]) => void;
108 getAddressRisk: (address: string) => number;
109 registerAddressRisk: (address: string, risk: number) => void;
110 focusedAddressData: AddressAnalysis | null;
111 isRiskVision: boolean;
112 setShowRiskVision: (show: boolean) => void;
113 generateSharableLink: () => Promise<string>;
114 isSavedGraph: boolean;
115 personalGraphInfo: PersonalGraphInfo;
116 isTrackPad: boolean;
117 setIsTrackPad: (isTrackPad: boolean) => void;
118 zoomIn: ZoomInOut;
119 zoomOut: ZoomInOut;
120 updateNodeInternalsByID: (id: string) => void;
121}
122
123export const GraphContext = createContext<GraphContextProps>(
124 {} as GraphContextProps,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected