How pollolopez/micasa works
Loft Calculator is a browser app for configuring a loft’s dimensions, openings, materials, and colors, then visualizing the structure and estimating materials and cost. The main workflow runs from the editor in App through validation and structure generation; that shared structure feeds the 3D viewer and budget calculation. Users can also save and restore project files. The graph includes the calculation and UI layers visible in excerpts; links based only on the source index are limited to its stated references, and unsampled capabilities are not expanded into unverified flows.
Main entry points: App.jsx App · validacion.js Validation · PanelAberturas.jsx Opening editor · LoftCanvas.jsx 3D viewer
Components 17
Configuration UI
- App
loft-calculator/src/App.jsx - Numeric input
loft-calculator/src/componentes/CampoNumero.jsx - Opening editor
loft-calculator/src/componentes/PanelAberturas.jsx - Side selector
loft-calculator/src/componentes/SelectorLado.jsx - Budget table
loft-calculator/src/componentes/TablaPresupuesto.jsx - 3D viewer
loft-calculator/src/LoftCanvas.jsx
Design and estimating
- Viewer layers
loft-calculator/src/capas.js - Initial parameters
loft-calculator/src/motor/parametrosIniciales.js - System constants
loft-calculator/src/motor/constantes.js - Geometry
loft-calculator/src/motor/geometria.js - Validation
loft-calculator/src/motor/validacion.js - Structure generator
loft-calculator/src/motor/estructura.js - Budget calculator
loft-calculator/src/motor/presupuesto.js - Cut optimizer
loft-calculator/src/motor/optimizadorCortes.js
Project persistence
- Browser state
loft-calculator/src/hooks/useEstadoGuardado.js - Project files
loft-calculator/src/proyecto/archivoProyecto.js
Other components
- User
Connections 26
- User → App: configures
- App → Browser state: persists state
loft-calculator/src/App.jsx - App → Initial parameters: loads defaults
loft-calculator/src/App.jsx - App → Validation: validates inputs
loft-calculator/src/App.jsx - App → Structure generator: generates structure
loft-calculator/src/App.jsx - App → Budget calculator: calculates estimate
loft-calculator/src/App.jsx - App → 3D viewer: renders viewer
loft-calculator/src/App.jsx - App → Numeric input: renders fields
loft-calculator/src/App.jsx - App → Side selector: renders selectors
loft-calculator/src/App.jsx - App → Opening editor: renders editor
loft-calculator/src/App.jsx - App → Budget table: renders table
loft-calculator/src/App.jsx - App → Project files: handles project files
loft-calculator/src/App.jsx - Opening editor → Validation: checks openings
loft-calculator/src/componentes/PanelAberturas.jsx - Opening editor → Numeric input: renders fields
loft-calculator/src/componentes/PanelAberturas.jsx - Opening editor → Side selector: renders selector
loft-calculator/src/componentes/PanelAberturas.jsx - Side selector → Geometry: labels sides
loft-calculator/src/componentes/SelectorLado.jsx - Side selector → System constants: uses side list
loft-calculator/src/componentes/SelectorLado.jsx - Structure generator → Geometry: computes positions
loft-calculator/src/motor/estructura.js - Structure generator → Validation: locates openings
loft-calculator/src/motor/estructura.js - Validation → Geometry: checks dimensions
loft-calculator/src/motor/validacion.js - Budget calculator → Cut optimizer: optimizes cuts
loft-calculator/src/motor/presupuesto.js - 3D viewer → Geometry: positions model
loft-calculator/src/LoftCanvas.jsx - 3D viewer → Structure generator: positions openings
loft-calculator/src/LoftCanvas.jsx - 3D viewer → Viewer layers: uses layer settings
loft-calculator/src/LoftCanvas.jsx - Project files → Validation: validates imports
loft-calculator/src/proyecto/archivoProyecto.js - Project files → Viewer layers: validates colors
loft-calculator/src/proyecto/archivoProyecto.js