Skip to content

Initialize D2Scale configuration member#611

Merged
mrueg merged 1 commit intokovetskiy:masterfrom
Oddegamra:config-init-d2scale
Jun 12, 2025
Merged

Initialize D2Scale configuration member#611
mrueg merged 1 commit intokovetskiy:masterfrom
Oddegamra:config-init-d2scale

Conversation

@Oddegamra
Copy link
Contributor

The D2Scale property of MarkConfig was never initialized, leading to a default value of 0 being passed to the D2 renderer. This eventually led to calling chromedp.ScreenshotScale with a scale value of 0. Chrome doesn't like this, and never finishes the sceenshot operation.

Fixes #610

The D2Scale property of MarkConfig was never initialized, leading to a
default value of 0 being passed to the D2 renderer. This eventually led
to calling chromedp.ScreenshotScale with a scale value of 0. Chrome
doesn't like this, and never finishes the sceenshot operation.

Fixes kovetskiy#610
@mrueg mrueg merged commit bb476d3 into kovetskiy:master Jun 12, 2025
5 checks passed
@mrueg
Copy link
Collaborator

mrueg commented Jun 12, 2025

Thanks!

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.

Embedded d2 diagram spawns Chrome, hangs, then terminates

2 participants