Skip to content

Move "expanded" element state from distinct property on Element to be stored in Element.elementState#79

Merged
AlexeyMz merged 1 commit into
masterfrom
expanded-to-element-state
Oct 24, 2025
Merged

Move "expanded" element state from distinct property on Element to be stored in Element.elementState#79
AlexeyMz merged 1 commit into
masterfrom
expanded-to-element-state

Conversation

@AlexeyMz
Copy link
Copy Markdown
Member

  • changeExpanded event is removed from element events, can be replaced by changeElementState event instead;
  • When exporting the diagram the expanded state is serialized only with elementState while using isExpanded property when importing the diagram for backward compatibility;
  • Move "expand/collapse on double click" global element behavior to StandardEntity and ClassicEntity implementation only;
  • Fix element template state not being restored when ungrouping entities;

…be stored in `Element.elementState`:

* `changeExpanded` event is removed from element events, can be replaced by `changeElementState` event instead;
* When exporting the diagram the expanded state is serialized only with `elementState` while using `isExpanded` property when importing the diagram for backward compatibility;
* Move "expand/collapse on double click" global element behavior to `StandardEntity` and `ClassicEntity` implementation only;
* Fix element template state not being restored when ungrouping entities;
@AlexeyMz AlexeyMz merged commit 98229bd into master Oct 24, 2025
4 checks passed
@AlexeyMz AlexeyMz deleted the expanded-to-element-state branch October 24, 2025 21:42
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