@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.
- package/esm2020/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.mjs +4 -5
- package/esm2020/lib/viewers/rotation-persist/rotation-persist.directive.mjs +4 -7
- package/fesm2015/hmcts-media-viewer.mjs +6 -10
- package/fesm2015/hmcts-media-viewer.mjs.map +1 -1
- package/fesm2020/hmcts-media-viewer.mjs +6 -10
- package/fesm2020/hmcts-media-viewer.mjs.map +1 -1
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +1 -1
- package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
4537
|
-
|
|
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
|
-
|
|
6025
|
-
|
|
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();
|