From f5297789ba114e18ccb35462bf1d3a21670ae7a0 Mon Sep 17 00:00:00 2001 From: Sean Martin Date: Mon, 7 Oct 2024 16:10:58 +0200 Subject: [PATCH] temp: disabling some changes --- src/annotation/index.ts | 7 +++++++ src/annotation/renderlayer.ts | 4 +++- src/datasource/precomputed/backend.ts | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/annotation/index.ts b/src/annotation/index.ts index e18b66afc8..6cacc37bee 100644 --- a/src/annotation/index.ts +++ b/src/annotation/index.ts @@ -90,6 +90,13 @@ export const annotationTypes = [ // AnnotationType.POLYGON, ]; +export const oldAnnotationTypes = [ + AnnotationType.POINT, + AnnotationType.LINE, + AnnotationType.AXIS_ALIGNED_BOUNDING_BOX, + AnnotationType.ELLIPSOID, +]; + export interface AnnotationPropertySpecBase { identifier: string; description: string | undefined; diff --git a/src/annotation/renderlayer.ts b/src/annotation/renderlayer.ts index 836fa8dd13..dd99ebde1b 100644 --- a/src/annotation/renderlayer.ts +++ b/src/annotation/renderlayer.ts @@ -45,7 +45,7 @@ import type { import { AnnotationSerializer, AnnotationSource, - annotationTypes, + oldAnnotationTypes, formatAnnotationPropertyValue, } from "#src/annotation/index.js"; import type { @@ -139,6 +139,8 @@ import type { import type { SharedObject } from "#src/worker_rpc.js"; import { registerSharedObjectOwner } from "#src/worker_rpc.js"; +const annotationTypes = oldAnnotationTypes; + const tempMat = mat4.create(); function segmentationFilter( diff --git a/src/datasource/precomputed/backend.ts b/src/datasource/precomputed/backend.ts index 3178907329..72b466d7a8 100644 --- a/src/datasource/precomputed/backend.ts +++ b/src/datasource/precomputed/backend.ts @@ -28,7 +28,7 @@ import type { Annotation } from "#src/annotation/index.js"; import { AnnotationPropertySerializer, annotationTypeHandlers, - annotationTypes, + oldAnnotationTypes, } from "#src/annotation/index.js"; import { decodeGzip } from "#src/async_computation/decode_gzip_request.js"; import { requestAsyncComputation } from "#src/async_computation/request.js"; @@ -104,6 +104,8 @@ import { } from "#src/util/zorder.js"; import { registerSharedObject } from "#src/worker_rpc.js"; +const annotationTypes = oldAnnotationTypes; + // Set to true to validate the multiscale index. const DEBUG_MULTISCALE_INDEX = false;