Filter out properties that are the same as their default value #816
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In
getComponentClipboardRepresentationfilter out properties that are the same as their default value, and modify the propertyRowDefined class calculation to the same to have the property in white if it's different from the default value.This is continuation of #797 for the copy component to clipboard button where I fixed the serialization logic but didn't keep the filtering out default value logic.
That PR fixes that and also fixes applying the correct color to the property label, white means the property is defined and is different from the default value, otherwise it's gray.
Steps to reproduce the issue:
geometry="primitive: sphere; radius: 2"instead of the expectedgeometry="primitive: sphere"