Skip to content

Commit

Permalink
quick fix for tags breaking precomputed annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Oct 2, 2024
1 parent 8b8a9ea commit 97546d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/annotation/frontend_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import {
SliceViewChunkSource,
} from "#src/sliceview/frontend.js";
import { StatusMessage } from "#src/status.js";
import type { WatchableValue } from "#src/trackable_value.js";
import { WatchableValue } from "#src/trackable_value.js";
import type { Borrowed, Owned } from "#src/util/disposable.js";
import { ENDIANNESS, Endianness } from "#src/util/endian.js";
import * as matrix from "#src/util/matrix.js";
Expand Down Expand Up @@ -532,7 +532,7 @@ export class MultiscaleAnnotationSource
) {
super();
this.rank = options.rank;
this.properties.value = options.properties;
this.properties = new WatchableValue(options.properties);
this.annotationPropertySerializers = makeAnnotationPropertySerializers(
this.rank,
this.properties.value,
Expand Down
12 changes: 7 additions & 5 deletions src/layer/annotation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,13 @@ export class AnnotationUserLayer extends Base {
getter: () => new RenderingOptionsTab(this),
});
this.tabs.default = "annotations";
this.tabs.add("tags", {
label: "Tags",
order: 10,
getter: () => new TagsTab(this),
});
if (this.localAnnotations) {
this.tabs.add("tags", {
label: "Tags",
order: 10,
getter: () => new TagsTab(this),
});
}
}

syncTagTools = (tagIdentifiers: string[]) => {
Expand Down

0 comments on commit 97546d1

Please sign in to comment.