Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Vanilla HTML, CSS, and Javascript.

### How does it work?

[d2.js](https://www.npmjs.com/package/@d2lang/d2) compiles and renders both Dagre and
ELK layouts entirely within the browser.
[d2.js](https://www.npmjs.com/package/@d2lang/d2) compiles and renders Dagre, ELK,
and TALA layouts entirely within the browser.

### Can I run it locally?

Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<div id="layout-menu" class="btn-menu" style="display: none">
<div class="btn-menu-item layout-menu-item">Dagre</div>
<div class="btn-menu-item layout-menu-item">ELK</div>
<div class="btn-menu-item layout-menu-item">TALA</div>
</div>
</div>
<button id="compile-btn" class="btn btn-primary btn-disabled">
Expand Down
1 change: 1 addition & 0 deletions src/js/modules/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ async function compile() {
return;
}
const renderOptions = {
...compiled.renderOptions,
layout: layout,
sketch: ascii ? false : sketch,
ascii,
Expand Down
1 change: 1 addition & 0 deletions src/js/modules/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ async function renderASCII(mode) {

const compiled = await window.d2.compile(compileRequest);
const renderOptions = {
...compiled.renderOptions,
ascii: true,
asciiMode: mode,
center: true,
Expand Down
2 changes: 1 addition & 1 deletion src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Terrastruct, Inc.",
"license": "MPL 2.0",
"dependencies": {
"@d2lang/d2": "^0.1.33",
"@d2lang/d2": "^0.1.34",
"monaco-editor": "^0.34.1",
"shiki": "^0.11.1",
"vscode-oniguruma": "^1.7.0",
Expand Down
8 changes: 4 additions & 4 deletions src/js/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@d2lang/d2@^0.1.33":
version "0.1.33"
resolved "https://registry.yarnpkg.com/@d2lang/d2/-/d2-0.1.33.tgz#95dabe1f1963ddec8108a7f7ed45808d4c53c4fc"
integrity sha512-amVNjWeVHffM2PIZLEiTXiweoqMBtnw85+DuP5htqTRF70nz1PaEq76lkGQB6gLiUqGd8rdSBjobR7TteiZuJA==
"@d2lang/d2@^0.1.34":
version "0.1.34"
resolved "https://registry.npmjs.org/@d2lang/d2/-/d2-0.1.34.tgz#5a0d76e597ce6be45929c7f2ef76178ef65fb051"
integrity sha512-35m2DaRUgeBy1cFbF9XEGIuaN/pMWrqkJtGj/tsq7OrU4N8degbY80Js7Mw7UeuE+fwGpxdZaGckEUVOPAj7CA==

jsonc-parser@^3.0.0:
version "3.2.0"
Expand Down
Loading