Skip to content

Commit

Permalink
chore: clean up unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Nov 17, 2024
1 parent 3688586 commit eb81c03
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
26 changes: 0 additions & 26 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +0,0 @@
declare module "cytoscape-elk" {
import cy from "cytoscape";
const elk: cy.Ext;

export interface ElkLayoutOptions extends cy.BaseLayoutOptions {
nodeDimensionsIncludeLabels?: boolean;
fit?: boolean;
padding?: number;
animate?: boolean;
animateFilter?: (node: cy.NodeSingular, i: number) => boolean;
animationDuration?: number;
animationEasing?: number;
transform?: (node: cy.NodeSingular, pos: cy.Position) => cy.Position;
ready?: () => void;
stop?: () => void;
elk?: Record<string, unknown>;
priority?: (edge: cy.EdgeSingular) => null | number;
}

export default elk;
}
declare module "cytoscape-navigator" {
import cy from "cytoscape";
const nav: cy.Ext;
export default nav;
}
5 changes: 0 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ root.render(
);

function Layout() {
// https://stackoverflow.com/a/58936230
// const query = window.matchMedia("(prefers-color-scheme: dark)");
// const [darkMode, setDarkMode] = useState(query.matches);
// query.addEventListener("change", (e) => setDarkMode(e.matches));

const darkMode = useMediaQuery("(prefers-color-scheme: dark)");
const isProduction = process.env.NODE_ENV === "production";

Expand Down
Empty file removed src/react-app-env.d.ts
Empty file.

0 comments on commit eb81c03

Please sign in to comment.