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

#3648 - Macro: Displaying unmodified nucleotide chains in sequence representation #4100

Merged
merged 21 commits into from
Feb 19, 2024

Conversation

rrodionov91
Copy link
Collaborator

@rrodionov91 rrodionov91 commented Feb 16, 2024

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

…fied-sequence

# Conflicts:
#	packages/ketcher-core/src/application/render/renderers/RenderersManager.ts
#	packages/ketcher-core/src/domain/entities/BaseMonomer.ts
#	packages/ketcher-core/src/domain/entities/DrawingEntitiesManager.ts
#	packages/ketcher-core/src/domain/entities/Phosphate.ts
#	packages/ketcher-core/src/domain/entities/Sugar.ts
#	packages/ketcher-react/src/components/Icon/utils/iconNameToIcon.ts
- fixed clear canvas in sequence mode
…fied-sequence

# Conflicts:
#	packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts
@rrodionov91 rrodionov91 merged commit 5966e36 into master Feb 19, 2024
5 checks passed
@rrodionov91 rrodionov91 deleted the 3648-display-unmodified-sequence branch February 19, 2024 14:09
const command = super.initialize();
const editor = CoreEditor.provideEditorInstance();

editor.drawingEntitiesManager.applyFlexLayoutMode();
Copy link
Contributor

@StarlaStarla StarlaStarla Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems these 2 lines of code will be executed twice since they are also included in reArrangeChains func.


currentChainStartPosition = new Vec2(
currentChainStartPosition.x,
currentChainStartPosition.y + 75 + 47 * Math.floor(chain.length / 31),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to extract CONSTs for these numbers?

.attr('stroke', 'black')
.attr('x1', secondMonomerX + 6)
.attr('x2', secondMonomerX + 6)
.attr('y1', mainLineY2 + 5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to extract constants for these numbers?

this.firstNodeInChainPosition.x +
indexInRow * 18 +
Math.floor(indexInRow / this.nthSeparationInRow) * 10,
this.firstNodeInChainPosition.y + 47 * rowIndex,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to extract constants for these numbers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants