How igoethal/eendraadschema works
Eendraadschema Community is a browser-based editor for Belgian AREI-compliant one-line electrical diagrams. Users create and edit a hierarchical diagram from electrical-symbol items, can edit a related situation plan, and can save, reopen, import, or export their work; printing and SVG output are also documented in the interface and source. The graph preserves these major product areas. Several connections are documented by the source index or README rather than shown in excerpts, so those edges are dashed and unverified.
Main entry points: Hierarchical_List.ts Diagram editor · main.ts Application startup · print.ts Print workflow · importExport.ts Import and export
Components 24
Diagram editor
- Application startup
src/main.ts - Top menu
src/TopMenu.ts - Diagram editor
src/Hierarchical_List.ts
Diagram model
- Electrical items
src/List_Item/Electro_Item.ts - Switch groups
src/List_Item/Schakelaars/Schakelaars.ts - Circuit item
src/List_Item/Kring.ts - Distribution board
src/List_Item/Bord.ts - Switch symbols
src/List_Item/Schakelaars/Schakelaar.ts - SVG symbols
src/SVGSymbols.ts - SVG element
src/SVGelement.ts
Situation plan
- Plan editor
src/sitplan/SituationPlanView.ts - Plan model
src/sitplan/SituationPlan.ts - Plan elements
src/sitplan/SituationPlanElement.ts - Plan properties
src/sitplan/SituationPlanView_ElementPropertiesPopup.ts
Files and persistence
- Automatic saving
src/importExport/AutoSaver.ts - Browser storage
src/storage/IndexedDBStorage.ts - Storage selection
src/storage/MultiLevelStorage.ts - Import and export
src/importExport/importExport.ts
Print and export
- Print workflow
src/print/print.ts - Print layout
src/print/Print_Table.ts - PDF output
src/print/printToJsPDF.ts
Other components
- Diagram user
- Local files
- Browser print or download
Connections 26
- Diagram user → Application startup: opens editor
- Application startup → Diagram editor: creates diagram
src/main.ts - Application startup → Top menu: initializes menu
src/main.ts - Diagram editor → Electrical items: creates item types
src/Hierarchical_List.ts - Diagram editor → SVG element: builds SVG
src/Hierarchical_List.ts - Electrical items → SVG symbols: uses symbols
src/List_Item/Electro_Item.ts - Electrical items → SVG element: renders as SVG
src/List_Item/Electro_Item.ts - Switch groups → Switch symbols: builds symbol chain
src/List_Item/Schakelaars/Schakelaars.ts - Diagram editor → Plan editor: opens plan editor
- Plan editor → Plan model: edits plan
src/sitplan/SituationPlanView.ts - Plan editor → Plan elements: manages elements
src/sitplan/SituationPlanView.ts - Plan properties → Plan elements: edits properties
src/sitplan/SituationPlanView_ElementPropertiesPopup.ts - Application startup → Automatic saving: initializes autosave
src/main.ts - Automatic saving → Diagram editor: reads diagram
src/importExport/AutoSaver.ts - Automatic saving → Browser storage: persists data
src/importExport/AutoSaver.ts - Application startup → Storage selection: configures storage
src/main.ts - Storage selection → Browser storage: uses backend
- Diagram user → Import and export: imports or exports
- Local files → Import and export: provides import
src/importExport/importExport.ts - Import and export → Diagram editor: reconstructs diagram
src/importExport/importExport.ts - Import and export → Plan model: reconstructs plan
src/importExport/importExport.ts - Application startup → Print workflow: offers printing
src/main.ts - Print workflow → Diagram editor: reads diagram
- Print workflow → Print layout: formats pages
- Print workflow → PDF output: generates PDF
src/print/print.ts - Print workflow → Browser print or download: prints or downloads