Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Split logic of SnakeModePolymerBondRenderer by several classes #5497

Open
DmitriiP-EPAM opened this issue Sep 11, 2024 · 1 comment · Fixed by #5498 or #6819 · May be fixed by #6033 or #6756
Open

Refactor: Split logic of SnakeModePolymerBondRenderer by several classes #5497

DmitriiP-EPAM opened this issue Sep 11, 2024 · 1 comment · Fixed by #5498 or #6819 · May be fixed by #6033 or #6756
Assignees
Labels
refactor Code refactoring, without changing the functionality technical debt

Comments

@DmitriiP-EPAM
Copy link
Collaborator

DmitriiP-EPAM commented Sep 11, 2024

Create:

  • SnakeModeBackboneBondRenderer (black “snake” line)
  • SnakeModeSideChainBondRenderer (blue “snake” line)
  • SnakeModeRNABaseAndSugarBondRenderer (black straight line)

Next step after #5128

@DmitriiP-EPAM DmitriiP-EPAM self-assigned this Sep 11, 2024
@DmitriiP-EPAM DmitriiP-EPAM moved this from To do to In progress in Technical Debt Sep 11, 2024
DmitriiP-EPAM added a commit that referenced this issue Sep 12, 2024
DmitriiP-EPAM added a commit that referenced this issue Sep 12, 2024
…, refactor the calculation of `endOfPathPart`
DmitriiP-EPAM added a commit that referenced this issue Sep 13, 2024
@DmitriiP-EPAM DmitriiP-EPAM moved this from In progress to In review in Technical Debt Sep 19, 2024
rrodionov91 pushed a commit that referenced this issue Oct 10, 2024
…ondRenderer` (#5498)

* #5497 – Refactor (Connection.ts): Specify the types

* #5497 – Refactor (Connection.ts): Rename `xOffset`

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Specify the types

* #5497 – Refactor (Connection.ts): Specify the types (amend)

* Revert "#5497 – Refactor (Connection.ts): Rename `xOffset`"

This reverts commit 33540e3.

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Specify the types, refactor the calculation of `endOfPathPart`

* #5497 – Refactor (CanvasMatrix.ts): Specify the types

* #5497 – Refactor (CanvasMatrix.ts): Use `new Connection(6)`

* #5497 – Refactor (Connection.ts): Rename `xOffset`

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Change `FIXME` text

* #5497 – Refactor (Connection.ts): Rename `ConnectionDirectionInDegrees`, `ConnectionDirectionOfLastCell`
@github-project-automation github-project-automation bot moved this from In review to Done in Technical Debt Oct 10, 2024
rrodionov91 pushed a commit that referenced this issue Oct 13, 2024
…ondRenderer` (#5498)

* #5497 – Refactor (Connection.ts): Specify the types

* #5497 – Refactor (Connection.ts): Rename `xOffset`

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Specify the types

* #5497 – Refactor (Connection.ts): Specify the types (amend)

* Revert "#5497 – Refactor (Connection.ts): Rename `xOffset`"

This reverts commit 33540e3.

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Specify the types, refactor the calculation of `endOfPathPart`

* #5497 – Refactor (CanvasMatrix.ts): Specify the types

* #5497 – Refactor (CanvasMatrix.ts): Use `new Connection(6)`

* #5497 – Refactor (Connection.ts): Rename `xOffset`

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Change `FIXME` text

* #5497 – Refactor (Connection.ts): Rename `ConnectionDirectionInDegrees`, `ConnectionDirectionOfLastCell`
Guch1g0v pushed a commit that referenced this issue Oct 17, 2024
…ondRenderer` (#5498)

* #5497 – Refactor (Connection.ts): Specify the types

* #5497 – Refactor (Connection.ts): Rename `xOffset`

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Specify the types

* #5497 – Refactor (Connection.ts): Specify the types (amend)

* Revert "#5497 – Refactor (Connection.ts): Rename `xOffset`"

This reverts commit 33540e3.

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Specify the types, refactor the calculation of `endOfPathPart`

* #5497 – Refactor (CanvasMatrix.ts): Specify the types

* #5497 – Refactor (CanvasMatrix.ts): Use `new Connection(6)`

* #5497 – Refactor (Connection.ts): Rename `xOffset`

* #5497 – Refactor (SnakeModePolymerBondRenderer.ts): Change `FIXME` text

* #5497 – Refactor (Connection.ts): Rename `ConnectionDirectionInDegrees`, `ConnectionDirectionOfLastCell`
@AlexeyGirin
Copy link
Collaborator

No testing required

DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
…eneratePathPartForCellsWhichAreOnSameRow(1)`
DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
…eneratePathPartForLastCellIfConnectionIsNotStraightVertical(1)`
DmitriiP-EPAM added a commit that referenced this issue Mar 25, 2025
…xtractStartAndEndPositionsFromScaledPosition(1)`
DmitriiP-EPAM added a commit that referenced this issue Apr 2, 2025
DmitriiP-EPAM added a commit that referenced this issue Apr 2, 2025
DmitriiP-EPAM added a commit that referenced this issue Apr 2, 2025
DmitriiP-EPAM added a commit that referenced this issue Apr 2, 2025
DmitriiP-EPAM added a commit that referenced this issue Apr 3, 2025
rrodionov91 pushed a commit that referenced this issue Apr 3, 2025
…athDAttributeUtil` (#6819)

* #5497 – Refactor (types.ts): Rename `Datum`

* #5497 – Refactor (SnakeModePolymerBondRenderer / helpers.ts): Refactor `generateBend(4)`

* #5497 – Docs (BaseRenderer.ts): Add the comment

* #5497 – Docs (SnakeModePolymerBondRenderer): Change the comment

* #5497 – Refactor (SnakeModePolymerBondRenderer): Rename `pathDAttributeValue`

* #5497 – Refactor (SnakeModePolymerBondRenderer): Rename `horizontal`

* #5497 – Refactor (SnakeModePolymerBondRenderer): Reorganize `drawPartOfSideConnection(1)`

* #5497 – Refactor (helpers.ts): Shorten `generateBend(4)`

* #5497 – Refactor (SnakeModePolymerBondRenderer): Create and use `SVGPathDAttributeUtil`

* #5497 – Refactor (PolymerBondRenderer): Create and use `PolymerBondRendererStartAndEndPositions`

* #5497 – Refactor (helpers): Create and use `SVGPathDAttributeUtil.generateQuadraticRelativeCurve(4)`

* #5497 – Refactor, Bugfix (SVGPathDAttributeUtil): Delete the space in `generateQuadraticRelativeCurve(4)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment