mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-26 18:24:45 +08:00
Fix single line doc comments
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import Configuration from "../Configuration"
|
||||
|
||||
/**
|
||||
* @typedef {import("../Blueprint").default} Blueprint
|
||||
*/
|
||||
/** @typedef {import("../Blueprint").default} Blueprint */
|
||||
|
||||
/**
|
||||
* @template {HTMLElement} T
|
||||
*/
|
||||
/** @template {HTMLElement} T */
|
||||
export default class IInput {
|
||||
|
||||
/** @type {T} */
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import Configuration from "../../Configuration"
|
||||
import IKeyboardShortcut from "./IKeyboardShortcut"
|
||||
|
||||
/**
|
||||
* @typedef {import("../../Blueprint").default} Blueprint
|
||||
*/
|
||||
/** @typedef {import("../../Blueprint").default} Blueprint */
|
||||
export default class KeyboardSelectAll extends IKeyboardShortcut {
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,9 +2,7 @@ import Configuration from "../../Configuration"
|
||||
import IPointing from "./IPointing"
|
||||
import Utility from "../../Utility"
|
||||
|
||||
/**
|
||||
* @typedef {import("../../Blueprint").default} Blueprint
|
||||
*/
|
||||
/** @typedef {import("../../Blueprint").default} Blueprint */
|
||||
|
||||
/**
|
||||
* @template {HTMLElement} T
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import IInput from "../IInput"
|
||||
import Utility from "../../Utility"
|
||||
|
||||
/**
|
||||
* @typedef {import("../../Blueprint").default} Blueprint
|
||||
*/
|
||||
/** @typedef {import("../../Blueprint").default} Blueprint */
|
||||
|
||||
/**
|
||||
* @template {HTMLElement} T
|
||||
@@ -16,9 +14,7 @@ export default class IPointing extends IInput {
|
||||
this.movementSpace = this.blueprint?.getGridDOMElement() ?? document.documentElement
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {MouseEvent} mouseEvent
|
||||
*/
|
||||
/** @param {MouseEvent} mouseEvent */
|
||||
locationFromEvent(mouseEvent) {
|
||||
const location = Utility.convertLocation(
|
||||
[mouseEvent.clientX, mouseEvent.clientY],
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import IMouseClickDrag from "./IMouseClickDrag"
|
||||
import LinkElement from "../../element/LinkElement"
|
||||
|
||||
/**
|
||||
* @typedef {import("../../element/PinElement").default} PinElement
|
||||
*/
|
||||
/** @typedef {import("../../element/PinElement").default} PinElement */
|
||||
|
||||
/**
|
||||
* @extends IMouseClickDrag<PinElement>
|
||||
*/
|
||||
/** @extends IMouseClickDrag<PinElement> */
|
||||
export default class MouseCreateLink extends IMouseClickDrag {
|
||||
|
||||
/** @type {NodeListOf<PinElement>} */
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import IMouseClickDrag from "./IMouseClickDrag"
|
||||
|
||||
/**
|
||||
* @typedef {import("../../element/PinElement").default} PinElement
|
||||
*/
|
||||
/** @typedef {import("../../element/PinElement").default} PinElement */
|
||||
|
||||
/**
|
||||
* @extends IMouseClickDrag<PinElement>
|
||||
*/
|
||||
/** @extends IMouseClickDrag<PinElement> */
|
||||
export default class MouseIgnore extends IMouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options = {}) {
|
||||
|
||||
@@ -16,9 +16,7 @@ export default class Unfocus extends IInput {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {HTMLElement} target
|
||||
*/
|
||||
/** @param {HTMLElement} target */
|
||||
clickedSomewhere(target) {
|
||||
// If target is outside the blueprint grid
|
||||
if (!target.closest("ueb-blueprint")) {
|
||||
|
||||
Reference in New Issue
Block a user