updating changelog and readme

This commit is contained in:
delfino 2025-02-13 12:20:38 +00:00
parent 995110bc91
commit 4ce43c3248
No known key found for this signature in database
GPG key ID: CFE0DD6A770BF48C
2 changed files with 3 additions and 3 deletions

View file

@ -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 ⛑️

View file

@ -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.