Skip to content
figular v0.0.10 - 2022-09-27

Added

* Styling: large change to introduce a DOM that understands hierarchy and
  replace existing flat one. This allows us to style everything in the Figures
  we have so far. It supports both:

  * finding the 'nth-child' of a parent, e.g. `shape > textbox_nth_child_1`
  * child combinators (CSS' ">"), e.g. `shape > textbox`

  It will give primitives the correct style based on any rules that have been
  added. Child combinators allow us to reach anything and nth-child let's us
  target a specific primitive in a drawing rather than all of given type.
* On the website you can now style the orgchart. The user can choose a wide
  layout, tighter spacing on lower layers and control horiz/vert spacing. There
  are also controls for styling the shapes which are used to draw each role's
  card and the two textboxes that are for the title and subtitle.
* For fonts you can now style their 'weight', with normal and bold options for
  now. Note "Computer Modern Teletype" has no bold face and falls back to
  normal, but all the rest have a bold alternative. This is available on the
  website, cmdline and API.

Changed

* API/cmdline updated to allow styling with the new dom. Note we have not yet
  exposed all the possible styling combinations, just a restricted set for the
  figures we have so far. Breaking change.
* Figures were updated to set their style with the new dom and draw their
  primitives in the dom's hierarchy so elements have a logical relationship
  (text boxes are underneath the shapes they are drawn inside). Circle's styling
  has changed slightly, textbox is now separate.
* API: orgchart now takes our standard Message which means it is also much more
  stylable. This is a breaking change.
* Internal changes:
  * Some stray asy 'include's where switched to imports. Include should not be
    needed.
  * Aligned asy style's members with CSS names

Fixed

* Asy: circle and shape's styles were intermixed in stylesheet, now separated.