diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 8cefc73b2..4a1a65c84 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -2,6 +2,6 @@ #### Improvements 🧹 -d2js: Support additional render options [#2343](https://github.com/terrastruct/d2/pull/2343) +d2js: Support additional render options (`themeID`, `darkThemeID`, `center`, `pad` and `scale`) [#2343](https://github.com/terrastruct/d2/pull/2343) #### Bugfixes ⛑️ diff --git a/d2js/js/README.md b/d2js/js/README.md index b355c6fb7..cdd77133f 100644 --- a/d2js/js/README.md +++ b/d2js/js/README.md @@ -56,8 +56,8 @@ Compiles D2 markup into an intermediate representation. Options: - `layout`: Layout engine to use ('dagre' | 'elk') [default: 'dagre'] - `sketch`: Enable sketch mode [default: false] -- `themeId`: Theme ID to use [default: 0] -- `darkThemeId`: Theme ID to use when client is in dark mode +- `themeID`: Theme ID to use [default: 0] +- `darkThemeID`: Theme ID to use when client is in dark mode - `center`: Center the SVG in the containing viewbox [default: false] - `pad`: Pixels padded around the rendered diagram [default: 100] - `scale`: Scale the output. E.g., 0.5 to halve the default size. The default will render SVG's that will fit to screen. Setting to 1 turns off SVG fitting to screen.