Skip to content

Commit

Permalink
#3475 - correct rna preset configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayane Chilingaryan committed Nov 6, 2023
1 parent b5c13c6 commit 8d92d33
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/ketcher-core/src/domain/entities/BaseMonomer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AttachmentPointName, PolymerBond | null>
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8d92d33

Please sign in to comment.