LCOV - code coverage report
Current view: top level - src/composables - useGlobalLitegraph.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 10 10
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import {
       2              :   ContextMenu,
       3              :   DragAndScale,
       4              :   LGraph,
       5              :   LGraphBadge,
       6              :   LGraphCanvas,
       7              :   LGraphGroup,
       8              :   LGraphNode,
       9              :   LLink,
      10              :   LiteGraph
      11              : } from '@/lib/litegraph/src/litegraph'
      12              : 
      13              : /**
      14              :  * Assign all properties of LiteGraph to window to make it backward compatible.
      15              :  */
      16         2355 : export const useGlobalLitegraph = () => {
      17         2355 :   window.LiteGraph = LiteGraph
      18         2355 :   window.LGraph = LGraph
      19         2355 :   window.LLink = LLink
      20         2355 :   window.LGraphNode = LGraphNode
      21         2355 :   window.LGraphGroup = LGraphGroup
      22         2355 :   window.DragAndScale = DragAndScale
      23         2355 :   window.LGraphCanvas = LGraphCanvas
      24         2355 :   window.ContextMenu = ContextMenu
      25         2355 :   window.LGraphBadge = LGraphBadge
      26              : }
        

Generated by: LCOV version 2.0-1