-
Notifications
You must be signed in to change notification settings - Fork 453
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
Class and sqltable border radius #982
Class and sqltable border radius #982
Conversation
@alixander after fetch the remote repo, seems like there are something wrong with my local env, do you have any ideas how to resolve it? i already asked in discord help channel.
|
hey @donglixiaoche i responded in Discord but copying here:
can you double check your PATH? |
551d91b
to
1f39f7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these look great. sorry can you add this test to d2sketch_test as well? I just want to make sure it works there too, then we can merge
1f39f7e
to
39419f2
Compare
@alixander already regenerated some tests. seems like these changes have no effect on d2Sketch, do i need to fix it? |
no it's not a big deal, as long as not broken |
@alixander one thing need to discuss with you is, althought these changes work well, but the logic for rendering border-radius is distributed between different files. isn't it hard to maintain? |
yeah it's unfortunate. i didn't expect class and table to deviate so much from d2svg's main rendering. eventually we should consolidate in a refactor |
This reverts commit c44701a.
@alixander still some little changes even i just add |
@donglixiaoche for the sketch tests? yeah, there's some tiiny precision issue dependent on architecture. what machine are u running? #921 |
@donglixiaoche yes please revert it. sorry about that. as well as the CLI tests: |
This reverts commit d6e44d0.
@alixander done, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested locally and works well! thanks for taking such a tedious one. classes and sql_tables are some of the most used shapes people use D2 for, so i'm sure we'll start seeing some usages of these in no time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful (code, commit msgs, and resulting diagrams)!
closes #689
this pr add support for apply border-radius to class and sql_table
the image below can be generate by run
./ci/e2ereport.sh -test-case=class_and_sqlTable_border_radius
: