Skip to content

Use frames in SysML diagrams #3689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 23, 2024
Merged

Use frames in SysML diagrams #3689

merged 3 commits into from
Dec 23, 2024

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Dec 20, 2024

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Issue Number: #2213 (partially)

Replaces PR #2867.

What is the new behavior?

New SysML diagrams have a frame.

Old style diagrams stay as is.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@marek-piirikivi I rebased and updated your PR on top of the latest code. I think this is how you expect it to work. If you have time, can you please check 😄 ?

@danyeaw What do you think?

@amolenaar amolenaar requested a review from danyeaw December 20, 2024 20:21
@github-actions github-actions bot added the python Pull requests that update Python code label Dec 20, 2024
@danyeaw
Copy link
Member

danyeaw commented Dec 20, 2024

Hey @amolenaar, I noticed when the diagram is first created that the box in the corner is large:

image

and then snaps back to size once I click on the diagram.

@amolenaar
Copy link
Member Author

@danyeaw I fixed the diagram frame label box.

amolenaar and others added 2 commits December 22, 2024 13:39
* Hides diagram header for SysML diagrams
* Automatically adds DiagramFrameItem onto SysML diagram representing the diagram's element
* Allow connecting diagram element's ports on the frame when the element is block
* Automatically attach activity parameters on the frame
* Make frame undeletable
* Prevent deleting diagram's element when diagram item which subject is the element is deleted
* Replace diagram element's single representation with a frame item on load; otherwise just add a frame onto the diagram surrounding all the items

Co-authored-by: Marek Piirikivi <marek.piirikivi@gmail.com>
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @amolenaar!

@danyeaw danyeaw added feature A new feature and removed python Pull requests that update Python code labels Dec 23, 2024
@danyeaw danyeaw merged commit 165d554 into main Dec 23, 2024
23 checks passed
@danyeaw danyeaw deleted the diagram-frame branch December 23, 2024 02:06
@danyeaw danyeaw mentioned this pull request Dec 23, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants