[Lint] Lint unused imports (#493)

This commit is contained in:
Chenlei Hu
2025-02-08 21:20:39 -05:00
committed by GitHub
parent 12f8d33b78
commit de74d8a08c
8 changed files with 38 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
// @ts-strict-ignore
import type { CanvasPointerEvent } from "./types/events"
import type { LGraphCanvas } from "./LGraphCanvas"
import { dist2 } from "./measure"
/**

View File

@@ -22,7 +22,7 @@ import type {
ReadOnlyPoint,
ReadOnlyRect,
} from "./interfaces"
import type { IBaseWidget, IWidget, TWidgetValue } from "./types/widgets"
import type { IWidget } from "./types/widgets"
import { LGraphNode, type NodeId } from "./LGraphNode"
import type {
CanvasDragEvent,
@@ -59,21 +59,14 @@ import {
} from "./measure"
import { LabelPosition, strokeShape } from "./draw"
import { DragAndScale } from "./DragAndScale"
import { LinkReleaseContextExtended, LiteGraph, clamp } from "./litegraph"
import { LinkReleaseContextExtended, LiteGraph } from "./litegraph"
import { stringOrEmpty, stringOrNull } from "./strings"
import { alignNodes, distributeNodes, getBoundaryNodes } from "./utils/arrange"
import { Reroute, type RerouteId } from "./Reroute"
import { getAllNestedItems, findFirstNode } from "./utils/collections"
import { CanvasPointer } from "./CanvasPointer"
import { BooleanWidget } from "./widgets/BooleanWidget"
import { toClass } from "./utils/type"
import { NodeInputSlot, NodeOutputSlot, type ConnectionColorContext } from "./NodeSlot"
import { ComboWidget } from "./widgets/ComboWidget"
import { NumberWidget } from "./widgets/NumberWidget"
import { ButtonWidget } from "./widgets/ButtonWidget"
import { TextWidget } from "./widgets/TextWidget"
import { SliderWidget } from "./widgets/SliderWidget"
import { BaseWidget } from "./widgets/BaseWidget"
import { WIDGET_TYPE_MAP } from "./widgets/widgetMap"
interface IShowSearchOptions {

View File

@@ -16,12 +16,12 @@ import type {
Size,
} from "./interfaces"
import type { LGraph } from "./LGraph"
import type { IWidget, TWidgetType, TWidgetValue } from "./types/widgets"
import type { IWidget, TWidgetValue } from "./types/widgets"
import type { ISerialisedNode } from "./types/serialisation"
import type { LGraphCanvas } from "./LGraphCanvas"
import type { CanvasMouseEvent } from "./types/events"
import type { DragAndScale } from "./DragAndScale"
import type { Reroute, RerouteId } from "./Reroute"
import type { RerouteId } from "./Reroute"
import {
LGraphEventMode,
NodeSlotType,

View File

@@ -6,7 +6,6 @@ import type { ConnectingLink, LinkReleaseContextExtended } from "../litegraph"
import type { IWidget } from "./widgets"
import type { LGraphNode } from "../LGraphNode"
import type { LGraphGroup } from "../LGraphGroup"
import type { LGraphCanvas } from "../LGraphCanvas"
/** For Canvas*Event - adds graph space co-ordinates (property names are shipped) */
export interface ICanvasPosition {

View File

@@ -1,4 +1,4 @@
import type { Dictionary, Direction, IBoundaryNodes } from "../interfaces"
import type { Direction, IBoundaryNodes } from "../interfaces"
import type { LGraphNode } from "../LGraphNode"
/**