From 39f46a31e84db6efa05953f1bcc6d66a80af35e8 Mon Sep 17 00:00:00 2001 From: Nikita Chistousov Date: Tue, 20 Aug 2024 15:37:31 +0200 Subject: [PATCH] =?UTF-8?q?#4884=20=E2=80=93=20Use=20deprecated=20polymer?= =?UTF-8?q?=20bond=20renderer=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/application/editor/tools/SelectRectangle.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/ketcher-core/src/application/editor/tools/SelectRectangle.ts b/packages/ketcher-core/src/application/editor/tools/SelectRectangle.ts index c66844ba1c..01300a74da 100644 --- a/packages/ketcher-core/src/application/editor/tools/SelectRectangle.ts +++ b/packages/ketcher-core/src/application/editor/tools/SelectRectangle.ts @@ -27,7 +27,7 @@ import { Nucleotide } from 'domain/entities/Nucleotide'; import { SequenceMode } from '../modes'; import { isMacOs } from 'react-device-detect'; import { EraserTool } from './Erase'; -import { PolymerBondRenderer } from 'application/render'; +import { DeprecatedFlexModeOrSnakeModePolymerBondRenderer } from 'application/render'; class SelectRectangle implements BaseTool { private brush; @@ -271,7 +271,8 @@ class SelectRectangle implements BaseTool { } public mouseOverPolymerBond(event) { - const renderer: PolymerBondRenderer = event.target.__data__; + const renderer: DeprecatedFlexModeOrSnakeModePolymerBondRenderer = + event.target.__data__; const modelChanges = this.editor.drawingEntitiesManager.showPolymerBondInformation( @@ -282,7 +283,8 @@ class SelectRectangle implements BaseTool { } public mouseLeavePolymerBond(event) { - const renderer: PolymerBondRenderer = event.target.__data__; + const renderer: DeprecatedFlexModeOrSnakeModePolymerBondRenderer = + event.target.__data__; if (!renderer.polymerBond) { return; }