setcola icon indicating copy to clipboard operation
setcola copied to clipboard

Visual is mirrored, what constraints should I use to align ?

Open stefan-ma22 opened this issue 4 years ago • 0 comments

Image here: https://pasteboard.co/JRXFBkj.png

I would like to have AZ1 and POD1 groups on left side, somehow order by name is ignored. Tried different variations, none of its working, When I removed that particular constraint it orders it but overlaps some nodes on x axis - node which should be left is on the right next to other node

All nodes have same structure, e.g.:

	{
            "name": "AZ2-testpermanent-123-muc-vpn2",
            "level": 99,
            "meta": {
            },
            "icon": "/static/images/vpn.png"
	},

Constraints in JSON:

"constraints": [
        {
            "name": "leveled",
            "sets": {
                "partition": "level"
            },
            "forEach": [
                {
                    "constraint": "align",
                    "axis": "x"
                },
                {
                    "constraint": "order",
                    "axis": "x",
                    "by": "name",
                    "reverse": true,
                    "gap": 100
                }
            ]
        },
        {
            "sets": [
                "leveled"
            ],
            "forEach": [
                {
                    "constraint": "order",
                    "axis": "y",
                    "by": "level",
                    "gap": 50,
                    "reverse": true
                }
            ]
        }
    ]

stefan-ma22 avatar Mar 10 '21 12:03 stefan-ma22