[Feature] Bring the HTML report generator to parity with uml4net#112
Merged
Conversation
Add Microsoft.Msagl and Svg package references and the ECoreNetto.Reporting.Drawing renderers (inheritance + association) that produce self-contained SVG, and register them for DI in the Tools host.
… for parity Add stable anchor slugs, constraint/container/descendant queries and ConstraintInfo; new Anchor/Parameter/Class/IEnumerable helpers and id/opposite helpers; split the payload into primitive types, other data types and interfaces.
…and custom HTML Render operations, feature-flag chips, attribute/reference split, specializations/containers, OCL rules, collapsible sections with expand/collapse-all, embedded inheritance and association SVG with download, a custom-HTML injection point and stable anchors; clean up dead CSS.
…extensions Add a feature-rich synthetic ecore asset and tests for the new helpers, extensions and diagram renderers; extend the HTML report fixtures with feature, custom-HTML, overwrite and Open Graph assertions. fixes #91
Use a static Regex with a one-second match timeout instead of the static Regex.Replace helper to guard against pathological input, addressing the SonarCloud DoS hotspot.
Contributor
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Summary
Brings the EcoreNetto HTML report generator to parity with uml4net (fixes #91). The report is still a single self-contained
.htmlfile, now rendering substantially richer content driven from the existing Ecore model.What is delivered
{ordered},{unique},{id},{readonly},{transient},{volatile},{unsettable},{derived},{composite}, and{opposite: <link>}.EObject.Identifier..rectangle-list, mid-stylesheet@charset, FontAwesome and IE6/7 hacks); a real page footer.New dependencies
Microsoft.Msagl1.1.6 (graph layout)Svg3.4.7 (SVG output)Out of scope
UML-only concepts that do not map to Ecore are intentionally excluded: visibility, stereotypes, and redefinition/subsetting.
Testing
dotnet test EcoreNetto.sln): 325 tests.TestData/report-features.ecoreplus unit tests for the new helpers, extensions and diagram renderers, and extended HTML report fixtures (feature rendering, custom HTML, overwrite, Open Graph, Capella at scale).