Skip to content

Commit

Permalink
#4405 - Macro: Switching to Sequence mode causes page freeze
Browse files Browse the repository at this point in the history
- refactored snake layout to work with ChainsCollection
  • Loading branch information
rrodionov91 committed May 13, 2024
1 parent bb5239a commit c327511
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 354 deletions.
10 changes: 10 additions & 0 deletions packages/ketcher-core/src/domain/entities/BaseMonomer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,14 @@ export abstract class BaseMonomer extends DrawingEntity {
public get isModification() {
return this.monomerItem.props.MonomerNaturalAnalogCode !== this.label;
}

public get sideConnections() {
const sideConnections: PolymerBond[] = [];
this.forEachBond((bond) => {
if (bond.isSideChainConnection) {
sideConnections.push(bond);
}
});
return sideConnections;
}
}
Loading

0 comments on commit c327511

Please sign in to comment.