Skip to content

Commit

Permalink
#4884 – Use deprecated polymer bond renderer type
Browse files Browse the repository at this point in the history
  • Loading branch information
svvald committed Aug 20, 2024
1 parent 5440915 commit fa2051f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Nucleotide } from 'domain/entities/Nucleotide';
import { SequenceMode } from '../modes';
import { isMacOs } from 'react-device-detect';
import { EraserTool } from './Erase';
import { PolymerBondRenderer } from 'application/render';
import { DeprecatedFlexModeOrSnakeModePolymerBondRenderer } from 'application/render';

class SelectRectangle implements BaseTool {
private brush;
Expand Down Expand Up @@ -271,7 +271,8 @@ class SelectRectangle implements BaseTool {
}

public mouseOverPolymerBond(event) {
const renderer: PolymerBondRenderer = event.target.__data__;
const renderer: DeprecatedFlexModeOrSnakeModePolymerBondRenderer =
event.target.__data__;

const modelChanges =
this.editor.drawingEntitiesManager.showPolymerBondInformation(
Expand All @@ -282,7 +283,8 @@ class SelectRectangle implements BaseTool {
}

public mouseLeavePolymerBond(event) {
const renderer: PolymerBondRenderer = event.target.__data__;
const renderer: DeprecatedFlexModeOrSnakeModePolymerBondRenderer =
event.target.__data__;
if (!renderer.polymerBond) {
return;
}
Expand Down

0 comments on commit fa2051f

Please sign in to comment.