mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 09:27:41 +00:00
Fix unnecessary module loading for type imports (#1053)
This commit is contained in:
@@ -25,7 +25,7 @@ import { LGraphNode, type NodeId } from "./LGraphNode"
|
||||
import { LiteGraph } from "./litegraph"
|
||||
import { type LinkId, LLink } from "./LLink"
|
||||
import { MapProxyHandler } from "./MapProxyHandler"
|
||||
import { Reroute, RerouteId } from "./Reroute"
|
||||
import { Reroute, type RerouteId } from "./Reroute"
|
||||
import { stringOrEmpty } from "./strings"
|
||||
import { LGraphEventMode } from "./types/globalEnums"
|
||||
import { getAllNestedItems } from "./utils/collections"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LGraphIcon, LGraphIconOptions } from "./LGraphIcon"
|
||||
import { LGraphIcon, type LGraphIconOptions } from "./LGraphIcon"
|
||||
|
||||
export enum BadgePosition {
|
||||
TopLeft = "top-left",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { RenderLink } from "./RenderLink"
|
||||
import type { LinkConnectorEventMap } from "@/infrastructure/LinkConnectorEventMap"
|
||||
import type { ConnectingLink, ItemLocator, LinkNetwork, LinkSegment } from "@/interfaces"
|
||||
import type { INodeInputSlot, INodeOutputSlot } from "@/interfaces"
|
||||
import type { LGraphNode } from "@/LGraphNode"
|
||||
@@ -7,7 +8,6 @@ import type { CanvasPointerEvent } from "@/types/events"
|
||||
import type { IBaseWidget } from "@/types/widgets"
|
||||
|
||||
import { CustomEventTarget } from "@/infrastructure/CustomEventTarget"
|
||||
import { LinkConnectorEventMap } from "@/infrastructure/LinkConnectorEventMap"
|
||||
import { LLink } from "@/LLink"
|
||||
import { LinkDirection } from "@/types/globalEnums"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { CanvasEventDetail } from "./types/events"
|
||||
import type { RenderShape, TitleMode } from "./types/globalEnums"
|
||||
|
||||
// Must remain above LiteGraphGlobal (circular dependency due to abstract factory behaviour in `configure`)
|
||||
export type { Subgraph } from "./subgraph/Subgraph"
|
||||
export { Subgraph } from "./subgraph/Subgraph"
|
||||
|
||||
import { LiteGraphGlobal } from "./LiteGraphGlobal"
|
||||
import { loadPolyfills } from "./polyfills"
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import type { CanvasColour, Point, RequiredProps, Size } from "../interfaces"
|
||||
import type { CanvasPointer, LGraphCanvas, LGraphNode } from "../litegraph"
|
||||
import type { CanvasMouseEvent, CanvasPointerEvent } from "./events"
|
||||
|
||||
import { CanvasColour, Point, type RequiredProps, Size } from "../interfaces"
|
||||
|
||||
export interface IWidgetOptions<TValues = unknown[]> {
|
||||
on?: string
|
||||
off?: string
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { Point } from "@/interfaces"
|
||||
import type { CanvasPointer, LGraphCanvas, LGraphNode, Size } from "@/litegraph"
|
||||
import type { CanvasMouseEvent, CanvasPointerEvent } from "@/types/events"
|
||||
import type { IBaseWidget } from "@/types/widgets"
|
||||
|
||||
import { drawTextInArea } from "@/draw"
|
||||
import { Rectangle } from "@/infrastructure/Rectangle"
|
||||
import { Point } from "@/interfaces"
|
||||
import { LiteGraph } from "@/litegraph"
|
||||
|
||||
export interface DrawWidgetOptions {
|
||||
|
||||
Reference in New Issue
Block a user