Skip to content

feat(DiagramLayout): Style.lineWidth, Layout.showKeyword, Arrangement and Rank - #30

Open
HuiJun wants to merge 3 commits into
mainfrom
feature/diagram-layout-line-width-show-keyword
Open

HuiJun wants to merge 3 commits into
mainfrom
feature/diagram-layout-line-width-show-keyword

Conversation

@HuiJun

@HuiJun HuiJun commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the DiagramLayout vocabulary two OpenSysML view features read. Every addition is optional, so a model that states none of them is drawn as before.

For Open-MBEE/OpenSysML#2709 (line thickness, hiding the keyword line):

metadata def Style  { ... attribute lineWidth   : ScalarValues::Real[0..1];    } // points, greater than zero; a node's outline or an edge's line
metadata def Layout { ... attribute showKeyword : ScalarValues::Boolean[0..1]; } // false leaves the name to head the box, without «part def»

For Open-MBEE/OpenSysML#2233 (view direction, ordering siblings by a metadata value):

enum def Direction { enum TB; enum LR; enum RL; enum BT; }
metadata def Arrangement { attribute direction : Direction[0..1]; } // on a view: the direction its drawing flows in
metadata def Rank { }                                               // @DiagramLayout::Rank about Tier::position;

engine-contract.json gains lineWidth on DiagramLayout::Style, showKeyword on DiagramLayout::Layout, and the entries DiagramLayout::Arrangement, DiagramLayout::Direction and DiagramLayout::Rank. Nothing is renamed or removed, so contract is not bumped. .meta.json is regenerated.

Consumers

The consuming OpenSysML pull requests (one for #2709, one for #2233) open after this lands: OpenSysML pins the vendored libraries to a merged commit of main, so each bumps scripts/extension-libraries-pin.sh to this PR's merge commit and regenerates its snapshot. They will be linked here when open.

Checks

Run on this head under the pinned pilot with Java 21:

Check Result
./scripts/validate-libraries.sh Validation clean: 0 errors, 0 warning(s)
./scripts/check-engine-contract.sh --base origin/main exit 0
./scripts/write-project-meta.py --check .project.json and .meta.json match the tree (OpenSysML Extensions Library 1.0.0, 22 units)
./scripts/check-readme-table.sh README table matches libraries/

Triage opened this PR for Jason
Implemented in session Triage issue 2709 view style customization
Review with Devin · Open in Devin Desktop


devin-ai-integration Bot and others added 3 commits December 3, 2026 13:21
…ut.showKeyword hides the keyword line

Style gains lineWidth, the thickness in points of a node's outline or an
edge's line, and Layout gains showKeyword, whose false drops the keyword
line («part def») heading a node's box. Both are optional, so an existing
model means what it did. The engine contract lists both for OpenSysML,
which reads them; .meta.json is regenerated.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ames the attribute that orders its elements

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…t-line-width-show-keyword

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	.meta.json
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant