From 79de1bcc7a249897c92a7dbec1ae8e2d6b8b016e Mon Sep 17 00:00:00 2001 From: DmitriiP-EPAM Date: Fri, 6 Dec 2024 17:52:59 +0300 Subject: [PATCH] =?UTF-8?q?#5497=20=E2=80=93=20Refactor=20(SnakeModeSideCh?= =?UTF-8?q?ainBondRenderer):=20Rename=20the=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PolymerBondRenderer/SnakeModePolymerBondRenderer.ts | 4 ++-- ...ctionBondRenderer.ts => SnakeModeSideChainBondRenderer.ts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/{SideChainConnectionBondRenderer.ts => SnakeModeSideChainBondRenderer.ts} (99%) diff --git a/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModePolymerBondRenderer.ts b/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModePolymerBondRenderer.ts index 583ed9e0b8..78d3f99785 100644 --- a/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModePolymerBondRenderer.ts +++ b/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModePolymerBondRenderer.ts @@ -1,7 +1,7 @@ import { editorEvents } from 'application/editor/editorEvents'; import { CoreEditor } from 'application/editor/internal'; import { Coordinates } from 'application/editor/shared/coordinates'; -import { SideChainConnectionBondRenderer } from 'application/render/renderers/PolymerBondRenderer/SideChainConnectionBondRenderer'; +import { SnakeModeSideChainBondRenderer } from 'application/render/renderers/PolymerBondRenderer/SnakeModeSideChainBondRenderer'; import { D3SvgElementSelection } from 'application/render/types'; import assert from 'assert'; import { Vec2 } from 'domain/entities'; @@ -153,7 +153,7 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer { cells: Cell[], ): D3SvgElementSelection { const sideChainConnectionBondRenderer = - new SideChainConnectionBondRenderer(); + new SnakeModeSideChainBondRenderer(); const { appendPathToElement, pathDAttributeValue, diff --git a/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SideChainConnectionBondRenderer.ts b/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModeSideChainBondRenderer.ts similarity index 99% rename from packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SideChainConnectionBondRenderer.ts rename to packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModeSideChainBondRenderer.ts index 4d6b06ef5b..b933ded331 100644 --- a/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SideChainConnectionBondRenderer.ts +++ b/packages/ketcher-core/src/application/render/renderers/PolymerBondRenderer/SnakeModeSideChainBondRenderer.ts @@ -68,7 +68,7 @@ const SMOOTH_CORNER_SIZE = 5; // TODO: Can be: // - a class with static methods. // - a set of functions. -export class SideChainConnectionBondRenderer { +export class SnakeModeSideChainBondRenderer { public appendSideConnectionBond({ cells, polymerBond,