Task #10352 (new)
Viewport 'view' & 'model' separation
|Reported by:||wmoore||Owned by:||wmoore|
As described by #10270, the current viewport UI code should be separated from the UI. This will enable (for example) multiple viewport UIs displaying the same data, or use of the server communication without any viewport (E.g. just rendering panel) etc.
- Duplicate the existing ome.viewport.js and ome.viewportImage.js so we have a reference of existing behaviour / code while we refactor.
- Create a test page that runs the 'old' viewport alongside the refactored 'new' viewport plugin. This will allow us to call all the same methods on both viewports and compare the UI as well as test that the models stay in sync (by comparing query strings generated from both)
- Create a new jQuery plugin that takes an instance of the viewport 'model' and builds a UI that keeps in sync with it.