knaw-huc / textannoviz

GNU General Public License v3.0
1 stars 1 forks source link

Add Mirador Redux Store observer to catch changes in Mirador #128

Open svandaalen opened 4 months ago

svandaalen commented 4 months ago

Inspiration:

Out of the box, Mirador does not support an observer pattern to detect changes happening in the application. A (hacky) way around this is to build our own observer in TAV that observes the Mirador Redux Store and checks whether the prev value of a part of Mirador is different from the curr value. Currently, we will use this custom observer to check whether the canvasId changes, which indicates that the user pressed the prev/next button in Mirador or jumped to an image through the gallery view. When this change has been detected, TAV will load in the new text and annotations.

svandaalen commented 4 months ago

Waiting on https://github.com/knaw-huc/broccoli/issues/60