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

            Line data    Source code
       1              : import { inject } from 'vue'
       2              : import type { InjectionKey } from 'vue'
       3              : 
       4              : export type AssetKind =
       5              :   | 'image'
       6              :   | 'video'
       7              :   | 'audio'
       8              :   | 'model'
       9              :   | 'mesh'
      10              :   | 'unknown'
      11              : 
      12         2355 : export const HideLayoutFieldKey: InjectionKey<boolean> = Symbol()
      13        21236 : export function useHideLayoutField(): boolean {
      14        21236 :   return inject(HideLayoutFieldKey, false)
      15              : }
      16              : 
      17         2355 : export const WidgetHeightKey: InjectionKey<string> = Symbol()
      18        35551 : export function useWidgetHeight(): string {
      19        35551 :   return inject(WidgetHeightKey, 'h-(--node-widget-height)')
      20              : }
        

Generated by: LCOV version 2.0-1