How dataf3l/openchart works
Main Components
a) Frontend Layer:
• Property Editor
• Rendering Controls
b) Core Processing Layer:
• Rendering Engine
• Cost Calculation Engine
• AZ Command Generator
c) Data Layer:
• Cost Templates (docs/cost.json)
• Sample Configurations (docs/sample.json)
Component Relationships
[UI Layer]
• ↓ ↑
[Core Processing]
• ↓ ↑
[Data Layer]
Detailed Component Breakdown
UI Components (Blue):
• UI Layer |
• Drawing Area||
• Props Editor||
Core Processing (Green):
• ↓ ↓
• Cost Calculator |←→| Command Generator|
Data Layer (Yellow):
• Cost Data |
• Templates |
Interaction Flows
• User input flow (mouse events, keyboard shortcuts)
• Cost calculation triggers
• Command generation process
Technical Details
Annotations showing:
• Browser-based implementation
• Static file serving
• JSON data storage
• DOM manipulation features
Implementation Notes
Notes about:
• Shift + mouse movement for drawing
• ALT + mouse movement for connections
• Drag and drop functionality
• Render button functionality
Remember to highlight the extensibility points mentioned in the README, such as potential future support for UI cost estimation and mobile application estimation.