Skip to content

v0.4.0

Choose a tag to compare

@sandrinodm sandrinodm released this 17 Nov 23:46
50e5d19

New

  • Brand your diagrams: a brand's diagram section now sets the edges (stroke, round or sharp corners, triangle, open or dot arrowheads), the group outlines and the edge labels (plain or chips, in the caption or label type step).
  • Cards: named node styles a brand defines under diagram.cards: fill, border, radius, shadow, shape, icon style, an accent stripe and the title's family, weight and case. Every brand has five standard cards (default, outline, solid, tint, raised), derived from its roles, and may restyle them and add its own. diagram.kinds gives a node kind its card, and a surface can recolor a card under color.surfaces.<name>.diagram.cards.
  • card on slides: <Node>, <Actor>, <Item> and <Layer> take card="solid", and <Flow>, <Tree>, <Cycle>, <SequenceDiagram> and <Layers> take one for all their nodes. A node uses its own card, then its diagram's, then the brand's card for its kind, then default.
  • deck lint: a diagram-card-missing warning when a slide names a card the brand does not have; the node is drawn with the next card in the order.
  • deck brand and deck diagrams print a brand's diagram look and cards, and the cards guide.
  • PowerPoint export carries card shadows, accent stripes, arrowhead styles, radii and sharp edge corners.
  • Embed mode: add ?embed to a built deck's URL to show it in an iframe with previous and next controls and a link to the full deck.

Changed

  • The five brands in the repository (default, kinetic, nocturne, fieldnote, tidewater) each have their own diagram look, so diagrams in a deck that uses a copy of them from this release look different. A brand without the new keys renders as before.
  • deck lint's contrast rule measures a diagram node's text on its card's fill.
  • Corrections to command help and hints, and to the off-brand lint rule for SVGs.

Full Changelog: v0.3.0...v0.4.0