diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-helm.spec.ts-snapshots/Import-incorrect-HELM-sequence-40-Probability-is-greater-than-100-PEPTIDE-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-helm.spec.ts-snapshots/Import-incorrect-HELM-sequence-40-Probability-is-greater-than-100-PEPTIDE-1-chromium-linux.png index 55188c8153..db8bfd33b2 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-helm.spec.ts-snapshots/Import-incorrect-HELM-sequence-40-Probability-is-greater-than-100-PEPTIDE-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-helm.spec.ts-snapshots/Import-incorrect-HELM-sequence-40-Probability-is-greater-than-100-PEPTIDE-1-chromium-linux.png differ diff --git a/packages/ketcher-core/src/application/render/renderers/AmbiguousMonomerRenderer.ts b/packages/ketcher-core/src/application/render/renderers/AmbiguousMonomerRenderer.ts index ac24161941..57b8ab48f2 100644 --- a/packages/ketcher-core/src/application/render/renderers/AmbiguousMonomerRenderer.ts +++ b/packages/ketcher-core/src/application/render/renderers/AmbiguousMonomerRenderer.ts @@ -8,8 +8,7 @@ import { AttachmentPointName } from 'domain/types'; import { PreviewAttachmentPoint } from 'domain/PreviewAttachmentPoint'; import { UsageInMacromolecule } from 'application/render'; import { D3SvgElementSelection } from 'application/render/types'; - -const NUMBER_OF_MONOMERS_CIRCLE_Y_OFFSET = 7; +import { KetMonomerClass } from 'application/formatters'; type PreviewAttachmentPointParams = { canvas: D3SvgElementSelection; @@ -86,7 +85,7 @@ export class AmbiguousMonomerRenderer extends BaseMonomerRenderer { }, ${ this.center.y - this.scaledMonomerPosition.y + - NUMBER_OF_MONOMERS_CIRCLE_Y_OFFSET + (this.monomer.monomerClass === KetMonomerClass.Base ? 7 : 8) })`, ) .attr('pointer-events', 'none');