Commit bb64830
fix connection visualization (#51)
* feat(export): enhance port serialization and visualization with outward direction support
- Updated `serialize_port` function to include an `is_outward` parameter, allowing differentiation between inward and outward ports.
- Modified the port collection methods to pass the correct outward flag based on the port type.
- Enhanced the visualization logic in `node_diagram.js` to highlight outward boundary ports and their connections, improving clarity in the node diagram representation.
These changes improve the accuracy and usability of port data handling and visualization in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* refactor(node_diagram): streamline ELK library initialization and enhance node conversion logic
- Simplified the ELK library loading process by removing unnecessary console logs and error checks, improving clarity and efficiency.
- Refactored the node conversion logic to utilize helper functions for adding ports and handling children, enhancing code readability and maintainability.
- Improved error handling during ELK instance creation, ensuring clearer error messages for debugging.
These changes enhance the overall structure and performance of the Node Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* fix(node_diagram): improve mouse event handling and update transformation logic
- Added mouse event handlers for improved drag-and-drop functionality in the Node Diagram Module.
- Refactored the setupZoomPan method to ensure proper cleanup of event listeners, enhancing performance and preventing memory leaks.
- Updated the updateTransform method call to ensure the diagram reflects changes during mouse movements, improving user interaction.
These changes enhance the usability and responsiveness of the Node Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* refactor(node_diagram): improve code formatting and readability
- Reformatted multiline statements in `node_diagram.js` for better clarity and consistency.
- Enhanced the organization of label and style definitions, improving overall code structure.
- Streamlined event listener management in the `setupZoomPan` method for improved readability.
These changes enhance the maintainability and usability of the Node Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* feat(logic_diagram): enhance visual representation of input/output ports
- Updated color schemes for input and output ports based on dark mode settings, improving visual clarity.
- Changed port shapes from ellipses to boxes for better differentiation and added border colors for enhanced styling.
- These modifications improve the overall usability and aesthetics of the Logic Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* feat(logic_diagram): enhance node and edge highlighting functionality
- Introduced new methods for building element maps and highlighting nodes and their connections in the Logic Diagram Module.
- Implemented clear highlight management for nodes and edges, improving user interaction and visual feedback.
- Refactored event handling to integrate highlighting features during node and edge clicks, enhancing the overall usability of the diagram interface.
These changes significantly improve the interactivity and visual clarity of the Logic Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* refactor(logic_diagram): improve code formatting for clarity
- Reformatted the initialization of the nodeMap variable in `logic_diagram.js` for better readability.
- This change enhances the overall code structure and maintainability of the Logic Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* feat(logic_diagram): enhance highlighting functionality and improve visual feedback
- Removed hover effects for logic diagram nodes, edges, and clusters in the CSS to streamline the visual experience.
- Updated JavaScript to include additional shape types (rectangles) in highlight management, ensuring consistent styling across all elements.
- Enhanced text styling during highlighting to improve visibility and user interaction, making highlighted nodes and edges more prominent.
These changes improve the overall usability and visual clarity of the Logic Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* feat(node_diagram): enhance node connection highlighting and port direction management
- Introduced new mappings for ports to nodes and node connection directions to improve the highlighting functionality in the Node Diagram Module.
- Added methods to determine port direction (upstream/downstream) and apply corresponding highlights to nodes based on their connection state.
- Enhanced the clearHighlights method to remove connection highlights, improving visual feedback during user interactions.
These changes significantly improve the interactivity and visual clarity of the Node Diagram Module in the Autoware System Designer.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
* Update autoware_system_designer/autoware_system_designer/visualization/js/node_diagram.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(node_diagram): improve highlight clearing logic by scoping to current SVG root
- Updated the clearHighlights method to use the current SVG root or container for querying highlighted elements, ensuring that highlights are cleared correctly within the intended scope.
- This change enhances the functionality and reliability of the highlight clearing process in the Node Diagram Module.
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
---------
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 5c5626a commit bb64830
6 files changed
Lines changed: 456 additions & 463 deletions
File tree
- autoware_system_designer/autoware_system_designer
- exporting
- visualization
- css
- js
- tools/topology-analyzer/lib
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | | - | |
185 | | - | |
| 186 | + | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
Lines changed: 0 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | 610 | | |
626 | 611 | | |
627 | 612 | | |
| |||
Lines changed: 135 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
204 | | - | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
426 | 430 | | |
427 | 431 | | |
428 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
429 | 529 | | |
430 | | - | |
| 530 | + | |
| 531 | + | |
431 | 532 | | |
432 | 533 | | |
433 | 534 | | |
434 | 535 | | |
435 | | - | |
436 | 536 | | |
437 | 537 | | |
438 | 538 | | |
439 | 539 | | |
440 | 540 | | |
441 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
442 | 552 | | |
443 | 553 | | |
444 | 554 | | |
445 | | - | |
446 | 555 | | |
447 | 556 | | |
448 | 557 | | |
| |||
452 | 561 | | |
453 | 562 | | |
454 | 563 | | |
455 | | - | |
456 | 564 | | |
457 | 565 | | |
458 | 566 | | |
| |||
464 | 572 | | |
465 | 573 | | |
466 | 574 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 575 | + | |
471 | 576 | | |
472 | | - | |
473 | 577 | | |
474 | 578 | | |
475 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
476 | 588 | | |
477 | 589 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
486 | 598 | | |
487 | 599 | | |
488 | 600 | | |
| |||
0 commit comments