Open bonesmoses opened 1 year ago
Hey Maintainers, I want to contribute to this issue how can I proceed to do so...?
@PUJAmangale1221 awesome, all yours!
After setting up the environment from CONTRIBUTING.md,
I would start by adding a test here, just a simple x.style.border-radius: 5
.
Run the test and save: TESTDATA_ACCEPT=1 ./ci/test.sh ./d2renderers/d2sketch/ -run TestSketch/name-of-your-test -v
Open the newly produced svg file, and seeing that it has no border radius.
The code that draws it in sketch mode is here:
And then you can search in d2svg
how regular border radius's are drawn for shapes that are not in sketch mode, and just modify the sketch drawing as appropriate, rerunning the test until it looks good.
While using sketch mode, it would be nice to also have more rounded edges as well. Activating sketch currently ignores any previously supplied
border-radius
specifications.