Community
Participate
Working Groups
Build Identifier: Diagram serialization could be ligther is some sensible defaults were defined in graphiti.ecore In particular, I detect: AbstractStyle.transparency : "0.0" AbstractStyle.lineWidth "1" PictogramElement.visible "true" PictogramElement.active "true" I think this modification is backward compatible, no migration is necesary. Reproducible: Always
We had a closed look at the defaults just recently in the discussions regarding the Style concept (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352542). There we found that we would really have to struggle with compatibility in this area if we change the default values and we decided not to go for them. Because of this we have to accept (slightly) larger diagram files.
Not a big deal to me, but I wish to point out that here I'm not proposing to CHANGE defaults, but to SET defaults for attributes that didn't have them. For example, "transparency" (which, I guess, in more than 99.9% cases will have a 0.0 value) currently have no default. Perhaps I'm missing something, but I can't imagine any example in which this change would introduce some compatibility problem or some appearance change for already existing code and diagrams.