Skip to content
Snippets Groups Projects
Commit ac1be2ec authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Fixed small typing errors

parent 38c8f591
No related branches found
No related tags found
No related merge requests found
import { GraphElement } from "./graphelement";
import { Node } from "./node";
import { Graph } from "./graph";
export interface NodeTypeData {
......
......@@ -2,10 +2,10 @@ import React, { useState } from "react";
import "./filtermenu.css";
import Label from "./label";
import { NodeTypeData } from "../../../common/graph/graph";
import { NodeType } from "../../../common/graph/nodetype";
interface FilterMenuProps {
classes: Map<string, GraphObjectType>;
classes: Map<string, NodeType>;
onVisibilityChange?: (visibility: Map<string, boolean>) => void;
}
......
import React from "react";
import { NodeTypeData, Node } from "../../../common/graph/graph";
import FancyScrollbar from "../fancyscrollbar";
import Collapsible from "../collapsible";
import "./neighbors.css";
import { NodeType } from "../../../common/graph/nodetype";
import { Node } from "../../../common/graph/node";
interface NeighborsProps {
neighbors: Node[];
nodeColors?: Map<string, GraphObjectType>;
nodeColors?: Map<string, NodeType>;
nodeClickedCallback?: (node: Node) => void;
}
......@@ -22,7 +23,7 @@ interface NeighborsProps {
function Neighbors({
neighbors,
nodeClickedCallback,
nodeColors = new Map<string, GraphObjectType>(),
nodeColors = new Map<string, NodeType>(),
}: NeighborsProps) {
const classes = [
...new Set<string>(neighbors.map((node) => node.type.name)),
......
import React from "react";
import "./nodeinfobar.css";
import { NodeTypeData, Node } from "../../../common/graph/graph";
import TitleArea from "./titlearea";
import FancyScrollbar from "../fancyscrollbar";
import MediaArea from "./mediaarea";
import Neighbors from "./neighbors";
import { NodeType } from "../../../common/graph/nodetype";
import { Node } from "../../../common/graph/node";
interface InfoBarProps {
height: number;
node: Node;
nodeColors?: Map<string, GraphObjectType>;
nodeColors?: Map<string, NodeType>;
onClose?: () => void;
nodeClickedCallback?: (node: Node) => void;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment