Commit Graph

12 Commits

Author SHA1 Message Date
alivender 91838ff632 add: DDS virtual component 2025-05-11 14:41:38 +08:00
alivender 6a786c1519 feat: Refactor code structure for improved readability and maintainability 2025-05-09 19:28:43 +08:00
alivender 47cfe17d16 Refactor component configuration and diagram management
- Removed the component configuration from `componentConfig.ts` to streamline the codebase.
- Introduced a new `diagram.json` file to define the initial structure for diagrams.
- Created a `diagramManager.ts` to handle diagram data, including loading, saving, and validating diagram structures.
- Updated `ProjectView.vue` to integrate the new diagram management system, including handling component selection and property updates.
- Enhanced the component property management to support dynamic attributes and improved error handling.
- Added functions for managing connections between components within the diagram.
2025-05-07 15:42:35 +08:00
alivender 1c75aa621a feat: Enhance equipment components with pin functionality and constraint management
- Added pin support to MechanicalButton, enabling pin-click events and componentId handling.
- Updated Pin component to manage constraint states and colors dynamically.
- Integrated SMT_LED with pin functionality, allowing LED state to respond to constraints.
- Enhanced Wire component to reflect constraint colors and manage wire states based on pin connections.
- Introduced wireManager for managing wire states and constraints.
- Implemented a constraints store for managing and notifying constraint state changes across components.
- Updated component configuration to remove appearance options and clarify constraint descriptions.
- Improved ProjectView to handle optional chaining for props and ensure robust data handling.
- Initialized constraint communication in main application entry point.
2025-04-29 11:05:30 +08:00
alivender 10db7c67bf feat: Pin移动连线也跟着移动 2025-04-27 14:08:05 +08:00
alivender b3a5342d6b feat: enhance DiagramCanvas and Pin components with wire creation and tooltip functionality
- Added wire creation logic in DiagramCanvas.vue with mouse tracking and event handling.
- Implemented tooltip display for pins in Pin.vue with detailed information on hover.
- Updated ProjectView.vue to handle wire creation and deletion events.
- Refactored Wire.vue to support dynamic path rendering based on routing mode.
2025-04-26 21:53:33 +08:00
alivender bc4f44ecaa feat: remake most of forntend 2025-04-26 19:59:35 +08:00
alivender 4465091db3 feat: remake machanicalbutton 2025-04-25 13:20:04 +08:00
alivender 6526203981 feat: add right click keyboard match 2025-04-23 11:50:51 +08:00
SikongJueluo 292c73e757
finish sidebar router push 2025-04-05 20:49:50 +08:00
SikongJueluo 4980b84da6
add mechanical button 2025-03-17 20:21:24 +08:00
SikongJueluo d7ca474e39
add switch component 2025-03-16 21:49:01 +08:00