Skip to content

Dottie 0.10.0

Choose a tag to compare

@sam-phinizy sam-phinizy released this 09 Nov 15:44

Containers and swimlanes

  • Boxes that hold things. Select some shapes and choose Arrange ▸ Put in Container (⌥⌘K) to put a titled box
    round them: a VPC, a subsystem, a team. It fits round what it holds, moving it moves them, and connectors attach
    to it like any shape. Drop a shape in to add it, drag one out to take it out, and resize the box to keep it at
    that size. Containers nest, and the Layers panel shows what each one holds.
  • Swimlanes. A container can stack containers inside it as rows or columns, one per lane, each with its title.
  • Mermaid subgraphs come in as containers, nested as you wrote them, and go back out as subgraphs when you
    export to Mermaid. draw.io swimlanes and containers, and Excalidraw frames, import as containers too.
  • For agents: add_container, parent on add_shape and update_element, and clusters on build_diagram, which
    lays out each cluster as one block. Scripts have dottie.container, and a parent option on shapes, updates and
    dottie.build.

Themes of your own

  • Palettes. Every theme now has named colors: accent, muted, danger, warning, success and info, lighter on dark
    pages. Click one of the swatches under Stroke or Fill to use a palette color, and it changes when the theme does.
  • Make a theme of the drawing's own on the Page tab, with its own page color, ink and palette colors, and add
    colors of your own. Changing a palette color recolors everything that uses it.
  • For agents: set_theme, and every color argument also takes a palette name. Scripts have dottie.theme().

Arrows go round shapes

  • New elbow connectors route round the shapes in their way instead of cutting through them, and keep their plain
    Z or L when nothing is in the way. Turn it off for a connector with Go Round Shapes in the inspector. Existing
    drawings don't change.

For agents

  • export_png takes max_width for a small preview, include_image: false to save the image without sending it
    back, and elements: "compact" for a short element list.
  • simulate has a {"routes": true} step: each flow's destination, the connectors it takes, its share and cost,
    and why a flow reaches nothing, so you can check traffic in each state.
  • dottie.connect and add_connector take stroke.
  • Script type checks no longer report TypeScript 7's strict-mode noise in plain JavaScript. They group problems by
    kind and show mistakes in dottie calls first.

Fixes

  • dottie.js: ***bold italic*** and **bold *italic*** in notes no longer leave stray asterisks.