From 8d92d33268c4392ca576cd5517547ddd9a840821 Mon Sep 17 00:00:00 2001 From: Gayane Chilingaryan Date: Mon, 6 Nov 2023 14:13:16 +0400 Subject: [PATCH] #3475 - correct rna preset configs --- .../ketcher-core/src/domain/entities/BaseMonomer.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/ketcher-core/src/domain/entities/BaseMonomer.ts b/packages/ketcher-core/src/domain/entities/BaseMonomer.ts index c29da004fa..3ff0caae11 100644 --- a/packages/ketcher-core/src/domain/entities/BaseMonomer.ts +++ b/packages/ketcher-core/src/domain/entities/BaseMonomer.ts @@ -6,7 +6,7 @@ import { BaseMonomerRenderer } from 'application/render/renderers/BaseMonomerRen import { BaseRenderer } from 'application/render/renderers/BaseRenderer'; import { convertAttachmentPointNumberToLabel } from 'domain/helpers/attachmentPointCalculations'; -export class BaseMonomer extends DrawingEntity { +export abstract class BaseMonomer extends DrawingEntity { public renderer?: BaseMonomerRenderer = undefined; public attachmentPointsToBonds: Partial< Record @@ -66,13 +66,9 @@ export class BaseMonomer extends DrawingEntity { return undefined; } - public getValidSourcePoint(monomer: BaseMonomer): string { - throw new Error('Method is not implemented'); - } + public abstract getValidSourcePoint(monomer: BaseMonomer): string; - public getValidTargetPoint(monomer: BaseMonomer): string { - throw new Error('Method is not implemented'); - } + public abstract getValidTargetPoint(monomer: BaseMonomer): string; public getPotentialAttachmentPointByBond(bond: PolymerBond) { for (const attachmentPointName in this.potentialAttachmentPointsToBonds) {