-
Notifications
You must be signed in to change notification settings - Fork 186
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
Conversation
…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
const command = super.initialize(); | ||
const editor = CoreEditor.provideEditorInstance(); | ||
|
||
editor.drawingEntitiesManager.applyFlexLayoutMode(); |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Check list
#1234 – issue name