From d69c3645f3857cd94017dad03864e3a79fd20ec0 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2026 00:55:33 +0000 Subject: [PATCH] docs(DiagramLayout): a Layout that only folds or hides places nothing Co-Authored-By: jason.han --- libraries/DiagramLayout.sysml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/DiagramLayout.sysml b/libraries/DiagramLayout.sysml index 06f1c6e..583d9f2 100644 --- a/libraries/DiagramLayout.sysml +++ b/libraries/DiagramLayout.sysml @@ -13,7 +13,13 @@ library package DiagramLayout { * usages), references (ref usages), ports, constraints, items * (item and flow features) and actions. Unset means drawn; * false means the modeler suppressed that compartment on this - * symbol, so a renderer omits it rather than clipping it. */ + * symbol, so a renderer omits it rather than clipping it. + * A Layout that binds only collapsed or show… switches is legal + * and places nothing: it folds the element, or hides its + * compartments, where the view lays it out itself. x and y are + * needed only to place the element and are bound together: + * binding one without the other is an error, and a size without + * a place is refused. */ attribute x : ScalarValues::Real; attribute y : ScalarValues::Real; attribute width : ScalarValues::Real[0..1];