File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -2503,14 +2503,11 @@ const GRAPHENE_MERGE_SEGMENTS_TOOL_ID = "grapheneMergeSegments";
2503
2503
const GRAPHENE_FIND_PATH_TOOL_ID = "grapheneFindPath" ;
2504
2504
2505
2505
class MulticutAnnotationLayerView extends AnnotationLayerView {
2506
- private _annotationStates : MergedAnnotationStates ;
2507
-
2508
2506
constructor (
2509
2507
public layer : SegmentationUserLayer ,
2510
2508
public displayState : AnnotationDisplayState ,
2511
2509
) {
2512
- super ( layer , displayState ) ;
2513
-
2510
+ super ( layer , displayState , new MergedAnnotationStates ( ) ) ;
2514
2511
const {
2515
2512
graphConnection : { value : graphConnection } ,
2516
2513
} = layer ;
@@ -2520,15 +2517,6 @@ class MulticutAnnotationLayerView extends AnnotationLayerView {
2520
2517
}
2521
2518
}
2522
2519
}
2523
-
2524
- get annotationStates ( ) {
2525
- if ( this . _annotationStates === undefined ) {
2526
- this . _annotationStates = this . registerDisposer (
2527
- new MergedAnnotationStates ( ) ,
2528
- ) ;
2529
- }
2530
- return this . _annotationStates ;
2531
- }
2532
2520
}
2533
2521
2534
2522
const addSelection = (
Original file line number Diff line number Diff line change @@ -323,10 +323,6 @@ export class AnnotationLayerView extends Tab {
323
323
private mutableControls = document . createElement ( "div" ) ;
324
324
private headerRow = document . createElement ( "div" ) ;
325
325
326
- get annotationStates ( ) {
327
- return this . layer . annotationStates ;
328
- }
329
-
330
326
private attachedAnnotationStates = new Map <
331
327
AnnotationLayerState ,
332
328
AnnotationLayerViewAttachedState
@@ -446,6 +442,7 @@ export class AnnotationLayerView extends Tab {
446
442
constructor (
447
443
public layer : Borrowed < UserLayerWithAnnotations > ,
448
444
public displayState : AnnotationDisplayState ,
445
+ protected readonly annotationStates : MergedAnnotationStates = layer . annotationStates ,
449
446
) {
450
447
super ( ) ;
451
448
this . element . classList . add ( "neuroglancer-annotation-layer-view" ) ;
You can’t perform that action at this time.
0 commit comments