mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
[refactor] Migrate litegraph imports from npm package to local subtree
- Updated all imports from '@comfyorg/litegraph' to '@/lib/litegraph/src/' - Replaced deep dist imports with direct source paths - Updated CSS import in main.ts - All imports now use the @ alias consistently
This commit is contained in:
@@ -42,11 +42,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { whenever } from '@vueuse/core'
|
import { whenever } from '@vueuse/core'
|
||||||
import Message from 'primevue/message'
|
import Message from 'primevue/message'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useSystemStatsStore } from '@/stores/systemStatsStore'
|
import { useSystemStatsStore } from '@/stores/systemStatsStore'
|
||||||
import { compareVersions } from '@/utils/formatUtil'
|
import { compareVersions } from '@/utils/formatUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { useEventListener, whenever } from '@vueuse/core'
|
import { useEventListener, whenever } from '@vueuse/core'
|
||||||
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
|
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
|
||||||
|
|
||||||
@@ -78,6 +77,7 @@ import { useWorkflowAutoSave } from '@/composables/useWorkflowAutoSave'
|
|||||||
import { useWorkflowPersistence } from '@/composables/useWorkflowPersistence'
|
import { useWorkflowPersistence } from '@/composables/useWorkflowPersistence'
|
||||||
import { CORE_SETTINGS } from '@/constants/coreSettings'
|
import { CORE_SETTINGS } from '@/constants/coreSettings'
|
||||||
import { i18n, t } from '@/i18n'
|
import { i18n, t } from '@/i18n'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { UnauthorizedError, api } from '@/scripts/api'
|
import { UnauthorizedError, api } from '@/scripts/api'
|
||||||
import { app as comfyApp } from '@/scripts/app'
|
import { app as comfyApp } from '@/scripts/app'
|
||||||
import { ChangeTracker } from '@/scripts/changeTracker'
|
import { ChangeTracker } from '@/scripts/changeTracker'
|
||||||
|
|||||||
@@ -70,13 +70,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import ButtonGroup from 'primevue/buttongroup'
|
import ButtonGroup from 'primevue/buttongroup'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { useCanvasInteractions } from '@/composables/graph/useCanvasInteractions'
|
import { useCanvasInteractions } from '@/composables/graph/useCanvasInteractions'
|
||||||
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
|
|||||||
@@ -10,15 +10,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
|
||||||
LiteGraph,
|
|
||||||
isOverNodeInput,
|
|
||||||
isOverNodeOutput
|
|
||||||
} from '@comfyorg/litegraph'
|
|
||||||
import { useEventListener } from '@vueuse/core'
|
import { useEventListener } from '@vueuse/core'
|
||||||
import { nextTick, ref } from 'vue'
|
import { nextTick, ref } from 'vue'
|
||||||
|
|
||||||
import { st } from '@/i18n'
|
import { st } from '@/i18n'
|
||||||
|
import {
|
||||||
|
LiteGraph,
|
||||||
|
isOverNodeInput,
|
||||||
|
isOverNodeOutput
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { app as comfyApp } from '@/scripts/app'
|
import { app as comfyApp } from '@/scripts/app'
|
||||||
import { isDOMWidget } from '@/scripts/domWidget'
|
import { isDOMWidget } from '@/scripts/domWidget'
|
||||||
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { createBounds } from '@comfyorg/litegraph'
|
|
||||||
import { whenever } from '@vueuse/core'
|
import { whenever } from '@vueuse/core'
|
||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
|
|
||||||
import { useSelectedLiteGraphItems } from '@/composables/canvas/useSelectedLiteGraphItems'
|
import { useSelectedLiteGraphItems } from '@/composables/canvas/useSelectedLiteGraphItems'
|
||||||
import { useAbsolutePosition } from '@/composables/element/useAbsolutePosition'
|
import { useAbsolutePosition } from '@/composables/element/useAbsolutePosition'
|
||||||
|
import { createBounds } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
|
|
||||||
const canvasStore = useCanvasStore()
|
const canvasStore = useCanvasStore()
|
||||||
|
|||||||
@@ -13,13 +13,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { LGraphGroup, LGraphNode, LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import type { LiteGraphCanvasEvent } from '@comfyorg/litegraph'
|
|
||||||
import { useEventListener } from '@vueuse/core'
|
import { useEventListener } from '@vueuse/core'
|
||||||
import { type CSSProperties, computed, ref, watch } from 'vue'
|
import { type CSSProperties, computed, ref, watch } from 'vue'
|
||||||
|
|
||||||
import EditableText from '@/components/common/EditableText.vue'
|
import EditableText from '@/components/common/EditableText.vue'
|
||||||
import { useAbsolutePosition } from '@/composables/element/useAbsolutePosition'
|
import { useAbsolutePosition } from '@/composables/element/useAbsolutePosition'
|
||||||
|
import {
|
||||||
|
LGraphGroup,
|
||||||
|
LGraphNode,
|
||||||
|
LiteGraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { LiteGraphCanvasEvent } from '@/lib/litegraph/src/litegraph'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useCanvasStore, useTitleEditorStore } from '@/stores/graphStore'
|
import { useCanvasStore, useTitleEditorStore } from '@/stores/graphStore'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import { useCanvasStore } from '@/stores/graphStore'
|
|||||||
import { useWorkflowStore } from '@/stores/workflowStore'
|
import { useWorkflowStore } from '@/stores/workflowStore'
|
||||||
|
|
||||||
// Mock the litegraph module
|
// Mock the litegraph module
|
||||||
vi.mock('@comfyorg/litegraph', async () => {
|
vi.mock('@/lib/litegraph/src/litegraph', async () => {
|
||||||
const actual = await vi.importActual('@comfyorg/litegraph')
|
const actual = await vi.importActual('@/lib/litegraph/src/litegraph')
|
||||||
return {
|
return {
|
||||||
...actual,
|
...actual,
|
||||||
LGraphCanvas: {
|
LGraphCanvas: {
|
||||||
|
|||||||
@@ -44,13 +44,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { ColorOption as CanvasColorOption } from '@comfyorg/litegraph'
|
|
||||||
import { LGraphCanvas, LiteGraph, isColorable } from '@comfyorg/litegraph'
|
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import SelectButton from 'primevue/selectbutton'
|
import SelectButton from 'primevue/selectbutton'
|
||||||
import { computed, ref, watch } from 'vue'
|
import { computed, ref, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
import type { ColorOption as CanvasColorOption } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import {
|
||||||
|
LGraphCanvas,
|
||||||
|
LiteGraph,
|
||||||
|
isColorable
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { useWorkflowStore } from '@/stores/workflowStore'
|
import { useWorkflowStore } from '@/stores/workflowStore'
|
||||||
import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
|
import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
|
||||||
|
|||||||
@@ -19,11 +19,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { isLGraphNode } from '@/utils/litegraphUtil'
|
import { isLGraphNode } from '@/utils/litegraphUtil'
|
||||||
|
|||||||
@@ -12,10 +12,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { NodeId } from '@comfyorg/litegraph'
|
|
||||||
import Skeleton from 'primevue/skeleton'
|
import Skeleton from 'primevue/skeleton'
|
||||||
import { computed, onMounted, ref, watch } from 'vue'
|
import { computed, onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
|
import { NodeId } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useExecutionStore } from '@/stores/executionStore'
|
import { useExecutionStore } from '@/stores/executionStore'
|
||||||
import { linkifyHtml, nl2br } from '@/utils/formatUtil'
|
import { linkifyHtml, nl2br } from '@/utils/formatUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { onMounted, onUnmounted, ref, toRaw, watch } from 'vue'
|
import { onMounted, onUnmounted, ref, toRaw, watch } from 'vue'
|
||||||
|
|
||||||
import LoadingOverlay from '@/components/load3d/LoadingOverlay.vue'
|
import LoadingOverlay from '@/components/load3d/LoadingOverlay.vue'
|
||||||
@@ -17,6 +16,7 @@ import {
|
|||||||
UpDirection
|
UpDirection
|
||||||
} from '@/extensions/core/load3d/interfaces'
|
} from '@/extensions/core/load3d/interfaces'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import { useLoad3dService } from '@/services/load3dService'
|
import { useLoad3dService } from '@/services/load3dService'
|
||||||
|
|
||||||
|
|||||||
@@ -75,11 +75,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { Tooltip } from 'primevue'
|
import { Tooltip } from 'primevue'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
|
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useLoad3dService } from '@/services/load3dService'
|
import { useLoad3dService } from '@/services/load3dService'
|
||||||
|
|
||||||
const vTooltip = Tooltip
|
const vTooltip = Tooltip
|
||||||
|
|||||||
@@ -33,18 +33,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
|
||||||
LGraphNode,
|
|
||||||
LiteGraph,
|
|
||||||
LiteGraphCanvasEvent
|
|
||||||
} from '@comfyorg/litegraph'
|
|
||||||
import { Point } from '@comfyorg/litegraph/dist/interfaces'
|
|
||||||
import type { CanvasPointerEvent } from '@comfyorg/litegraph/dist/types/events'
|
|
||||||
import { useEventListener } from '@vueuse/core'
|
import { useEventListener } from '@vueuse/core'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import Dialog from 'primevue/dialog'
|
import Dialog from 'primevue/dialog'
|
||||||
import { computed, ref, toRaw, watch, watchEffect } from 'vue'
|
import { computed, ref, toRaw, watch, watchEffect } from 'vue'
|
||||||
|
|
||||||
|
import { Point } from '@/lib/litegraph/src/interfaces'
|
||||||
|
import {
|
||||||
|
LGraphNode,
|
||||||
|
LiteGraph,
|
||||||
|
LiteGraphCanvasEvent
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { LGraphCanvas } from '@comfyorg/litegraph'
|
|
||||||
import { onUnmounted, ref } from 'vue'
|
import { onUnmounted, ref } from 'vue'
|
||||||
|
|
||||||
|
import { LGraphCanvas } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
|
|
||||||
interface CanvasTransformSyncOptions {
|
interface CanvasTransformSyncOptions {
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import {
|
|||||||
LGraphNode,
|
LGraphNode,
|
||||||
Positionable,
|
Positionable,
|
||||||
Reroute
|
Reroute
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { Size, Vector2 } from '@comfyorg/litegraph'
|
|
||||||
import { CSSProperties, ref, watch } from 'vue'
|
import { CSSProperties, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { useCanvasPositionConversion } from '@/composables/element/useCanvasPositionConversion'
|
import { useCanvasPositionConversion } from '@/composables/element/useCanvasPositionConversion'
|
||||||
|
import type { Size, Vector2 } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { LGraphCanvas, Vector2 } from '@comfyorg/litegraph'
|
|
||||||
import { useElementBounding } from '@vueuse/core'
|
import { useElementBounding } from '@vueuse/core'
|
||||||
|
|
||||||
|
import type { LGraphCanvas, Vector2 } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert between canvas and client positions
|
* Convert between canvas and client positions
|
||||||
* @param canvasElement - The canvas element
|
* @param canvasElement - The canvas element
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { IWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
import type { IWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
import { ANIM_PREVIEW_WIDGET } from '@/scripts/app'
|
import { ANIM_PREVIEW_WIDGET } from '@/scripts/app'
|
||||||
import { createImageHost } from '@/scripts/ui/imagePreview'
|
import { createImageHost } from '@/scripts/ui/imagePreview'
|
||||||
import { fitDimensionsToNodeWidth } from '@/utils/imageUtil'
|
import { fitDimensionsToNodeWidth } from '@/utils/imageUtil'
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import {
|
|
||||||
BadgePosition,
|
|
||||||
LGraphBadge,
|
|
||||||
type LGraphNode
|
|
||||||
} from '@comfyorg/litegraph'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { computed, onMounted, watch } from 'vue'
|
import { computed, onMounted, watch } from 'vue'
|
||||||
|
|
||||||
import { useNodePricing } from '@/composables/node/useNodePricing'
|
import { useNodePricing } from '@/composables/node/useNodePricing'
|
||||||
import { useComputedWithWidgetWatch } from '@/composables/node/useWatchWidget'
|
import { useComputedWithWidgetWatch } from '@/composables/node/useWatchWidget'
|
||||||
|
import {
|
||||||
|
BadgePosition,
|
||||||
|
LGraphBadge,
|
||||||
|
type LGraphNode
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useExtensionStore } from '@/stores/extensionStore'
|
import { useExtensionStore } from '@/stores/extensionStore'
|
||||||
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import { useImagePreviewWidget } from '@/composables/widgets/useImagePreviewWidget'
|
import { useImagePreviewWidget } from '@/composables/widgets/useImagePreviewWidget'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
const CANVAS_IMAGE_PREVIEW_WIDGET = '$$canvas-image-preview'
|
const CANVAS_IMAGE_PREVIEW_WIDGET = '$$canvas-image-preview'
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import type ChatHistoryWidget from '@/components/graph/widgets/ChatHistoryWidget.vue'
|
import type ChatHistoryWidget from '@/components/graph/widgets/ChatHistoryWidget.vue'
|
||||||
import { useChatHistoryWidget } from '@/composables/widgets/useChatHistoryWidget'
|
import { useChatHistoryWidget } from '@/composables/widgets/useChatHistoryWidget'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
const CHAT_HISTORY_WIDGET_NAME = '$$node-chat-history'
|
const CHAT_HISTORY_WIDGET_NAME = '$$node-chat-history'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
type DragHandler = (e: DragEvent) => boolean
|
type DragHandler = (e: DragEvent) => boolean
|
||||||
type DropHandler<T> = (files: File[]) => Promise<T[]>
|
type DropHandler<T> = (files: File[]) => Promise<T[]>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
interface FileInputOptions {
|
interface FileInputOptions {
|
||||||
accept?: string
|
accept?: string
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { useNodeOutputStore } from '@/stores/imagePreviewStore'
|
import { useNodeOutputStore } from '@/stores/imagePreviewStore'
|
||||||
import { fitDimensionsToNodeWidth } from '@/utils/imageUtil'
|
import { fitDimensionsToNodeWidth } from '@/utils/imageUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import { useNodeDragAndDrop } from '@/composables/node/useNodeDragAndDrop'
|
import { useNodeDragAndDrop } from '@/composables/node/useNodeDragAndDrop'
|
||||||
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
|
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
|
||||||
import { useNodePaste } from '@/composables/node/useNodePaste'
|
import { useNodePaste } from '@/composables/node/useNodePaste'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { ResultItemType } from '@/schemas/apiSchema'
|
import type { ResultItemType } from '@/schemas/apiSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { useToastStore } from '@/stores/toastStore'
|
import { useToastStore } from '@/stores/toastStore'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
type PasteHandler<T> = (files: File[]) => Promise<T>
|
type PasteHandler<T> = (files: File[]) => Promise<T>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { IComboWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
import type { IComboWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function that calculates dynamic pricing based on node widget values
|
* Function that calculates dynamic pricing based on node widget values
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import { useTextPreviewWidget } from '@/composables/widgets/useProgressTextWidget'
|
import { useTextPreviewWidget } from '@/composables/widgets/useProgressTextWidget'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
const TEXT_PREVIEW_WIDGET_NAME = '$$node-text-preview'
|
const TEXT_PREVIEW_WIDGET_NAME = '$$node-text-preview'
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { computedWithControl } from '@vueuse/core'
|
import { computedWithControl } from '@vueuse/core'
|
||||||
import { type ComputedRef, ref } from 'vue'
|
import { type ComputedRef, ref } from 'vue'
|
||||||
|
|
||||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
export interface UseComputedWithWidgetWatchOptions {
|
export interface UseComputedWithWidgetWatchOptions {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { NodeProperty } from '@comfyorg/litegraph/dist/LGraphNode'
|
|
||||||
import { groupBy } from 'lodash'
|
import { groupBy } from 'lodash'
|
||||||
import { computed, onMounted } from 'vue'
|
import { computed, onMounted } from 'vue'
|
||||||
|
|
||||||
import { useWorkflowPacks } from '@/composables/nodePack/useWorkflowPacks'
|
import { useWorkflowPacks } from '@/composables/nodePack/useWorkflowPacks'
|
||||||
|
import { NodeProperty } from '@/lib/litegraph/src/LGraphNode'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { computed, onUnmounted, ref } from 'vue'
|
import { computed, onUnmounted, ref } from 'vue'
|
||||||
|
|
||||||
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
|
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import { Ref } from 'vue'
|
import { Ref } from 'vue'
|
||||||
|
|
||||||
import { usePragmaticDroppable } from '@/composables/usePragmaticDragAndDrop'
|
import { usePragmaticDroppable } from '@/composables/usePragmaticDragAndDrop'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { app as comfyApp } from '@/scripts/app'
|
import { app as comfyApp } from '@/scripts/app'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import { useWorkflowService } from '@/services/workflowService'
|
import { useWorkflowService } from '@/services/workflowService'
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
|
import { st, te } from '@/i18n'
|
||||||
import type {
|
import type {
|
||||||
IContextMenuOptions,
|
IContextMenuOptions,
|
||||||
IContextMenuValue,
|
IContextMenuValue,
|
||||||
INodeInputSlot,
|
INodeInputSlot,
|
||||||
IWidget
|
IWidget
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
|
import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { st, te } from '@/i18n'
|
|
||||||
import { normalizeI18nKey } from '@/utils/formatUtil'
|
import { normalizeI18nKey } from '@/utils/formatUtil'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,11 +1,3 @@
|
|||||||
import {
|
|
||||||
LGraphEventMode,
|
|
||||||
LGraphGroup,
|
|
||||||
LGraphNode,
|
|
||||||
LiteGraph
|
|
||||||
} from '@comfyorg/litegraph'
|
|
||||||
import { Point } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import { useFirebaseAuthActions } from '@/composables/auth/useFirebaseAuthActions'
|
import { useFirebaseAuthActions } from '@/composables/auth/useFirebaseAuthActions'
|
||||||
import { useSelectedLiteGraphItems } from '@/composables/canvas/useSelectedLiteGraphItems'
|
import { useSelectedLiteGraphItems } from '@/composables/canvas/useSelectedLiteGraphItems'
|
||||||
import {
|
import {
|
||||||
@@ -13,6 +5,13 @@ import {
|
|||||||
DEFAULT_LIGHT_COLOR_PALETTE
|
DEFAULT_LIGHT_COLOR_PALETTE
|
||||||
} from '@/constants/coreColorPalettes'
|
} from '@/constants/coreColorPalettes'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import {
|
||||||
|
LGraphEventMode,
|
||||||
|
LGraphGroup,
|
||||||
|
LGraphNode,
|
||||||
|
LiteGraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
import { Point } from '@/lib/litegraph/src/litegraph'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { addFluxKontextGroupNode } from '@/scripts/fluxKontextEditNode'
|
import { addFluxKontextGroupNode } from '@/scripts/fluxKontextEditNode'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
LGraphNode,
|
LGraphNode,
|
||||||
LLink,
|
LLink,
|
||||||
LiteGraph
|
LiteGraph
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assign all properties of LiteGraph to window to make it backward compatible.
|
* Assign all properties of LiteGraph to window to make it backward compatible.
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
import { CanvasPointer, LGraphNode, LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import { watchEffect } from 'vue'
|
import { watchEffect } from 'vue'
|
||||||
|
|
||||||
|
import {
|
||||||
|
CanvasPointer,
|
||||||
|
LGraphNode,
|
||||||
|
LiteGraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { useRafFn, useThrottleFn } from '@vueuse/core'
|
import { useRafFn, useThrottleFn } from '@vueuse/core'
|
||||||
import { computed, nextTick, ref, watch } from 'vue'
|
import { computed, nextTick, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { useCanvasTransformSync } from '@/composables/canvas/useCanvasTransformSync'
|
import { useCanvasTransformSync } from '@/composables/canvas/useCanvasTransformSync'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { useEventListener } from '@vueuse/core'
|
import { useEventListener } from '@vueuse/core'
|
||||||
|
|
||||||
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { computed, ref, watchEffect } from 'vue'
|
import { computed, ref, watchEffect } from 'vue'
|
||||||
|
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useCanvasStore } from '@/stores/graphStore'
|
import { useCanvasStore } from '@/stores/graphStore'
|
||||||
import { isLGraphNode } from '@/utils/litegraphUtil'
|
import { isLGraphNode } from '@/utils/litegraphUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { ISerialisedGraph } from '@comfyorg/litegraph/dist/types/serialisation'
|
import type { ISerialisedGraph } from '@/lib/litegraph/src/types/serialisation'
|
||||||
|
|
||||||
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { validateComfyWorkflow } from '@/schemas/comfyWorkflowSchema'
|
import { validateComfyWorkflow } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { useToastStore } from '@/stores/toastStore'
|
import { useToastStore } from '@/stores/toastStore'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type InputSpec,
|
type InputSpec,
|
||||||
isBooleanInputSpec
|
isBooleanInputSpec
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import ChatHistoryWidget from '@/components/graph/widgets/ChatHistoryWidget.vue'
|
import ChatHistoryWidget from '@/components/graph/widgets/ChatHistoryWidget.vue'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import {
|
import {
|
||||||
ComponentWidgetImpl,
|
ComponentWidgetImpl,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import type { IComboWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import MultiSelectWidget from '@/components/graph/widgets/MultiSelectWidget.vue'
|
import MultiSelectWidget from '@/components/graph/widgets/MultiSelectWidget.vue'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { IComboWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
|
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
|
||||||
import {
|
import {
|
||||||
ComboInputSpec,
|
ComboInputSpec,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import type { INumericWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
|
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { INumericWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import {
|
import {
|
||||||
type InputSpec,
|
type InputSpec,
|
||||||
isFloatInputSpec
|
isFloatInputSpec
|
||||||
|
|||||||
@@ -3,12 +3,11 @@ import {
|
|||||||
type CanvasPointer,
|
type CanvasPointer,
|
||||||
type LGraphNode,
|
type LGraphNode,
|
||||||
LiteGraph
|
LiteGraph
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import type {
|
import type {
|
||||||
IBaseWidget,
|
IBaseWidget,
|
||||||
IWidgetOptions
|
IWidgetOptions
|
||||||
} from '@comfyorg/litegraph/dist/types/widgets'
|
} from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { calculateImageGrid } from '@/scripts/ui/imagePreview'
|
import { calculateImageGrid } from '@/scripts/ui/imagePreview'
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { IComboWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
|
|
||||||
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
|
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
|
||||||
import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload'
|
import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload'
|
||||||
import { useValueTransform } from '@/composables/useValueTransform'
|
import { useValueTransform } from '@/composables/useValueTransform'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import { IComboWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import type { ResultItem, ResultItemType } from '@/schemas/apiSchema'
|
import type { ResultItem, ResultItemType } from '@/schemas/apiSchema'
|
||||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||||
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
|
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { INumericWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
import type { INumericWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
|
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
|
||||||
import {
|
import {
|
||||||
type InputSpec,
|
type InputSpec,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { Editor as TiptapEditor } from '@tiptap/core'
|
import { Editor as TiptapEditor } from '@tiptap/core'
|
||||||
import TiptapLink from '@tiptap/extension-link'
|
import TiptapLink from '@tiptap/extension-link'
|
||||||
import TiptapTable from '@tiptap/extension-table'
|
import TiptapTable from '@tiptap/extension-table'
|
||||||
@@ -8,6 +7,7 @@ import TiptapTableRow from '@tiptap/extension-table-row'
|
|||||||
import TiptapStarterKit from '@tiptap/starter-kit'
|
import TiptapStarterKit from '@tiptap/starter-kit'
|
||||||
import { Markdown as TiptapMarkdown } from 'tiptap-markdown'
|
import { Markdown as TiptapMarkdown } from 'tiptap-markdown'
|
||||||
|
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { type InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import { type InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { type ComfyWidgetConstructorV2 } from '@/scripts/widgets'
|
import { type ComfyWidgetConstructorV2 } from '@/scripts/widgets'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import TextPreviewWidget from '@/components/graph/widgets/TextPreviewWidget.vue'
|
import TextPreviewWidget from '@/components/graph/widgets/TextPreviewWidget.vue'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import {
|
import {
|
||||||
ComponentWidgetImpl,
|
ComponentWidgetImpl,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { IWidget } from '@comfyorg/litegraph'
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import { IWidget } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { RemoteWidgetConfig } from '@/schemas/nodeDefSchema'
|
import type { RemoteWidgetConfig } from '@/schemas/nodeDefSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type InputSpec,
|
type InputSpec,
|
||||||
isStringInputSpec
|
isStringInputSpec
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { LinkMarkerShape, LiteGraph } from '@comfyorg/litegraph'
|
import { LinkMarkerShape, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type { ColorPalettes } from '@/schemas/colorPaletteSchema'
|
import type { ColorPalettes } from '@/schemas/colorPaletteSchema'
|
||||||
import type { Keybinding } from '@/schemas/keyBindingSchema'
|
import type { Keybinding } from '@/schemas/keyBindingSchema'
|
||||||
import { NodeBadgeMode } from '@/types/nodeSource'
|
import { NodeBadgeMode } from '@/types/nodeSource'
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
import { LGraphCanvas, LiteGraph, isComboWidget } from '@comfyorg/litegraph'
|
import {
|
||||||
|
LGraphCanvas,
|
||||||
|
LiteGraph,
|
||||||
|
isComboWidget
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { app } from '../../scripts/app'
|
import { app } from '../../scripts/app'
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
|
import { t } from '@/i18n'
|
||||||
|
import { type NodeId } from '@/lib/litegraph/src/LGraphNode'
|
||||||
import {
|
import {
|
||||||
type ExecutableLGraphNode,
|
type ExecutableLGraphNode,
|
||||||
type ExecutionId,
|
type ExecutionId,
|
||||||
LGraphNode,
|
LGraphNode,
|
||||||
LiteGraph,
|
LiteGraph,
|
||||||
SubgraphNode
|
SubgraphNode
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { type NodeId } from '@comfyorg/litegraph/dist/LGraphNode'
|
|
||||||
|
|
||||||
import { t } from '@/i18n'
|
|
||||||
import {
|
import {
|
||||||
ComfyLink,
|
ComfyLink,
|
||||||
ComfyNode,
|
ComfyNode,
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ import {
|
|||||||
type LGraphNode,
|
type LGraphNode,
|
||||||
type LGraphNodeConstructor,
|
type LGraphNodeConstructor,
|
||||||
LiteGraph
|
LiteGraph
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { useToastStore } from '@/stores/toastStore'
|
import { useToastStore } from '@/stores/toastStore'
|
||||||
|
|
||||||
import { type ComfyApp, app } from '../../scripts/app'
|
import { type ComfyApp, app } from '../../scripts/app'
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { LGraphGroup } from '@comfyorg/litegraph'
|
import type { Positionable } from '@/lib/litegraph/src/interfaces'
|
||||||
import { LGraphCanvas } from '@comfyorg/litegraph'
|
import { LGraphGroup } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import { LGraphCanvas } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { Positionable } from '@comfyorg/litegraph/dist/interfaces'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
|
|
||||||
import { app } from '../../scripts/app'
|
import { app } from '../../scripts/app'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import type { IStringWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
import { nextTick } from 'vue'
|
import { nextTick } from 'vue'
|
||||||
|
|
||||||
import Load3D from '@/components/load3d/Load3D.vue'
|
import Load3D from '@/components/load3d/Load3D.vue'
|
||||||
@@ -7,6 +6,7 @@ import Load3DConfiguration from '@/extensions/core/load3d/Load3DConfiguration'
|
|||||||
import Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
import Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
||||||
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import type { IStringWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { ComponentWidgetImpl, addWidget } from '@/scripts/domWidget'
|
import { ComponentWidgetImpl, addWidget } from '@/scripts/domWidget'
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
|
|
||||||
import Load3d from '@/extensions/core/load3d/Load3d'
|
import Load3d from '@/extensions/core/load3d/Load3d'
|
||||||
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
||||||
|
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import * as THREE from 'three'
|
import * as THREE from 'three'
|
||||||
|
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
|
|
||||||
import { CameraManager } from './CameraManager'
|
import { CameraManager } from './CameraManager'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import * as THREE from 'three'
|
import * as THREE from 'three'
|
||||||
|
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { AnimationManager } from './AnimationManager'
|
import { AnimationManager } from './AnimationManager'
|
||||||
import Load3d from './Load3d'
|
import Load3d from './Load3d'
|
||||||
import { Load3DOptions } from './interfaces'
|
import { Load3DOptions } from './interfaces'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { NodeStorageInterface } from './interfaces'
|
import { NodeStorageInterface } from './interfaces'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import * as THREE from 'three'
|
import * as THREE from 'three'
|
||||||
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
|
||||||
import { ViewHelper } from 'three/examples/jsm/helpers/ViewHelper'
|
import { ViewHelper } from 'three/examples/jsm/helpers/ViewHelper'
|
||||||
@@ -8,6 +7,7 @@ import { MTLLoader } from 'three/examples/jsm/loaders/MTLLoader'
|
|||||||
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader'
|
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader'
|
||||||
import { STLLoader } from 'three/examples/jsm/loaders/STLLoader'
|
import { STLLoader } from 'three/examples/jsm/loaders/STLLoader'
|
||||||
|
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
|
|
||||||
export type Load3DNodeType = 'Load3D' | 'Preview3D'
|
export type Load3DNodeType = 'Load3D' | 'Preview3D'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { LGraphCanvas } from '@comfyorg/litegraph'
|
|
||||||
|
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import { LGraphCanvas } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useDialogService } from '@/services/dialogService'
|
import { useDialogService } from '@/services/dialogService'
|
||||||
import { useToastStore } from '@/stores/toastStore'
|
import { useToastStore } from '@/stores/toastStore'
|
||||||
import { deserialiseAndCreate } from '@/utils/vintageClipboard'
|
import { deserialiseAndCreate } from '@/utils/vintageClipboard'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
|
import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { app } from '../../scripts/app'
|
import { app } from '../../scripts/app'
|
||||||
import { ComfyWidgets } from '../../scripts/widgets'
|
import { ComfyWidgets } from '../../scripts/widgets'
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
import type { IContextMenuValue } from '@comfyorg/litegraph'
|
import type { IContextMenuValue } from '@/lib/litegraph/src/litegraph'
|
||||||
import { LGraphCanvas, LGraphNode, LiteGraph } from '@comfyorg/litegraph'
|
import {
|
||||||
|
LGraphCanvas,
|
||||||
|
LGraphNode,
|
||||||
|
LiteGraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { app } from '../../scripts/app'
|
import { app } from '../../scripts/app'
|
||||||
import { getWidgetConfig, mergeIfValid, setWidgetConfig } from './widgetInputs'
|
import { getWidgetConfig, mergeIfValid, setWidgetConfig } from './widgetInputs'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
|
import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { app } from '../../scripts/app'
|
import { app } from '../../scripts/app'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { app } from '../../scripts/app'
|
import { app } from '../../scripts/app'
|
||||||
import { ComfyWidgets } from '../../scripts/widgets'
|
import { ComfyWidgets } from '../../scripts/widgets'
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import type {
|
|
||||||
IBaseWidget,
|
|
||||||
IStringWidget
|
|
||||||
} from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
import { MediaRecorder as ExtendableMediaRecorder } from 'extendable-media-recorder'
|
import { MediaRecorder as ExtendableMediaRecorder } from 'extendable-media-recorder'
|
||||||
|
|
||||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||||
@@ -10,6 +5,11 @@ import { useNodeDragAndDrop } from '@/composables/node/useNodeDragAndDrop'
|
|||||||
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
|
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
|
||||||
import { useNodePaste } from '@/composables/node/useNodePaste'
|
import { useNodePaste } from '@/composables/node/useNodePaste'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type {
|
||||||
|
IBaseWidget,
|
||||||
|
IStringWidget
|
||||||
|
} from '@/lib/litegraph/src/types/widgets'
|
||||||
import type { ResultItemType } from '@/schemas/apiSchema'
|
import type { ResultItemType } from '@/schemas/apiSchema'
|
||||||
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
|
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
|
||||||
import type { DOMWidget } from '@/scripts/domWidget'
|
import type { DOMWidget } from '@/scripts/domWidget'
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
import { LGraphNode, LiteGraph } from '@comfyorg/litegraph'
|
import {
|
||||||
|
type CallbackParams,
|
||||||
|
useChainCallback
|
||||||
|
} from '@/composables/functional/useChainCallback'
|
||||||
|
import { LGraphNode, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import type {
|
import type {
|
||||||
INodeInputSlot,
|
INodeInputSlot,
|
||||||
INodeOutputSlot,
|
INodeOutputSlot,
|
||||||
ISlotType,
|
ISlotType,
|
||||||
LLink,
|
LLink,
|
||||||
Vector2
|
Vector2
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import type { CanvasPointerEvent } from '@comfyorg/litegraph/dist/types/events'
|
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||||
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
import {
|
|
||||||
type CallbackParams,
|
|
||||||
useChainCallback
|
|
||||||
} from '@/composables/functional/useChainCallback'
|
|
||||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { ComfyWidgets, addValueControlWidgets } from '@/scripts/widgets'
|
import { ComfyWidgets, addValueControlWidgets } from '@/scripts/widgets'
|
||||||
|
|||||||
@@ -3,10 +3,7 @@ export default {
|
|||||||
|
|
||||||
"*.js": stagedFiles => prettierAndEslint(stagedFiles),
|
"*.js": stagedFiles => prettierAndEslint(stagedFiles),
|
||||||
|
|
||||||
"*.{ts,mts}": stagedFiles => [
|
"*.{ts,mts}": stagedFiles => [...prettierAndEslint(stagedFiles), "tsc"],
|
||||||
...prettierAndEslint(stagedFiles),
|
|
||||||
"tsc",
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function prettierAndEslint(fileNames) {
|
function prettierAndEslint(fileNames) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import '@comfyorg/litegraph/style.css'
|
import '@/lib/litegraph/src/style.css'
|
||||||
import { definePreset } from '@primevue/themes'
|
import { definePreset } from '@primevue/themes'
|
||||||
import Aura from '@primevue/themes/aura'
|
import Aura from '@primevue/themes/aura'
|
||||||
import * as Sentry from '@sentry/vue'
|
import * as Sentry from '@sentry/vue'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { LinkMarkerShape } from '@comfyorg/litegraph'
|
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { fromZodError } from 'zod-validation-error'
|
import { fromZodError } from 'zod-validation-error'
|
||||||
|
|
||||||
|
import { LinkMarkerShape } from '@/lib/litegraph/src/litegraph'
|
||||||
import { colorPalettesSchema } from '@/schemas/colorPaletteSchema'
|
import { colorPalettesSchema } from '@/schemas/colorPaletteSchema'
|
||||||
import { zComfyWorkflow, zNodeId } from '@/schemas/comfyWorkflowSchema'
|
import { zComfyWorkflow, zNodeId } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { zKeybinding } from '@/schemas/keyBindingSchema'
|
import { zKeybinding } from '@/schemas/keyBindingSchema'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
|
|
||||||
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
const nodeSlotSchema = z.object({
|
const nodeSlotSchema = z.object({
|
||||||
CLIP: z.string(),
|
CLIP: z.string(),
|
||||||
CLIP_VISION: z.string(),
|
CLIP_VISION: z.string(),
|
||||||
|
|||||||
@@ -1,12 +1,3 @@
|
|||||||
import {
|
|
||||||
LGraph,
|
|
||||||
LGraphCanvas,
|
|
||||||
LGraphEventMode,
|
|
||||||
LGraphNode,
|
|
||||||
LiteGraph
|
|
||||||
} from '@comfyorg/litegraph'
|
|
||||||
import type { Vector2 } from '@comfyorg/litegraph'
|
|
||||||
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import type { ToastMessageOptions } from 'primevue/toast'
|
import type { ToastMessageOptions } from 'primevue/toast'
|
||||||
import { reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
@@ -14,6 +5,15 @@ import { reactive } from 'vue'
|
|||||||
import { useCanvasPositionConversion } from '@/composables/element/useCanvasPositionConversion'
|
import { useCanvasPositionConversion } from '@/composables/element/useCanvasPositionConversion'
|
||||||
import { useWorkflowValidation } from '@/composables/useWorkflowValidation'
|
import { useWorkflowValidation } from '@/composables/useWorkflowValidation'
|
||||||
import { st, t } from '@/i18n'
|
import { st, t } from '@/i18n'
|
||||||
|
import {
|
||||||
|
LGraph,
|
||||||
|
LGraphCanvas,
|
||||||
|
LGraphEventMode,
|
||||||
|
LGraphNode,
|
||||||
|
LiteGraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { Vector2 } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import type {
|
import type {
|
||||||
ExecutionErrorWsMessage,
|
ExecutionErrorWsMessage,
|
||||||
NodeError,
|
NodeError,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import * as jsondiffpatch from 'jsondiffpatch'
|
import * as jsondiffpatch from 'jsondiffpatch'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
|
|
||||||
|
import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { ExecutedWsMessage } from '@/schemas/apiSchema'
|
import type { ExecutedWsMessage } from '@/schemas/apiSchema'
|
||||||
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { useExecutionStore } from '@/stores/executionStore'
|
import { useExecutionStore } from '@/stores/executionStore'
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
import { LGraphNode, LegacyWidget, LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import type {
|
|
||||||
IBaseWidget,
|
|
||||||
IWidgetOptions
|
|
||||||
} from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { type Component, toRaw } from 'vue'
|
import { type Component, toRaw } from 'vue'
|
||||||
|
|
||||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||||
|
import {
|
||||||
|
LGraphNode,
|
||||||
|
LegacyWidget,
|
||||||
|
LiteGraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type {
|
||||||
|
IBaseWidget,
|
||||||
|
IWidgetOptions
|
||||||
|
} from '@/lib/litegraph/src/types/widgets'
|
||||||
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import { useDomWidgetStore } from '@/stores/domWidgetStore'
|
import { useDomWidgetStore } from '@/stores/domWidgetStore'
|
||||||
import { generateUUID } from '@/utils/formatUtil'
|
import { generateUUID } from '@/utils/formatUtil'
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
|
|
||||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||||
import { useBooleanWidget } from '@/composables/widgets/useBooleanWidget'
|
import { useBooleanWidget } from '@/composables/widgets/useBooleanWidget'
|
||||||
import { useFloatWidget } from '@/composables/widgets/useFloatWidget'
|
import { useFloatWidget } from '@/composables/widgets/useFloatWidget'
|
||||||
import { useStringWidget } from '@/composables/widgets/useStringWidget'
|
import { useStringWidget } from '@/composables/widgets/useStringWidget'
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
const StringWidget = useStringWidget()
|
const StringWidget = useStringWidget()
|
||||||
const FloatWidget = useFloatWidget()
|
const FloatWidget = useFloatWidget()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import _ from 'lodash'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type INodeOutputSlot,
|
type INodeOutputSlot,
|
||||||
type LGraph,
|
type LGraph,
|
||||||
@@ -5,10 +7,8 @@ import {
|
|||||||
LLink,
|
LLink,
|
||||||
LiteGraph,
|
LiteGraph,
|
||||||
type Point
|
type Point
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
import _ from 'lodash'
|
|
||||||
|
|
||||||
import { parseFilePath } from '@/utils/formatUtil'
|
import { parseFilePath } from '@/utils/formatUtil'
|
||||||
|
|
||||||
import { app } from './app'
|
import { app } from './app'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import { api } from './api'
|
import { api } from './api'
|
||||||
import { getFromAvifFile } from './metadata/avif'
|
import { getFromAvifFile } from './metadata/avif'
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
import { type LGraphNode, isComboWidget } from '@comfyorg/litegraph'
|
|
||||||
import type {
|
|
||||||
IBaseWidget,
|
|
||||||
IComboWidget,
|
|
||||||
IStringWidget
|
|
||||||
} from '@comfyorg/litegraph/dist/types/widgets'
|
|
||||||
|
|
||||||
import { useBooleanWidget } from '@/composables/widgets/useBooleanWidget'
|
import { useBooleanWidget } from '@/composables/widgets/useBooleanWidget'
|
||||||
import { useComboWidget } from '@/composables/widgets/useComboWidget'
|
import { useComboWidget } from '@/composables/widgets/useComboWidget'
|
||||||
import { useFloatWidget } from '@/composables/widgets/useFloatWidget'
|
import { useFloatWidget } from '@/composables/widgets/useFloatWidget'
|
||||||
@@ -13,6 +6,12 @@ import { useIntWidget } from '@/composables/widgets/useIntWidget'
|
|||||||
import { useMarkdownWidget } from '@/composables/widgets/useMarkdownWidget'
|
import { useMarkdownWidget } from '@/composables/widgets/useMarkdownWidget'
|
||||||
import { useStringWidget } from '@/composables/widgets/useStringWidget'
|
import { useStringWidget } from '@/composables/widgets/useStringWidget'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import { type LGraphNode, isComboWidget } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type {
|
||||||
|
IBaseWidget,
|
||||||
|
IComboWidget,
|
||||||
|
IStringWidget
|
||||||
|
} from '@/lib/litegraph/src/types/widgets'
|
||||||
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
|
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
|
||||||
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { LGraphCanvas } from '@comfyorg/litegraph'
|
|
||||||
import { LiteGraph } from '@comfyorg/litegraph'
|
|
||||||
import { toRaw } from 'vue'
|
import { toRaw } from 'vue'
|
||||||
import { fromZodError } from 'zod-validation-error'
|
import { fromZodError } from 'zod-validation-error'
|
||||||
|
|
||||||
import { useErrorHandling } from '@/composables/useErrorHandling'
|
import { useErrorHandling } from '@/composables/useErrorHandling'
|
||||||
|
import { LGraphCanvas } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import {
|
import {
|
||||||
Colors,
|
Colors,
|
||||||
type Palette,
|
type Palette,
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
import _ from 'lodash'
|
||||||
|
|
||||||
|
import { useNodeAnimatedImage } from '@/composables/node/useNodeAnimatedImage'
|
||||||
|
import { useNodeCanvasImagePreview } from '@/composables/node/useNodeCanvasImagePreview'
|
||||||
|
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
|
||||||
|
import { st, t } from '@/i18n'
|
||||||
import {
|
import {
|
||||||
type IContextMenuValue,
|
type IContextMenuValue,
|
||||||
LGraphBadge,
|
LGraphBadge,
|
||||||
@@ -10,19 +16,13 @@ import {
|
|||||||
SubgraphNode,
|
SubgraphNode,
|
||||||
type Vector2,
|
type Vector2,
|
||||||
createBounds
|
createBounds
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import type {
|
import type {
|
||||||
ExportedSubgraphInstance,
|
ExportedSubgraphInstance,
|
||||||
ISerialisableNodeInput,
|
ISerialisableNodeInput,
|
||||||
ISerialisableNodeOutput,
|
ISerialisableNodeOutput,
|
||||||
ISerialisedNode
|
ISerialisedNode
|
||||||
} from '@comfyorg/litegraph/dist/types/serialisation'
|
} from '@/lib/litegraph/src/types/serialisation'
|
||||||
import _ from 'lodash'
|
|
||||||
|
|
||||||
import { useNodeAnimatedImage } from '@/composables/node/useNodeAnimatedImage'
|
|
||||||
import { useNodeCanvasImagePreview } from '@/composables/node/useNodeCanvasImagePreview'
|
|
||||||
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
|
|
||||||
import { st, t } from '@/i18n'
|
|
||||||
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
|
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { toRaw } from 'vue'
|
import { toRaw } from 'vue'
|
||||||
|
|
||||||
import Load3d from '@/extensions/core/load3d/Load3d'
|
import Load3d from '@/extensions/core/load3d/Load3d'
|
||||||
import Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
import Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
|
|
||||||
type Load3dReadyCallback = (load3d: Load3d | Load3dAnimation) => void
|
type Load3dReadyCallback = (load3d: Load3d | Load3dAnimation) => void
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ import {
|
|||||||
type ExportedSubgraph,
|
type ExportedSubgraph,
|
||||||
type ExportedSubgraphInstance,
|
type ExportedSubgraphInstance,
|
||||||
type Subgraph
|
type Subgraph
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import type { ComfyNodeDef as ComfyNodeDefV1 } from '@/schemas/nodeDefSchema'
|
import type { ComfyNodeDef as ComfyNodeDefV1 } from '@/schemas/nodeDefSchema'
|
||||||
import { app as comfyApp } from '@/scripts/app'
|
import { app as comfyApp } from '@/scripts/app'
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { LGraph, LGraphCanvas } from '@comfyorg/litegraph'
|
|
||||||
import type { SerialisableGraph, Vector2 } from '@comfyorg/litegraph'
|
|
||||||
import { toRaw } from 'vue'
|
import { toRaw } from 'vue'
|
||||||
|
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
import { LGraph, LGraphCanvas } from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { SerialisableGraph, Vector2 } from '@/lib/litegraph/src/litegraph'
|
||||||
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { blankGraph, defaultGraph } from '@/scripts/defaultGraph'
|
import { blankGraph, defaultGraph } from '@/scripts/defaultGraph'
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { LGraph, Subgraph } from '@comfyorg/litegraph'
|
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
import type ChatHistoryWidget from '@/components/graph/widgets/ChatHistoryWidget.vue'
|
import type ChatHistoryWidget from '@/components/graph/widgets/ChatHistoryWidget.vue'
|
||||||
import { useNodeChatHistory } from '@/composables/node/useNodeChatHistory'
|
import { useNodeChatHistory } from '@/composables/node/useNodeChatHistory'
|
||||||
import { useNodeProgressText } from '@/composables/node/useNodeProgressText'
|
import { useNodeProgressText } from '@/composables/node/useNodeProgressText'
|
||||||
|
import type { LGraph, Subgraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import type {
|
import type {
|
||||||
DisplayComponentWsMessage,
|
DisplayComponentWsMessage,
|
||||||
ExecutedWsMessage,
|
ExecutedWsMessage,
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
import type { LGraphCanvas, LGraphGroup, LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import type { Positionable } from '@comfyorg/litegraph/dist/interfaces'
|
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { type Raw, computed, markRaw, ref, shallowRef } from 'vue'
|
import { type Raw, computed, markRaw, ref, shallowRef } from 'vue'
|
||||||
|
|
||||||
|
import type { Positionable } from '@/lib/litegraph/src/interfaces'
|
||||||
|
import type {
|
||||||
|
LGraphCanvas,
|
||||||
|
LGraphGroup,
|
||||||
|
LGraphNode
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import { isLGraphGroup, isLGraphNode, isReroute } from '@/utils/litegraphUtil'
|
import { isLGraphGroup, isLGraphNode, isReroute } from '@/utils/litegraphUtil'
|
||||||
|
|
||||||
export const useTitleEditorStore = defineStore('titleEditor', () => {
|
export const useTitleEditorStore = defineStore('titleEditor', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
|
|
||||||
|
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import {
|
import {
|
||||||
ExecutedWsMessage,
|
ExecutedWsMessage,
|
||||||
ResultItem,
|
ResultItem,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { transformNodeDefV1ToV2 } from '@/schemas/nodeDef/migration'
|
import { transformNodeDefV1ToV2 } from '@/schemas/nodeDef/migration'
|
||||||
import type {
|
import type {
|
||||||
ComfyNodeDef as ComfyNodeDefV2,
|
ComfyNodeDef as ComfyNodeDefV2,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import QuickLRU from '@alloc/quick-lru'
|
import QuickLRU from '@alloc/quick-lru'
|
||||||
import type { Subgraph } from '@comfyorg/litegraph'
|
|
||||||
import type { DragAndScaleState } from '@comfyorg/litegraph/dist/DragAndScale'
|
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { computed, ref, shallowRef, watch } from 'vue'
|
import { computed, ref, shallowRef, watch } from 'vue'
|
||||||
|
|
||||||
|
import type { DragAndScaleState } from '@/lib/litegraph/src/DragAndScale'
|
||||||
|
import type { Subgraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { findSubgraphPathById } from '@/utils/graphTraversalUtil'
|
import { findSubgraphPathById } from '@/utils/graphTraversalUtil'
|
||||||
import { isNonNullish } from '@/utils/typeGuardUtil'
|
import { isNonNullish } from '@/utils/typeGuardUtil'
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { LGraph, Subgraph } from '@comfyorg/litegraph'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { type Raw, computed, markRaw, ref, shallowRef, watch } from 'vue'
|
import { type Raw, computed, markRaw, ref, shallowRef, watch } from 'vue'
|
||||||
|
|
||||||
|
import type { LGraph, Subgraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import { Positionable } from '@/lib/litegraph/src/interfaces'
|
||||||
import { Positionable } from '@comfyorg/litegraph/dist/interfaces'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import type { ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import type { Keybinding } from '@/schemas/keyBindingSchema'
|
import type { Keybinding } from '@/schemas/keyBindingSchema'
|
||||||
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
|
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { LGraph } from '@comfyorg/litegraph'
|
import type { LGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
DeviceStats,
|
DeviceStats,
|
||||||
EmbeddingsResponse,
|
EmbeddingsResponse,
|
||||||
|
|||||||
20
src/types/litegraph-augmentation.d.ts
vendored
20
src/types/litegraph-augmentation.d.ts
vendored
@@ -1,6 +1,5 @@
|
|||||||
import '@comfyorg/litegraph'
|
import '@/lib/litegraph/src/litegraph'
|
||||||
import type { LLink, Size } from '@comfyorg/litegraph'
|
import type { LLink, Size } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type { ComfyNodeDef as ComfyNodeDefV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { ComfyNodeDef as ComfyNodeDefV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import type { ComfyNodeDef as ComfyNodeDefV1 } from '@/schemas/nodeDefSchema'
|
import type { ComfyNodeDef as ComfyNodeDefV1 } from '@/schemas/nodeDefSchema'
|
||||||
import type { DOMWidget, DOMWidgetOptions } from '@/scripts/domWidget'
|
import type { DOMWidget, DOMWidgetOptions } from '@/scripts/domWidget'
|
||||||
@@ -8,7 +7,7 @@ import type { DOMWidget, DOMWidgetOptions } from '@/scripts/domWidget'
|
|||||||
import type { NodeId } from '../schemas/comfyWorkflowSchema'
|
import type { NodeId } from '../schemas/comfyWorkflowSchema'
|
||||||
|
|
||||||
/** ComfyUI extensions of litegraph */
|
/** ComfyUI extensions of litegraph */
|
||||||
declare module '@comfyorg/litegraph/dist/types/widgets' {
|
declare module '@/lib/litegraph/src/types/widgets' {
|
||||||
interface IWidgetOptions {
|
interface IWidgetOptions {
|
||||||
/** Currently used by DOM widgets only. Declaring here reduces complexity. */
|
/** Currently used by DOM widgets only. Declaring here reduces complexity. */
|
||||||
onHide?: (widget: DOMWidget) => void
|
onHide?: (widget: DOMWidget) => void
|
||||||
@@ -59,7 +58,7 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
|
|||||||
/**
|
/**
|
||||||
* ComfyUI extensions of litegraph interfaces
|
* ComfyUI extensions of litegraph interfaces
|
||||||
*/
|
*/
|
||||||
declare module '@comfyorg/litegraph/dist/interfaces' {
|
declare module '@/lib/litegraph/src/interfaces' {
|
||||||
interface IWidgetLocator {
|
interface IWidgetLocator {
|
||||||
[key: symbol]: unknown
|
[key: symbol]: unknown
|
||||||
}
|
}
|
||||||
@@ -68,9 +67,12 @@ declare module '@comfyorg/litegraph/dist/interfaces' {
|
|||||||
/**
|
/**
|
||||||
* ComfyUI extensions of litegraph
|
* ComfyUI extensions of litegraph
|
||||||
*/
|
*/
|
||||||
declare module '@comfyorg/litegraph' {
|
declare module '@/lib/litegraph/src/litegraph' {
|
||||||
import type { ExecutableLGraphNode, ExecutionId } from '@comfyorg/litegraph'
|
import type {
|
||||||
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
|
ExecutableLGraphNode,
|
||||||
|
ExecutionId
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||||
|
|
||||||
interface LGraphNodeConstructor<T extends LGraphNode = LGraphNode> {
|
interface LGraphNodeConstructor<T extends LGraphNode = LGraphNode> {
|
||||||
type?: string
|
type?: string
|
||||||
@@ -197,7 +199,7 @@ declare module '@comfyorg/litegraph' {
|
|||||||
/**
|
/**
|
||||||
* Extended types for litegraph, to be merged upstream once it has stabilized.
|
* Extended types for litegraph, to be merged upstream once it has stabilized.
|
||||||
*/
|
*/
|
||||||
declare module '@comfyorg/litegraph' {
|
declare module '@/lib/litegraph/src/litegraph' {
|
||||||
/**
|
/**
|
||||||
* widgets_values is set to LGraphNode by `LGraphNode.configure`, but it is not
|
* widgets_values is set to LGraphNode by `LGraphNode.configure`, but it is not
|
||||||
* used by litegraph internally. We should remove the dependency on it later.
|
* used by litegraph internally. We should remove the dependency on it later.
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { ISerialisedGraph } from '@comfyorg/litegraph'
|
import type { ISerialisedGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type { SystemStats } from '@/schemas/apiSchema'
|
import type { SystemStats } from '@/schemas/apiSchema'
|
||||||
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
import type { NodeId } from '@/schemas/comfyWorkflowSchema'
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import type { GroupNodeHandler } from '@/extensions/core/groupNode'
|
||||||
import {
|
import {
|
||||||
type ExecutableLGraphNode,
|
type ExecutableLGraphNode,
|
||||||
ExecutableNodeDTO,
|
ExecutableNodeDTO,
|
||||||
@@ -5,9 +6,7 @@ import {
|
|||||||
type LGraphNode,
|
type LGraphNode,
|
||||||
type NodeId,
|
type NodeId,
|
||||||
type SubgraphNode
|
type SubgraphNode
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type { GroupNodeHandler } from '@/extensions/core/groupNode'
|
|
||||||
|
|
||||||
export class ExecutableGroupNodeChildDTO extends ExecutableNodeDTO {
|
export class ExecutableGroupNodeChildDTO extends ExecutableNodeDTO {
|
||||||
groupNodeHandler?: GroupNodeHandler
|
groupNodeHandler?: GroupNodeHandler
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
type ISlotType,
|
type ISlotType,
|
||||||
LGraphEventMode,
|
LGraphEventMode,
|
||||||
type LGraphNode
|
type LGraphNode
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
export const GROUP = Symbol()
|
export const GROUP = Symbol()
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,12 @@ import type {
|
|||||||
ExecutableLGraphNode,
|
ExecutableLGraphNode,
|
||||||
ExecutionId,
|
ExecutionId,
|
||||||
LGraph
|
LGraph
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import {
|
import {
|
||||||
ExecutableNodeDTO,
|
ExecutableNodeDTO,
|
||||||
LGraphEventMode,
|
LGraphEventMode,
|
||||||
SubgraphNode
|
SubgraphNode
|
||||||
} from '@comfyorg/litegraph'
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
ComfyApiWorkflow,
|
ComfyApiWorkflow,
|
||||||
ComfyWorkflowJSON
|
ComfyWorkflowJSON
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import type { LGraph, LGraphNode, Subgraph } from '@comfyorg/litegraph'
|
import type {
|
||||||
|
LGraph,
|
||||||
|
LGraphNode,
|
||||||
|
Subgraph
|
||||||
|
} from '@/lib/litegraph/src/litegraph'
|
||||||
import type { NodeExecutionId, NodeLocatorId } from '@/types/nodeIdentification'
|
import type { NodeExecutionId, NodeLocatorId } from '@/types/nodeIdentification'
|
||||||
import { parseNodeLocatorId } from '@/types/nodeIdentification'
|
import { parseNodeLocatorId } from '@/types/nodeIdentification'
|
||||||
|
|
||||||
|
|||||||
@@ -24,13 +24,13 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
import type { LGraph, LGraphNode, LLink } from '@comfyorg/litegraph'
|
import type { NodeId } from '@/lib/litegraph/src/LGraphNode'
|
||||||
import type { NodeId } from '@comfyorg/litegraph/dist/LGraphNode'
|
import type { SerialisedLLinkArray } from '@/lib/litegraph/src/LLink'
|
||||||
import type { SerialisedLLinkArray } from '@comfyorg/litegraph/dist/LLink'
|
import type { LGraph, LGraphNode, LLink } from '@/lib/litegraph/src/litegraph'
|
||||||
import type {
|
import type {
|
||||||
ISerialisedGraph,
|
ISerialisedGraph,
|
||||||
ISerialisedNode
|
ISerialisedNode
|
||||||
} from '@comfyorg/litegraph/dist/types/serialisation'
|
} from '@/lib/litegraph/src/types/serialisation'
|
||||||
|
|
||||||
export interface BadLinksData<T = ISerialisedGraph | LGraph> {
|
export interface BadLinksData<T = ISerialisedGraph | LGraph> {
|
||||||
hasBadLinks: boolean
|
hasBadLinks: boolean
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user