Files
logic-gates/js/app.js
Jose Luis Montañes 7409a96cf1 refactor: modularize into ES6 modules
Split monolithic index.html into:
- js/constants.js - gate config, colors, dimensions
- js/state.js     - shared application state
- js/gates.js     - evaluation logic, port geometry
- js/renderer.js  - canvas drawing
- js/waveform.js  - GTKWave-style signal viewer
- js/simulation.js - clock tick engine
- js/events.js    - mouse, keyboard, UI handlers
- js/app.js       - entry point
- css/style.css   - all styles
2026-03-19 22:00:02 +01:00

9 lines
228 B
JavaScript

// Entry point — initializes all modules
import { initRenderer } from './renderer.js';
import { initEvents } from './events.js';
document.addEventListener('DOMContentLoaded', () => {
initRenderer();
initEvents();
});