From d402301473a4cb657fab9b6623c29d06966d8101 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Tue, 2 May 2023 11:20:07 -0700 Subject: [PATCH] Update next.md --- ci/release/changelogs/next.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 8e629a0ab..9c91bbba7 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -1,6 +1,39 @@ +This release improves on the features introduced in 0.4, with `class` keyword now accepting multiple class values with an array, and grid diagrams becoming faster and more robust. + +Multiple classes example: + + + +```d2 +classes: { + base: { + style: { + stroke-dash: 2 + border-radius: 5 + font: mono + text-transform: uppercase + } + } + error: { + style.fill: "#e07d7d" + style.stroke: "#a60c0c" + style.font-color: white + } + success: { + style.fill: "#86f499" + style.stroke: "#017f07" + style.font-color: black + } +} + +server-1.class: [base; error] +server-2.class: [base; success] + +``` + #### Features ๐Ÿš€ -- `class` field now accepts arrays. See [docs](TODO). [#1256](https://github.com/terrastruct/d2/pull/1256) +- `class` field now accepts arrays. See [docs](https://d2lang.com/tour/classes/#multiple-classes). [#1256](https://github.com/terrastruct/d2/pull/1256) - Pill shape is implemented with rectangles of large border radius. Thanks @Poivey ! [#1006](https://github.com/terrastruct/d2/pull/1006) #### Improvements ๐Ÿงน