Skip to content

Commit

Permalink
#5679 - Unable to establish connection between micro structure and ma…
Browse files Browse the repository at this point in the history
…cro ones (#5757) (#5766)
  • Loading branch information
rrodionov91 authored and Guch1g0v committed Oct 17, 2024
1 parent 0e62117 commit 75416b5
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class FlexModePolymerBondRenderer extends BaseRenderer {
.attr('y1', this.scaledPosition.startPosition.y)
.attr('x2', this.scaledPosition.endPosition.x)
.attr('y2', this.scaledPosition.endPosition.y)
.attr('pointer-events', 'stroke');
.attr('pointer-events', this.polymerBond.finished ? 'stroke' : 'none');

return this.bodyElement;
}
Expand All @@ -118,10 +118,10 @@ export class FlexModePolymerBondRenderer extends BaseRenderer {
this.editorEvents.mouseLeavePolymerBond.dispatch(event);
this.editorEvents.mouseLeaveDrawingEntity.dispatch(event);
})
.attr('pointer-events', 'stroke') as never as D3SvgElementSelection<
SVGGElement,
void
>;
.attr(
'pointer-events',
this.polymerBond.finished ? 'stroke' : 'none',
) as never as D3SvgElementSelection<SVGGElement, void>;
}

public show(): void {
Expand Down Expand Up @@ -232,7 +232,9 @@ export class FlexModePolymerBondRenderer extends BaseRenderer {
assert(this.bodyElement);
assert(this.hoverAreaElement);

this.bodyElement.attr('stroke', '#333333').attr('pointer-events', 'stroke');
this.bodyElement
.attr('stroke', '#333333')
.attr('pointer-events', this.polymerBond.finished ? 'stroke' : 'none');

if (this.polymerBond.selected && this.selectionElement) {
this.selectionElement.attr('stroke', '#57FF8F');
Expand Down

0 comments on commit 75416b5

Please sign in to comment.