mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 00:50:01 +00:00
[Lint] Lint unused imports (#493)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// @ts-strict-ignore
|
||||
import type { CanvasPointerEvent } from "./types/events"
|
||||
import type { LGraphCanvas } from "./LGraphCanvas"
|
||||
import { dist2 } from "./measure"
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Dictionary, Direction, IBoundaryNodes } from "../interfaces"
|
||||
import type { Direction, IBoundaryNodes } from "../interfaces"
|
||||
import type { LGraphNode } from "../LGraphNode"
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user