LCOV - code coverage report
Current view: top level - src/renderer/extensions/layerEditor/compositor - compositorWidgets.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 12.5 % 8 1
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import {
       2              :   getNodeWidgetValue,
       3              :   setNodeWidgetValue
       4              : } from '@/core/graph/widgets/nodeWidgetValues'
       5              : import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
       6              : import {
       7              :   emptyCompositorWidgetValue,
       8              :   isCompositorWidgetValue
       9              : } from '@/renderer/extensions/layerEditor/compositor/widgetValue'
      10              : import type { CompositorWidgetValue } from '@/renderer/extensions/layerEditor/compositor/widgetValue'
      11              : 
      12         2355 : const COMPOSITOR_WIDGET = 'compositor'
      13              : 
      14            0 : export function setCompositorWidgetValue(
      15              :   node: LGraphNode,
      16              :   value: CompositorWidgetValue
      17              : ): void {
      18            0 :   setNodeWidgetValue(node, COMPOSITOR_WIDGET, value)
      19              : }
      20              : 
      21            0 : export function getCompositorWidgetValue(
      22              :   node: LGraphNode
      23              : ): CompositorWidgetValue | null {
      24            0 :   const value = getNodeWidgetValue(node, COMPOSITOR_WIDGET)
      25            0 :   return isCompositorWidgetValue(value) ? value : null
      26              : }
      27              : 
      28            0 : export function resetCompositorStateWidgets(node: LGraphNode): void {
      29            0 :   setCompositorWidgetValue(node, emptyCompositorWidgetValue())
      30              : }
        

Generated by: LCOV version 2.0-1