mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
Large typedef import cleanup and smaller fixes
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import IntPinTemplate from "./IntPinTemplate.js"
|
||||
|
||||
/** @typedef {import("../../entity/IntegerEntity").default} IntegerEntity */
|
||||
|
||||
export default class Int64PinTemplate extends IntPinTemplate {
|
||||
|
||||
/** @param {String[]} values */
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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> */
|
||||
|
||||
@@ -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> */
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import IInputPinTemplate from "./IInputPinTemplate.js"
|
||||
|
||||
/** @typedef {import("../../element/PinElement").default} PinElement */
|
||||
|
||||
export default class NamePinTemplate extends IInputPinTemplate {
|
||||
|
||||
static singleLineInput = true
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user