Skip to content

Commit

Permalink
#5497 – Refactor (SnakeModePolymerBondRenderer): Specify the type
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiP-EPAM committed Dec 6, 2024
1 parent 79de1bc commit bba5bcd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,6 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer {
this.drawSelection();
}

private get isSideConnectionBondDrawn() {
return this.polymerBond.isSideChainConnection && this.path;
}

public drawSelection(): void {
if (this.polymerBond.selected) {
this.selectionElement?.remove();
Expand Down Expand Up @@ -795,4 +791,8 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer {
this.editorEvents.mouseLeaveMonomer.dispatch();
}
}

private get isSideConnectionBondDrawn(): boolean {
return this.polymerBond.isSideChainConnection && !!this.path;
}
}

0 comments on commit bba5bcd

Please sign in to comment.