-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
335 additions
and
72 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
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
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
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
33 changes: 33 additions & 0 deletions
33
app/renderer/src/main/src/pages/YakRunner/RightAuditDetail/GraphInfoMap.ts
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,33 @@ | ||
import {v4 as uuidv4} from "uuid" | ||
import { GraphInfoProps } from "./RightAuditDetail" | ||
export const GraphInfoMap: Map<string, GraphInfoProps> = new Map() | ||
|
||
export const setMapGraphInfoDetail = (nodeId: string, info: GraphInfoProps) => { | ||
GraphInfoMap.set(nodeId, info) | ||
} | ||
|
||
export const getMapGraphInfoDetail = (nodeId: string) => { | ||
return ( | ||
GraphInfoMap.get(nodeId) | ||
) | ||
} | ||
|
||
export const getMapAllGraphInfoValue = () => { | ||
return Array.from(GraphInfoMap.values()) | ||
} | ||
|
||
export const getMapAllGraphInfoKey = () => { | ||
return Array.from(GraphInfoMap.keys()) | ||
} | ||
|
||
export const getMapAllGraphInfoSize = () => { | ||
return GraphInfoMap.size | ||
} | ||
|
||
export const clearMapGraphInfoDetail = () => { | ||
GraphInfoMap.clear() | ||
} | ||
|
||
export const removeMapGraphInfoDetail = (nodeId: string) => { | ||
GraphInfoMap.delete(nodeId) | ||
} |
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.