Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql_table interpretation problem #506

Closed
murphyke opened this issue Dec 22, 2022 · 1 comment · Fixed by #509
Closed

sql_table interpretation problem #506

murphyke opened this issue Dec 22, 2022 · 1 comment · Fixed by #509
Labels
bug Something isn't working compiler

Comments

@murphyke
Copy link

d2 0.1.2, tala 0.2.9

Under certain circumstances that I don't understand, a sql_table shape can be mis-rendered.

Code to reproduce:

style {
    fill: lemonchiffon
}

legend: {
    shape: sql_table
    "***": not in terraform yet
}

thing

(Originally this stuff was inside a container, where the style declaration actually made sense. The problem manifests in that context also).

The result is that the legend is rendered as usual, plus it acts as if legend is a normal container, and a shape containing the label "not in terraform yet" is superimposed on top of the sql_table.

Here is the result:

sql_table_oddity

Observations:

If you remove the thing shape, the problem goes away.

If you remove the style declaration, the problem goes away.

@cyborg-ts cyborg-ts added this to D2 Dec 22, 2022
@alixander alixander added bug Something isn't working compiler labels Dec 23, 2022
@alixander alixander mentioned this issue Dec 23, 2022
@alixander alixander moved this to Done in D2 Dec 23, 2022
@murphyke
Copy link
Author

Fast response, nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants