LCOV - code coverage report
Current view: top level - src/renderer/core/layout - constants.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 3 3
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : /**
       2              :  * Layout System Constants
       3              :  *
       4              :  * Centralized configuration values for the layout system.
       5              :  * These values control spatial indexing, performance, and behavior.
       6              :  */
       7              : /**
       8              :  * QuadTree configuration for spatial indexing
       9              :  */
      10         2356 : export const QUADTREE_CONFIG = {
      11              :   /** Default bounds for the QuadTree - covers a large canvas area */
      12              :   DEFAULT_BOUNDS: {
      13              :     x: -10000,
      14              :     y: -10000,
      15              :     width: 20000,
      16              :     height: 20000
      17              :   },
      18              :   /** Maximum tree depth to prevent excessive subdivision */
      19              :   MAX_DEPTH: 6,
      20              :   /** Maximum items per node before subdivision */
      21              :   MAX_ITEMS_PER_NODE: 4
      22              : } as const
      23              : 
      24              : /**
      25              :  * Performance and optimization settings
      26              :  */
      27         2356 : export const PERFORMANCE_CONFIG = {
      28              :   /** RAF-based change detection interval (roughly 60fps) */
      29              :   CHANGE_DETECTION_INTERVAL: 16,
      30              :   /** Spatial query cache TTL in milliseconds */
      31              :   SPATIAL_CACHE_TTL: 1000,
      32              :   /** Maximum cache size for spatial queries */
      33              :   SPATIAL_CACHE_MAX_SIZE: 100,
      34              :   /** Batch update delay in milliseconds */
      35              :   BATCH_UPDATE_DELAY: 4
      36              : } as const
      37              : 
      38              : /**
      39              :  * Actor identifiers
      40              :  */
      41         2356 : export const ACTOR_CONFIG = {
      42              :   /** Prefix for auto-generated actor IDs */
      43              :   USER_PREFIX: 'user-',
      44              :   /** Length of random suffix for actor IDs */
      45              :   ID_LENGTH: 9
      46              : } as const
        

Generated by: LCOV version 2.0-1