updating changelog and readme
This commit is contained in:
parent
995110bc91
commit
4ce43c3248
2 changed files with 3 additions and 3 deletions
|
|
@ -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 ⛑️
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue