LCOV - code coverage report
Current view: top level - src/extensions/core/load3d - cameraInfo.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 40.0 % 5 2
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import { nextTick } from 'vue'
       2              : 
       3              : import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
       4              : import type { ComfyExtension } from '@/types/comfy'
       5              : 
       6           24 : export const cameraInfoExtension: ComfyExtension = {
       7              :   name: 'Comfy.CreateCameraInfo',
       8              : 
       9              :   async nodeCreated(node: LGraphNode) {
      10           26 :     if (node.constructor.comfyClass !== 'CreateCameraInfo') return
      11              : 
      12            0 :     const [oldWidth, oldHeight] = node.size
      13            0 :     node.setSize([Math.max(oldWidth, 360), Math.max(oldHeight, 480)])
      14              : 
      15            0 :     await nextTick()
      16              :   }
      17              : }
        

Generated by: LCOV version 2.0-1