Private agentsReference to agents map
Private animationAnimation engine for smooth transitions
Private animationAnimation frame ID for cleanup
Private cameraCamera state
Private configVisualization configuration
Private containerCanvas container element
Private definitionReal-time agent definition visualizer
Private environmentReference to environment
Private Readonly framePerformance monitoring
Private heatHeat map system for spatial analysis
Private networkReference to network manager
Private p5p5Instance.js instance
Private particleParticle effects system for visual feedback
Private previousPrevious mouse coordinates for dragging
Private previousPrivate trailAgent trail system for movement history
Private _renderPrivate calculateCalculate visual properties for an agent
MVP Visual Design: Uses primary colors and geometric shapes
Create particle effect at position
Private drawPrivate drawPrivate drawGet combined performance statistics
Private getGet agent shape based on type (MVP geometric shapes)
MVP Design Mapping:
Post-MVP: Will be replaced with custom character artwork
Get animation engine instance
Get current camera state
Private getGet definition visualizer instance
Private getGet heat map system instance
Get particle system instance
Get trail system instance
Private handlePrivate handlePrivate handlePrivate handlePrivate renderPrivate renderPrivate renderPrivate renderRender environment background (MVP zone visualization)
MVP Design:
Private renderPrivate renderUISet camera state
Set environment to visualize
Set network manager to visualize connections
Private setupEnable/disable heat map layer
Update visualization configuration
Private update
Visualizer - Main visualization system for AgentJS
Features:
Educational Context: Provides visual feedback for agent-based simulations, making complex behaviors observable and understandable.