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

Moved graph data structures into common folder

parent b4b68d0d
No related branches found
No related tags found
1 merge request!3Master into new editor
Pipeline #56817 passed
File moved
File moved
import React from "react";
import { NodeData } from "../../graph";
import { NodeData } from "../../../common/graph";
import FancyScrollbar from "../fancyscrollbar";
import Collapsible from "../collapsible";
......
import React from "react";
import "./nodeinfobar.css";
import { NodeData } from "../../graph";
import { NodeData } from "../../../common/graph";
import TitleArea from "./titlearea";
import FancyScrollbar from "../fancyscrollbar";
import MediaArea from "./mediaarea";
......
import React, { useEffect, useRef, useState } from "react";
import "./searchbar.css";
import { NodeData } from "../graph";
import { NodeData } from "../../common/graph";
interface SearchBarProps {
minified: boolean;
......
......@@ -5,12 +5,11 @@ import PropTypes, { InferType } from "prop-types";
import "./display.css";
import { GraphNode, GraphRenderer } from "./renderer";
import * as Helpers from "./helpers";
import Graph, { NodeData } from "./graph";
import { loadGraphJson } from "../datasets";
import Graph, { NodeData } from "../common/graph";
import { loadGraphJson } from "../common/datasets";
import NodeInfoBar from "./components/nodeinfo/nodeinfobar";
import FilterMenu from "./components/nodefilter/filtermenu";
import SearchBar from "./components/searchbar";
import { graph } from "../editor/js/editor";
/**
* This component manages and renders a 3d-force-graph with additional menus to navigate, filter and view information on nodes.
......
......@@ -10,7 +10,7 @@ import React from "react";
import PropTypes, { InferType } from "prop-types";
import SpriteText from "three-spritetext";
import { Object3D, Sprite } from "three";
import Graph, { Coordinate, LinkData, NodeData } from "./graph";
import Graph, { Coordinate, LinkData, NodeData } from "../common/graph";
export interface GraphNode extends NodeData {
x: number;
......
import { State } from "./state";
import * as Graph from "./graph";
import { loadGraphJson } from "../../datasets";
import { loadGraphJson } from "../../common/datasets";
import ForceGraph from "force-graph";
import * as Interactions from "./interactions";
import { setSpace, SPACE } from "../../config";
......
import jQuery from "jquery";
import { state } from "./editor";
import { listAllSpaces, saveGraphJson } from "../../datasets";
import { listAllSpaces, saveGraphJson } from "../../common/datasets";
import { SPACE } from "../../config";
/**
......
import Tool from "./tool";
import { saveGraphJson } from "../../../datasets";
import { saveGraphJson } from "../../../common/datasets";
import { state, graph } from "../editor";
import { SPACE } from "../../../config";
import SaveIcon from "../../images/tools/save.png";
......
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