Skip to content

Conversation

@junsikshim
Copy link
Collaborator

@junsikshim junsikshim commented Sep 24, 2022

Summary
In order to resolve TS errors, I previously added null checks to some of the functions.
However, this has brought some unintentional side-effects mentioned in #107 .
So, I removed those null checks and used non-null assertion operator instead.
It's not optimal, but I think it's ok for now.

closes #107

Description for the changelog
Fixes null checks in SvgCanvas2D.

Other info
Other files may also contain such null checks. I assume the most of them won't cause problems, but there could be similar side-effects.

@tbouffard
Copy link
Member

tbouffard commented Sep 24, 2022

I confirmed this PR fixes the rounded rectangle issue. I have updated the ts-example to restore the rounded rectangle in the custom shape.
I will run new tests with the stories soon.

@tbouffard
Copy link
Member

I have tests the stories with the changes proposed in this PR. Everything run fine.
So I am merging the PR.

@tbouffard tbouffard merged commit 57a8d63 into development Oct 9, 2022
@tbouffard tbouffard deleted the svgcanvas branch October 9, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SvgCanvas2D - unexpected behavior of roundrect

2 participants