Skip to content

Commit

Permalink
#6621 – Fix monomer snapping wiping monomer labels
Browse files Browse the repository at this point in the history
  • Loading branch information
svvald committed Mar 7, 2025
1 parent 97aaafc commit 4830a0c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export class TransientDrawingView {
}

private addView<P>(viewName, viewData: ViewData<P>) {
if (this.views.has(viewName)) {
this.removeView(viewName);
}

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
this.views.set(viewName, viewData);
Expand All @@ -52,6 +56,7 @@ export class TransientDrawingView {
params: bond,
topLayer: true,
onShow: () => {
console.log('onShow', bond.id);
bond.renderer?.setVisibility(false);
if (bond.firstMonomer.renderer) {
(
Expand All @@ -65,6 +70,7 @@ export class TransientDrawingView {
}
},
onHide: () => {
console.log('onHide', bond.id);
bond.renderer?.setVisibility(true);
if (bond.firstMonomer.renderer) {
(
Expand Down

0 comments on commit 4830a0c

Please sign in to comment.