nkh / P5-App-Asciio

Plain ASCII diagram
https://nkh.github.io/P5-App-Asciio/
55 stars 4 forks source link

Refactor object grouping #134

Open nkh opened 11 months ago

nkh commented 11 months ago

Analysis

Current State

As of v 1.9, groups ... are not groups.

A group is a trait shared by different objects.

The trait is stored in an array, that lets us stack and unstack traits, IE we can group on multi level, group multiple groups together and later ungroup.

As groups are not objects, we need to handle the objects and their grouped attribute instead for managing the group as an element. An example is aligning objects, groups need to be handled specially.

Elements in a group are static, particularly arrows.

See #91

nkh commented 11 months ago

definition of a group: