Commit Graph

11 Commits

Author SHA1 Message Date
SikongJueluo c7907b4253
fix: Componnent will reset when select of drag 2025-05-17 15:49:54 +08:00
SikongJueluo 3fb59af2dd
fix: DDS and drag will reset conponent props 2025-05-17 15:09:59 +08:00
SikongJueluo 9b2ee8ad46
fix: DDS couldn't apply 2025-05-17 13:10:00 +08:00
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 cfd8769e9b feat: add project view 2025-04-25 16:11:53 +08:00