Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented May 7, 2025

This PR prepares the release for version 0.3.1-alpha with version update and code style fixes:\n\n- Fixed header code style\n- Sorted usings\n- Removed trailing whitespace\n- Updated version in Solution.props\n- Updated changelog with closed-solved issues\n- Updated README badges\n\nMILESTONE DESCRIPTION:\n

marc-romu and others added 30 commits April 29, 2025 15:31
…f components, ensure connected components stay together and use barycenter heuristic algorithm for initial layer ordering
… more (#193)

## Description

This PR is a huge change in the Tidy Up component. The algorithm sorting
and organizing components has been totally rewritten to handle more
cases:
- Now returns original pivots relative to the most top-left component to
ensure relative positioning
- Uses a more human-like layout with column widths based on actual
component widths
  - Uses horizontal margin of 50 and vertical spacing of 80
- Centers Params from their actual center instead of the top-left
position
- Improved by detecting islands of components, ensure connected
components stay together, and use barycenter heuristic algorithm for
initial layer ordering
  - Minimizes connection length
  - Aligns parents with children

Additionally, this PR also includes:
- New `SelectingComponentBase` for components that need the button to
select other components.
- New `GHJsonAnalyzer` and `GHJsonFixer` classes for analyzing and
fixing GHJSON formats.
  - Reorganization of JSON models for clearer structure.
- Migrated the `GhPut` tool from the `GhPutComponent` to the
`GhPutTools` class, using the `AIToolManager`.
- `DeserializeJSON` now fixes invalid InstanceGuids in Grasshopper JSON
documents when deserializing.
  - Improved `MoveInstance`:
- Added a nice animation so that components move smoothly to their new
position.
    - Skip movement if initial and target positions are the same.

## Breaking Changes

None reported.

## Testing Done

RH8.18 on windows.

## Checklist

- [ ] This PR is focused on a single feature or bug fix
- [x] Version in Solution.props was updated, if necessary, and follows
semantic versioning
- [x] CHANGELOG.md has been updated
- [x] PR title follows [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) format
- [x] PR description follows [Pull Request Description
Template](#pull-request-description-template)
This PR updates the version badge in the README.md to match the current
version in Solution.props.

This is an automated PR created by the Update Version Badge workflow.
… fixes (#196)

This PR prepares the release for version 0.3.1-alpha with version update
and code style fixes:\n\n- Fixed header code style\n- Sorted usings\n-
Removed trailing whitespace\n- Updated version in Solution.props\n-
Updated changelog with closed-solved issues\n- Updated README
badges\n\nMILESTONE DESCRIPTION:\n
@github-actions github-actions bot requested a review from marc-romu as a code owner May 7, 2025 06:22
@marc-romu marc-romu merged commit bd0f377 into main May 7, 2025
10 checks passed
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