Skip to content

Feature/tala default layout 5021638596232649331 - #165

Open
KhaledQasim wants to merge 4 commits into
d2lang:masterfrom
KhaledQasim:feature/tala-default-layout-5021638596232649331
Open

KhaledQasim wants to merge 4 commits into
d2lang:masterfrom
KhaledQasim:feature/tala-default-layout-5021638596232649331

Conversation

@KhaledQasim

Copy link
Copy Markdown

This adds conditional logic to include tala as an available layout option if the user has d2 version 0.6.0 or greater, which comes with TALA bundled. It falls back to checking for d2plugin-tala for backwards compatibility.

google-labs-jules Bot and others added 4 commits September 13, 2026 08:47
Added a `semver` check against the installed D2 executable to determine if TALA is natively available (`>= 0.6.0`), and fallback to checking for `d2plugin-tala` on the user's PATH if they are using an older version. Updated `package.json` to reflect that TALA is no longer strictly "available if installed".

Co-authored-by: KhaledQasim <98847296+KhaledQasim@users.noreply.github.com>
Added a `semver` check against the installed D2 executable to determine if TALA is natively available (`>= 0.6.0`), and fallback to checking for `d2plugin-tala` on the user's PATH if they are using an older version. Updated `package.json` to reflect that TALA is no longer strictly "available if installed".

Co-authored-by: KhaledQasim <98847296+KhaledQasim@users.noreply.github.com>
The global `path { fill: ... }` rule in previewPage.html, added to color the toolbar's zoom/refresh icons, also overrode the fill on the injected D2 diagram's own paths. Since a CSS rule beats an SVG presentation attribute, every edge (fill="none", no fill class) got painted solid instead of staying stroke-only, corrupting the preview or any diagram with connectors.
@KhaledQasim

KhaledQasim commented Sep 13, 2026

Copy link
Copy Markdown
Author

added fix for the commit added in March 2024 (commit 7da4ca1/c9d3162, "Add a recompile button") to color the toolbar's zoom/refresh SVG icons — but it's unscoped, so it applies to every "path" in the whole document, including the D2 diagram itself once it's injected into #previewWrapper

bug has sat in the codebase since March 2024, after the last marketplace release (Sept 2023) , so it was never actually shipped.

That is how i discovered it now and also fixed it

@KhaledQasim KhaledQasim reopened this Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant