Skip to content

Commit

Permalink
Backmerge: #5453 - Circle with monomer number should be few pixels do…
Browse files Browse the repository at this point in the history
…wn (#5487)
  • Loading branch information
rrodionov91 authored Sep 11, 2024
1 parent 82a7d00 commit 3b075c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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<SVGSVGElement, void>;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3b075c5

Please sign in to comment.