Move node templates to sub directory

This commit is contained in:
barsdeveloper
2022-12-17 10:50:57 +01:00
parent 60a8aa544a
commit d9216d0d40
10 changed files with 31 additions and 36 deletions

View File

@@ -2,14 +2,14 @@ import CommentNodeTemplate from "../template/node/CommentNodeTemplate"
import Configuration from "../Configuration"
import IdentifierEntity from "../entity/IdentifierEntity"
import ISelectableDraggableElement from "./ISelectableDraggableElement"
import KnotNodeTemplate from "../template/KnotNodeTemplate"
import NodeTemplate from "../template/NodeTemplate"
import KnotNodeTemplate from "../template/node/KnotNodeTemplate"
import NodeTemplate from "../template/node/NodeTemplate"
import ObjectEntity from "../entity/ObjectEntity"
import PinEntity from "../entity/PinEntity"
import PinReferenceEntity from "../entity/PinReferenceEntity"
import SerializerFactory from "../serialization/SerializerFactory"
import Utility from "../Utility"
import VariableAccessNodeTemplate from "../template/VariableAccessNodeTemplate"
import VariableAccessNodeTemplate from "../template/node/VariableAccessNodeTemplate"
/** @typedef {import("./IElement").default} IElement */

View File

@@ -5,7 +5,7 @@ import IMouseClickDrag from "./IMouseClickDrag"
/**
* @typedef {import("../../element/PinElement").default} PinElement
* @typedef {import("../../element/LinkElement").default} LinkElement
* @typedef {import("../../template/KnotNodeTemplate").default} KnotNodeTemplate
* @typedef {import("../../template/node/KnotNodeTemplate").default} KnotNodeTemplate
*/
/** @extends IMouseClickDrag<PinElement> */

View File

@@ -15,7 +15,6 @@ import Utility from "../Utility"
/** @template {AnyValue} T */
export default class ISerializer {
// @ts-expect-error
static grammar = Parsimmon.createLanguage(new Grammar())
/** @param {AnyValueConstructor<T>} entityType */

View File

@@ -1,5 +1,5 @@
import MouseClickDrag from "../input/mouse/MouseClickDrag"
import NodeTemplate from "./NodeTemplate"
import NodeTemplate from "./node/NodeTemplate"
/** @typedef {import("../element/NodeElement").default} NodeElement */

View File

@@ -9,7 +9,7 @@ import Utility from "../Utility"
/**
* @typedef {import("../element/LinkElement").default} LinkElement
* @typedef {import("../element/NodeElement").default} NodeElement
* @typedef {import("../template/KnotNodeTemplate").default} KnotNodeTemplate
* @typedef {import("./node/KnotNodeTemplate").default} KnotNodeTemplate
*/

View File

@@ -1,12 +1,12 @@
import { html } from "lit"
import Configuration from "../Configuration"
import ElementFactory from "../element/ElementFactory"
import KnotPinTemplate from "./pin/KnotPinTemplate"
import Configuration from "../../Configuration"
import ElementFactory from "../../element/ElementFactory"
import KnotPinTemplate from "../pin/KnotPinTemplate"
import NodeTemplate from "./NodeTemplate"
/**
* @typedef {import("../element/NodeElement").default} NodeElement
* @typedef {import("../element/PinElement").default} PinElement
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").default} PinElement
*/
export default class KnotNodeTemplate extends NodeTemplate {

View File

@@ -1,13 +1,13 @@
import { css, html, nothing } from "lit"
import Configuration from "../Configuration"
import ElementFactory from "../element/ElementFactory"
import ISelectableDraggableTemplate from "./ISelectableDraggableTemplate"
import SVGIcon from "../SVGIcon"
import Utility from "../Utility"
import Configuration from "../../Configuration"
import ElementFactory from "../../element/ElementFactory"
import ISelectableDraggableTemplate from "../ISelectableDraggableTemplate"
import SVGIcon from "../../SVGIcon"
import Utility from "../../Utility"
/**
* @typedef {import("../element/NodeElement").default} NodeElement
* @typedef {import("../element/PinElement").default} PinElement
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").default} PinElement
*/
/** @extends {ISelectableDraggableTemplate<NodeElement>} */

View File

@@ -1,10 +1,10 @@
import { html, nothing } from "lit"
import ElementFactory from "../element/ElementFactory"
import ElementFactory from "../../element/ElementFactory"
import NodeTemplate from "./NodeTemplate"
/**
* @typedef {import("../element/NodeElement").default} NodeElement
* @typedef {import("../element/PinElement").default} PinElement
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").default} PinElement
*/
export default class VariableAccessNodeTemplate extends NodeTemplate {

View File

@@ -2,7 +2,7 @@ import { html } from "lit"
import PinTemplate from "./PinTemplate"
import Utility from "../../Utility"
/** @typedef {import("./../KnotNodeTemplate").default} KnotNodeTemplate */
/** @typedef {import("../node/KnotNodeTemplate").default} KnotNodeTemplate */
export default class KnotPinTemplate extends PinTemplate {