From 3f734be922526f5ac2da15eac2e345d189826ddd Mon Sep 17 00:00:00 2001 From: Chris Jordan Date: Thu, 4 Apr 2024 13:10:50 -0400 Subject: [PATCH] debugging chunk position --- src/annotation/frontend_source.ts | 16 +++++++++++----- src/ui/annotations.ts | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/annotation/frontend_source.ts b/src/annotation/frontend_source.ts index 80aede9a2..82f16aa38 100644 --- a/src/annotation/frontend_source.ts +++ b/src/annotation/frontend_source.ts @@ -217,7 +217,7 @@ export class AnnotationGeometryChunkSource extends SliceViewChunkSource< addChunk(key: string, chunk: AnnotationGeometryChunk) { super.addChunk(key, chunk); - // console.log("add chunk", key); + console.log("addChunk", key); // TODO: process local deletions } @@ -638,9 +638,15 @@ export class MultiscaleAnnotationSource const chunk = chunks.get(tempChunk.join()); if (chunk !== undefined) { console.log( - "we got a chunk", - chunk.chunkGridPosition, - source.spec.chunkDataSize, + "chunk exists", + tempChunk.join(), + 'size', + source.spec.chunkDataSize.toString(), + ); + } else { + console.log( + "no chunk for key", + tempChunk.join(), ); } } @@ -732,7 +738,7 @@ export class MultiscaleAnnotationSource // currently not working well because the chunk calculation is off so we end up using a low // level chunk const chunk = source.chunks.get(sortChunk.join(",")); - console.log("checking for chunk", sortChunk.join(",")); + // console.log("checking for chunk", sortChunk.join(",")); if (chunk) { const { data } = chunk; if (data === undefined) continue; diff --git a/src/ui/annotations.ts b/src/ui/annotations.ts index 2b436eeed..b9573a2c3 100644 --- a/src/ui/annotations.ts +++ b/src/ui/annotations.ts @@ -349,7 +349,7 @@ export class AnnotationLayerView extends Tab { refCounted.registerDisposer( source.chunkManager.chunkQueueManager.visibleChunksChanged.add( debounce(() => { - console.log("calling force update view!"); + // console.log("calling force update view!"); this.forceUpdateView(); }, 1000), ),