feat: extract graph-interface into seperate package
This commit is contained in:
6
packages/graph-interface/src/lib/graph/context.ts
Normal file
6
packages/graph-interface/src/lib/graph/context.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { GraphManager } from "../graph-manager.js";
|
||||
import { getContext } from "svelte";
|
||||
|
||||
export function getGraphManager(): GraphManager {
|
||||
return getContext("graphManager");
|
||||
}
|
||||
Reference in New Issue
Block a user