You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ER entities as tables: entity attributes are drawn in a Mermaid-style grid with type, name, keys and comment columns. The grid has a bold header, lines between rows and columns, and a tint on every second row. The keys and comment columns appear only when an entity uses them. Entities without attributes are drawn as a plain box with the name centred.
New er_attribute_layout setting: Table (the default) or Text, which keeps the previous one-line-per-attribute rendering.
Editor settings for the ER layout: trellis.er.attributeLayout in VS Code and erAttributeLayout in IntelliJ (edited in TrellisSettings.xml).
draw.io export uses the ER table layout too, so exported diagrams match the SVG.
VS Code trellis.c4.placement setting turns on region-based C4 layout without a %% trellis focus comment. A misplaced %% trellis focus used to fall back to the default layout without warning.
Improvements
Edges no longer meet an ER table on one of its row lines, where they looked like they ran through the entity.
Faster rendering: large C4 diagrams render about 3 times faster, and release builds of the CLI and editor plugins are 8-9% faster again. The WebAssembly file shrinks from 5.8 to 5.3 MB. Output is unchanged.
VS Code preview waits until you pause typing before it renders, instead of rendering on every keystroke and falling behind. The new trellis.preview.updateDelay setting controls the wait (1000 ms by default). Moving the cursor no longer re-renders an unchanged diagram.
VS Code preview stays responsive while a diagram renders: the spinner, pan and zoom keep working, and an edit cancels an outdated render instead of waiting for it to finish.
Zooming the VS Code preview sharpens the image without redoing the layout, so it no longer freezes the preview.
Fixes
ER composite keys such as PK, FK keep both keys. Before, the FK was lost.
ER relationships written in words (for example A only one to zero or more B, or with optionally to) are now read. Before, they were dropped without an error, along with any entity named only in them, and validate still reported OK.
ER cardinality markers touch the entity border, with no gap or overlap.
Self-loops on ER entities: markers no longer sit on the header line or overlap each other. Entities with self-loops are made tall enough to fit them.
Several self-loops on the same node no longer share connection points, which caused stacked markers and overlapping paths.