Large typedef import cleanup and smaller fixes

This commit is contained in:
barsdeveloper
2023-04-15 15:29:21 +02:00
parent baf40a9094
commit a82f61ac4a
76 changed files with 316 additions and 298 deletions

View File

@@ -14,10 +14,10 @@ import Utility from "../Utility.js"
import Zoom from "../input/mouse/Zoom.js"
/**
* @typedef {import("../Blueprint").default} Blueprint
* @typedef {import("../element/PinElement").default} PinElement
* @typedef {import("../element/SelectorElement").default} SelectorElement
* @typedef {import("../entity/PinReferenceEntity").default} PinReferenceEntity
* @typedef {import("../Blueprint.js").default} Blueprint
* @typedef {import("../element/PinElement.js").default} PinElement
* @typedef {import("../element/SelectorElement.js").default} SelectorElement
* @typedef {import("../entity/PinReferenceEntity.js").default} PinReferenceEntity
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -1,7 +1,7 @@
import IDraggableControlTemplate from "./IDraggableControlTemplate.js"
import Utility from "../Utility.js"
/** @typedef {import("../element/ColorHandlerElement").default} ColorHandlerElement */
/** @typedef {import("../element/ColorHandlerElement.js").default} ColorHandlerElement */
/** @extends {IDraggableControlTemplate<ColorHandlerElement>} */
export default class ColorHandlerTemplate extends IDraggableControlTemplate {

View File

@@ -1,7 +1,7 @@
import IDraggableControlTemplate from "./IDraggableControlTemplate.js"
import Utility from "../Utility.js"
/** @typedef {import("../element/ColorHandlerElement").default} ColorHandlerElement */
/** @typedef {import("../element/ColorHandlerElement.js").default} ColorHandlerElement */
/** @extends {IDraggableControlTemplate<ColorHandlerElement>} */
export default class ColorSliderTemplate extends IDraggableControlTemplate {

View File

@@ -2,7 +2,7 @@ import IDraggableTemplate from "./IDraggableTemplate.js"
import MouseMoveDraggable from "../input/mouse/MouseMoveDraggable.js"
/**
* @typedef {import("../element/IDraggableElement").default} IDraggableElement
* @typedef {import("../element/IDraggableElement.js").default} IDraggableElement
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -1,7 +1,7 @@
import IDraggableTemplate from "./IDraggableTemplate.js"
/**
* @typedef {import("../element/IDraggableElement").default} IDraggableElement
* @typedef {import("../element/IDraggableElement.js").default} IDraggableElement
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -3,10 +3,7 @@ import ITemplate from "./ITemplate.js"
import KeyboardShortcutAction from "../input/keybaord/KeyboardShortcutAction.js"
import MouseMoveDraggable from "../input/mouse/MouseMoveDraggable.js"
/**
* @typedef {import("../entity/IEntity").default} IEntity
* @typedef {import("../element/IDraggableElement").default} IDraggableElement
*/
/** @typedef {import("../element/IDraggableElement.js").default} IDraggableElement */
/**
* @template {IDraggableElement} T

View File

@@ -1,7 +1,7 @@
import ITemplate from "./ITemplate.js"
/**
* @typedef {import("../element/IFromToPositionedElement").default} IFromToPositionedElement
* @typedef {import("../element/IFromToPositionedElement.js").default} IFromToPositionedElement
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -2,7 +2,7 @@ import MouseClickDrag from "../input/mouse/MouseClickDrag.js"
import NodeTemplate from "./node/NodeTemplate.js"
/**
* @typedef {import("../element/NodeElement").default} NodeElement
* @typedef {import("../element/NodeElement.js").default} NodeElement
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -2,9 +2,9 @@ import IDraggablePositionedTemplate from "./IDraggablePositionedTemplate.js"
import MouseMoveNodes from "../input/mouse/MouseMoveNodes.js"
/**
* @typedef {import("../element/NodeElement").default} NodeElement
* @typedef {import("../element/NodeElement.js").default} NodeElement
* @typedef {import("../input/mouse/MouseMoveDraggable.js").default} MouseMoveDraggable
* @typedef {import("lit").PropertyValues} PropertyValues
* @typedef {import("../input/mouse/MouseMoveDraggable").default} MouseMoveDraggable
*/
/**

View File

@@ -1,8 +1,8 @@
import { html } from "lit"
/**
* @typedef {import("../element/IElement").default} IElement
* @typedef {import("../input/IInput").default} IInput
* @typedef {import("../element/IElement.js").default} IElement
* @typedef {import("../input/IInput.js").default} IInput
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -7,10 +7,10 @@ import MouseDbClick from "../input/mouse/MouseDbClick.js"
import Utility from "../Utility.js"
/**
* @typedef {import("../element/LinkElement").default} LinkElement
* @typedef {import("../element/LinkElement").LinkElementConstructor} LinkElementConstructor
* @typedef {import("../element/NodeElement").NodeElementConstructor} NodeElementConstructor
* @typedef {import("./node/KnotNodeTemplate").default} KnotNodeTemplate
* @typedef {import("../element/LinkElement.js").default} LinkElement
* @typedef {import("../element/LinkElement.js").LinkElementConstructor} LinkElementConstructor
* @typedef {import("../element/NodeElement.js").NodeElementConstructor} NodeElementConstructor
* @typedef {import("./node/KnotNodeTemplate.js").default} KnotNodeTemplate
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -1,6 +1,6 @@
import IFromToPositionedTemplate from "./IFromToPositionedTemplate.js"
/** @typedef {import("../element/SelectorElement").default} SelectorElement */
/** @typedef {import("../element/SelectorElement.js").default} SelectorElement */
/** @extends IFromToPositionedTemplate<SelectorElement> */
export default class SelectorTemplate extends IFromToPositionedTemplate {

View File

@@ -5,8 +5,7 @@ import LinearColorEntity from "../../entity/LinearColorEntity.js"
import Utility from "../../Utility.js"
/**
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").default} PinElement
* @typedef {import("../../element/NodeElement.js").default} NodeElement
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -5,7 +5,7 @@ import MinimalPinTemplate from "../pin/MinimalPinTemplate.js"
import NodeTemplate from "./NodeTemplate.js"
/**
* @typedef {import("../../element/PinElement").PinElementConstructor} PinElementConstructor
* @typedef {import("../../element/PinElement.js").PinElementConstructor} PinElementConstructor
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -5,9 +5,9 @@ import KnotPinTemplate from "../pin/KnotPinTemplate.js"
import NodeTemplate from "./NodeTemplate.js"
/**
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").default} PinElement
* @typedef {import("../../element/PinElement").PinElementConstructor} PinElementConstructor
* @typedef {import("../../element/NodeElement.js").default} NodeElement
* @typedef {import("../../element/PinElement.js").default} PinElement
* @typedef {import("../../element/PinElement.js").PinElementConstructor} PinElementConstructor
*/
export default class KnotNodeTemplate extends NodeTemplate {

View File

@@ -5,9 +5,9 @@ import SVGIcon from "../../SVGIcon.js"
import Utility from "../../Utility.js"
/**
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").default} PinElement
* @typedef {import("../../element/PinElement").PinElementConstructor} PinElementConstructor
* @typedef {import("../../element/NodeElement.js").default} NodeElement
* @typedef {import("../../element/PinElement.js").default} PinElement
* @typedef {import("../../element/PinElement.js").PinElementConstructor} PinElementConstructor
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -1,7 +1,7 @@
import Configuration from "../../Configuration.js"
import VariableManagementNodeTemplate from "./VariableMangementNodeTemplate.js"
/** @typedef {import("../../element/NodeElement").default} NodeElement */
/** @typedef {import("../../element/NodeElement.js").default} NodeElement */
export default class VariableAccessNodeTemplate extends VariableManagementNodeTemplate {

View File

@@ -1,7 +1,5 @@
import VariableManagementNodeTemplate from "./VariableMangementNodeTemplate.js"
/** @typedef {import("../../element/NodeElement").default} NodeElement */
export default class VariableConversionNodeTemplate extends VariableManagementNodeTemplate {
static nodeStyleClasses = [...super.nodeStyleClasses, "ueb-node-style-conversion"]

View File

@@ -3,8 +3,8 @@ import ElementFactory from "../../element/ElementFactory.js"
import NodeTemplate from "./NodeTemplate.js"
/**
* @typedef {import("../../element/NodeElement").default} NodeElement
* @typedef {import("../../element/PinElement").PinElementConstructor} PinElementConstructor
* @typedef {import("../../element/NodeElement.js").default} NodeElement
* @typedef {import("../../element/PinElement.js").PinElementConstructor} PinElementConstructor
*/
export default class VariableManagementNodeTemplate extends NodeTemplate {

View File

@@ -1,7 +1,5 @@
import VariableManagementNodeTemplate from "./VariableMangementNodeTemplate.js"
/** @typedef {import("../../element/NodeElement").default} NodeElement */
export default class VariableOperationNodeTemplate extends VariableManagementNodeTemplate {
static nodeStyleClasses = [...super.nodeStyleClasses, "ueb-node-style-operation"]

View File

@@ -3,8 +3,6 @@ import PinTemplate from "./PinTemplate.js"
import SVGIcon from "../../SVGIcon.js"
import Utility from "../../Utility.js"
/** @typedef {import("../../element/PinElement").default} PinElement */
export default class ExecPinTemplate extends PinTemplate {
renderIcon() {

View File

@@ -1,7 +1,5 @@
import IntPinTemplate from "./IntPinTemplate.js"
/** @typedef {import("../../entity/IntegerEntity").default} IntegerEntity */
export default class Int64PinTemplate extends IntPinTemplate {
/** @param {String[]} values */

View File

@@ -1,7 +1,7 @@
import { html } from "lit"
import INumericPinTemplate from "./INumericPinTemplate.js"
/** @typedef {import("../../entity/IntegerEntity").default} IntegerEntity */
/** @typedef {import("../../entity/IntegerEntity.js").default} IntegerEntity */
/** @extends INumericPinTemplate<IntegerEntity> */
export default class IntPinTemplate extends INumericPinTemplate {

View File

@@ -3,8 +3,8 @@ import MinimalPinTemplate from "./MinimalPinTemplate.js"
import Utility from "../../Utility.js"
/**
* @typedef {import("../node/KnotNodeTemplate").default} KnotNodeTemplate
* @typedef {import("../../entity/PinEntity").default} KnotEntity
* @typedef {import("../../entity/PinEntity.js").default} KnotEntity
* @typedef {import("../node/KnotNodeTemplate.js").default} KnotNodeTemplate
*/
/** @extends MinimalPinTemplate<KnotEntity> */

View File

@@ -5,9 +5,9 @@ import ElementFactory from "../../element/ElementFactory.js"
import PinTemplate from "./PinTemplate.js"
/**
* @typedef {import("../../element/WindowElement").default} WindowElement
* @typedef {import("../../element/WindowElement").WindowElementConstructor} WindowElementConstructor
* @typedef {import("../../entity/LinearColorEntity").default} LinearColorEntity
* @typedef {import("../../element/WindowElement.js").default} WindowElement
* @typedef {import("../../element/WindowElement.js").WindowElementConstructor} WindowElementConstructor
* @typedef {import("../../entity/LinearColorEntity.js").default} LinearColorEntity
*/
/** @extends PinTemplate<LinearColorEntity> */

View File

@@ -1,13 +1,14 @@
import { html } from "lit"
import PinTemplate from "./PinTemplate.js"
/** @typedef {import("../../entity/IEntity.js").AnyValue} AnyValue */
/**
* @template T
* @typedef {import("../../element/PinElement").default<T>} PinElement
* @template {AnyValue} T
* @typedef {import("../../element/PinElement.js").default<T>} PinElement
*/
/**
* @template T
* @template {AnyValue} T
* @extends PinTemplate<PinElement<T>>
*/
export default class MinimalPinTemplate extends PinTemplate {

View File

@@ -1,7 +1,5 @@
import IInputPinTemplate from "./IInputPinTemplate.js"
/** @typedef {import("../../element/PinElement").default} PinElement */
export default class NamePinTemplate extends IInputPinTemplate {
static singleLineInput = true

View File

@@ -7,12 +7,12 @@ import VariableConversionNodeTemplate from "../node/VariableConversionNodeTempla
import VariableOperationNodeTemplate from "../node/VariableOperationNodeTemplate.js"
/**
* @typedef {import("../../input/IInput").default} IInput
* @typedef {import("../../input/IInput.js").default} IInput
* @typedef {import("lit").PropertyValues} PropertyValues
*/
/**
* @template T
* @typedef {import("../../element/PinElement").default<T>} PinElement
* @typedef {import("../../element/PinElement.js").default<T>} PinElement
*/
/**

View File

@@ -3,7 +3,7 @@ import INumericPinTemplate from "./INumericPinTemplate.js"
import RotatorEntity from "../../entity/RotatorEntity.js"
import Utility from "../../Utility.js"
/** @typedef {import("../../entity/RotatorEntity").default} Rotator */
/** @typedef {import("../../entity/RotatorEntity.js").default} Rotator */
/** @extends INumericPinTemplate<Rotator> */
export default class RotatorPinTemplate extends INumericPinTemplate {

View File

@@ -8,7 +8,7 @@ import Utility from "../../Utility.js"
import WindowTemplate from "./WindowTemplate.js"
/**
* @typedef {import("../../element/WindowElement").default} WindowElement
* @typedef {import("../../element/WindowElement.js").default} WindowElement
* @typedef {import("lit").PropertyValues} PropertyValues
*/

View File

@@ -4,7 +4,7 @@ import IDraggablePositionedTemplate from "../IDraggablePositionedTemplate.js"
import MouseMoveDraggable from "../../input/mouse/MouseMoveDraggable.js"
import SVGIcon from "../../SVGIcon.js"
/** @typedef {import("../../element/WindowElement").default} WindowElement */
/** @typedef {import("../../element/WindowElement.js").default} WindowElement */
/** @extends {IDraggablePositionedTemplate<WindowElement>} */
export default class WindowTemplate extends IDraggablePositionedTemplate {