@hmcts/media-viewer 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4532,10 +4532,9 @@ class MetadataLayerComponent {
4532
4532
  this.$subscriptions = this.store.pipe(select(getPages))
4533
4533
  .subscribe(pages => this.pages = Object.values(pages));
4534
4534
  this.annoPages$ = this.store.pipe(select(getPageEntities));
4535
- this.$subscriptions
4536
- .add(this.toolbarEvents.drawModeSubject.subscribe(drawMode => this.drawMode = drawMode))
4537
- .add(this.viewerEvents.textHighlight.subscribe(highlight => this.showContextToolbar(highlight)))
4538
- .add(this.viewerEvents.ctxToolbarCleared.subscribe(() => this.clearContextToolbar()));
4535
+ this.$subscriptions.add(this.toolbarEvents.drawModeSubject.subscribe(drawMode => this.drawMode = drawMode));
4536
+ this.$subscriptions.add(this.viewerEvents.textHighlight.subscribe(highlight => this.showContextToolbar(highlight)));
4537
+ this.$subscriptions.add(this.viewerEvents.ctxToolbarCleared.subscribe(() => this.clearContextToolbar()));
4539
4538
  }
4540
4539
  ngOnDestroy() {
4541
4540
  this.$subscriptions.unsubscribe();
@@ -6020,12 +6019,9 @@ class RotationPersistDirective {
6020
6019
  }
6021
6020
  ngOnInit() {
6022
6021
  this.$subscriptions = this.toolbarEvents.rotateSubject.subscribe(rotation => this.onRotate(rotation));
6023
- this.$subscriptions
6024
- .add(this.toolbarEvents.saveRotationSubject.subscribe(() => this.saveRotation()))
6025
- .add(this.store.pipe(select(getRotation))
6026
- .subscribe(rotation => this.savedRotation = rotation))
6027
- .add(this.store.pipe(select(getDocumentId))
6028
- .subscribe(documentId => this.documentId = documentId));
6022
+ this.$subscriptions.add(this.toolbarEvents.saveRotationSubject.subscribe(() => this.saveRotation()));
6023
+ this.$subscriptions.add(this.store.pipe(select(getRotation)).subscribe(rotation => this.savedRotation = rotation));
6024
+ this.$subscriptions.add(this.store.pipe(select(getDocumentId)).subscribe(documentId => this.documentId = documentId));
6029
6025
  }
6030
6026
  ngOnDestroy() {
6031
6027
  this.$subscriptions.unsubscribe();