Description
When the shapes array reference changes (whether by creating a new reference with spread operator, replacing the array entirely, etc.), the defined layout subtype property is ignored. For example, a layout configured as { type: 'tree', subtype: 'right' } renders with a "down" subtype instead.
Steps To Reproduce
- Open the following example - https://stackblitz.com/edit/angular-chtgh6my
- Click the "Add shape" button and see how the layout of the Diagram changes.
Actual Behavior
The subtype property is ignored and the layout defaults to "down".
Expected Behavior
The layout's subtype property should be preserved and applied correctly after adding a new shape.
Description
When the shapes array reference changes (whether by creating a new reference with spread operator, replacing the array entirely, etc.), the defined
layoutsubtypeproperty is ignored. For example, alayoutconfigured as{ type: 'tree', subtype: 'right' }renders with a "down" subtype instead.Steps To Reproduce
Actual Behavior
The
subtypeproperty is ignored and the layout defaults to "down".Expected Behavior
The layout's
subtypeproperty should be preserved and applied correctly after adding a new shape.