voytech / cljs-diagrams

A clojurescript relational desinger tool.
2 stars 1 forks source link

Reinventing layouts #77

Closed voytech closed 5 years ago

voytech commented 5 years ago
  1. Entity should have bbox object with absolute properties demarcating entity display area.

  2. Add layouts - an records of type LayoutDefinition.

  3. LayoutDef should have: 3.1. LPosition = { left : LCoord = { type : [ :abs , :rel, :no, :wei ], top: LCoord } 3.2. LSize = { width : LCoord, height : LCoord } 3.3. layout-func

  4. LayoutHints - set of properties like LPosition, LSize, and LOrigin which allows to calculate component absolute coordinates and size when refreshing layout.

  5. Layout-ref on component