Skip to content

Grouping not overrided #39

@Risele

Description

@Risele

The composite state is not created at grouping.
The shouldGroupWithState() always return false. States grouping happens, but transparent:
Image

Easy fix - just return true. Not sure,is it good or not, but it works.

    shouldGroupWithState(cells) {
        return true;
        for (let index = 0; index < cells.length; index++) {
            const cell = cells[index];
            if (StateSmithModel.hasStateMachineParent(cell))
                return true;
        }
        
        return false;
    }

Image

Checked with draw.io version 26.1.1 at least

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions