diff --git a/src/atlasComponents/userAnnotations/tools/delete.ts b/src/atlasComponents/userAnnotations/tools/delete.ts index 63a73c57816ffc9a2e5dce69459bbe4f74bf681b..dc817a65012bd3dbe5409fb8656d5b9d5bcb9990 100644 --- a/src/atlasComponents/userAnnotations/tools/delete.ts +++ b/src/atlasComponents/userAnnotations/tools/delete.ts @@ -33,8 +33,8 @@ export class ToolDelete extends AbsToolClass<Point> implements IAnnotationTools, } init(){ if (this.callback) { - const obs$ = this.callback({ type: 'requestManAnnStreeam' }) - if (!obs$) throw new Error(`Error requestManAnnStreeam`) + const obs$ = this.callback({ type: 'requestManAnnStream' }) + if (!obs$) throw new Error(`Error requestManAnnStream`) const toolDeselect$ = this.toolSelected$.pipe( filter(flag => !flag) diff --git a/src/atlasComponents/userAnnotations/tools/select.ts b/src/atlasComponents/userAnnotations/tools/select.ts index b5f614c39809580d519aef08e3270a9425536c3d..38a0b11ba39ec9df2ddbb20b875f01cd48575257 100644 --- a/src/atlasComponents/userAnnotations/tools/select.ts +++ b/src/atlasComponents/userAnnotations/tools/select.ts @@ -34,8 +34,8 @@ export class ToolSelect extends AbsToolClass<Point> implements IAnnotationTools, private allManAnnotations: IAnnotationGeometry[] = [] init(){ if (this.callback) { - const obs$ = this.callback({ type: 'requestManAnnStreeam' }) - if (!obs$) throw new Error(`Error requestManAnnStreeam`) + const obs$ = this.callback({ type: 'requestManAnnStream' }) + if (!obs$) throw new Error(`Error requestManAnnStream`) this.subs.push( /** * Get stream of all managed annotations diff --git a/src/atlasComponents/userAnnotations/tools/service.ts b/src/atlasComponents/userAnnotations/tools/service.ts index a9c800005d2ae8120f853b6db2d777fb0dc92ef1..292c9394151bc786dec8889e6e95b8c8cd9ff4cf 100644 --- a/src/atlasComponents/userAnnotations/tools/service.ts +++ b/src/atlasComponents/userAnnotations/tools/service.ts @@ -119,7 +119,7 @@ export class ModularUserAnnotationToolService implements OnDestroy{ this.deselectTools() return } - case 'requestManAnnStreeam': { + case 'requestManAnnStream': { return this.managedAnnotations$ } } diff --git a/src/atlasComponents/userAnnotations/tools/type.ts b/src/atlasComponents/userAnnotations/tools/type.ts index ce9f776c15c841ea01cd0b767a0cd93b43c12cb7..90ed9c48e461bb0271f76a6ac4feef2984f2aada 100644 --- a/src/atlasComponents/userAnnotations/tools/type.ts +++ b/src/atlasComponents/userAnnotations/tools/type.ts @@ -161,7 +161,7 @@ export type TCallback = { callArg: {} returns: void } - requestManAnnStreeam: { + requestManAnnStream: { callArg: {} returns: Observable<IAnnotationGeometry[]> }