Skip to content

Conversation

@webdevred
Copy link
Owner

@webdevred webdevred commented Sep 2, 2025

  • Updates sorting, renaming, and vertex forest construction to operate on directly CommentGroups.
  • Handles comments and global metas more consistently across vertex trees.
  • Reuses MetaMaps across CommentGroups to optimize memory usage.
  • Splits large module into VertexExtraction and Transformation for clearer structure.
  • Preserves existing vertex coordinates and behavior; no functional changes.
  • Add support for multiple groups of same types with different prefixes

Branch called new_transformation2 to celebrate the joy when new_transformation was merged into master after the summer.

@webdevred webdevred force-pushed the new_transformation2 branch 10 times, most recently from 7a8f709 to f6c32b9 Compare September 3, 2025 14:59
- Removed the VertexTreeEntry type entirely.
- Updated VertexTree to store comments and comment groups directly (tComments, tCommentGroups).
- Refactored transformation functions to work with CommentGroup directly instead of VertexTreeEntry.
- Improved handling of comments and their association with vertices.
- Removed legacy tMetaNodes and simplified meta handling in VertexTree.
- Structural refactor that also improves comment processing.
- Renamed fields in `AnnotatedVertex`:
  * cComments -> aComments
  * cVertex   -> aVertex
  * cMeta     -> aMeta
- Updated all references in:
  * `Transformation.hs`
  * `VertexExtraction.hs`
@webdevred webdevred merged commit 6a87c93 into master Sep 6, 2025
13 checks passed
@webdevred webdevred deleted the new_transformation2 branch September 6, 2025 07:55
This was referenced Oct 2, 2025
webdevred added a commit that referenced this pull request Oct 5, 2025
Updated examle files to showcase how the recent changes to Transformation code affect jbeam. The major changes to transformation code are in #69

The changes to transformation which are related to this new example files are the following:

- Transformation reimplemenation: before errors were handled less safely and meta groups interrupting vertex groups was not supported #2
- Transformation refactoring: split Transformation into different files and added improved how comments and metadata is handled when moving vertices #41
- Support vertex detection: implemented detection of support vertices and automatically moving them to their own tree  #52
- Associate comments without newline before with prior node #56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants