Skip to content

Commit

Permalink
#5497 – Refactor (SnakeModeHydrogenBondRenderer): Specify the types
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiP-EPAM committed Dec 4, 2024
1 parent 557aab8 commit 6c4481c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ export class SnakeModeHydrogenBondRenderer extends BaseRenderer {
this.isMonomersOnSameHorizontalLine();
}

// TODO: Specify the types.
public appendBond(rootElement) {
public appendBond(
rootElement: D3SvgElementSelection<SVGGElement, void>,
): void {
const editor = CoreEditor.provideEditorInstance();
const matrix = editor.drawingEntitiesManager.canvasMatrix;
const cells = matrix?.polymerBondToCells.get(this.polymerBond);
Expand All @@ -132,8 +133,6 @@ export class SnakeModeHydrogenBondRenderer extends BaseRenderer {
} else {
this.appendBondGraph(rootElement);
}

return this.bodyElement;
}

// TODO: Specify the types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer {
this.isMonomersOnSameHorizontalLine();
}

// TODO: Specify the types.
public appendBond(rootElement) {
public appendBond(
rootElement: D3SvgElementSelection<SVGGElement, void>,
): void {
const editor = CoreEditor.provideEditorInstance();
const matrix = editor.drawingEntitiesManager.canvasMatrix;
const cells = matrix?.polymerBondToCells.get(this.polymerBond);
Expand All @@ -128,8 +129,6 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer {
} else {
this.appendBondGraph(rootElement);
}

return this.bodyElement;
}

// TODO: Specify the types.
Expand Down

0 comments on commit 6c4481c

Please sign in to comment.