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

fix: correctly compute the style when setting undefined/none #383

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Apr 9, 2024

Previously, when the value of a property was defined as undefined, it was also defined as undefined in the calculated style. This was a change from the mxGraph implementation and was not consistent with the style without the same property.
This has now been corrected: when a value is set to undefined, the value calculated is that of the default style or a "base" style.

To match mxGraph's behavior, the same logic applies when the value is set to "none".

Notes

Original mxGraph's behavior:

…lues

Previously, when the value of a property was defined as `undefined`, it was also defined as `undefined`
in the calculated style. This was a change from the mxGraph implementation and was not
consistent with the style without the same property.
This has now been corrected: when a value is defined as undefined, the value calculated is that of
the default style or a "base" style.
To match mxGraph's behavior, the same logic applies when the value is set to "none".
@tbouffard tbouffard added the bug Something isn't working label Apr 9, 2024
@tbouffard tbouffard changed the title fix: correctly compute the actual style when setting undefined/none fix: correctly compute the style when setting undefined/none Apr 9, 2024
@tbouffard tbouffard marked this pull request as ready for review April 9, 2024 15:07
@tbouffard tbouffard merged commit 9605589 into main Apr 11, 2024
5 checks passed
@tbouffard tbouffard deleted the fix/style_computation_undefined_values_fallback branch April 11, 2024 13:30
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.

None yet

1 participant