Skip to content

Commit 44c5ff3

Browse files
Cleanup visualization when cell is cleared (#69)
1 parent 82bb44a commit 44c5ff3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/widget.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ abstract class BabylonBaseView extends DOMWidgetView {
4040
protected query_changed(): void {
4141
// TODO
4242
}
43+
44+
remove() {
45+
this.visualization?.destroy();
46+
super.remove();
47+
}
4348
}
4449

4550
export class BabylonPointCloudModel extends BabylonBaseModel {

0 commit comments

Comments
 (0)