Commit 868c089
committed
feat: Integrate OpenSeadragon with scalebar functionality
- Added OpenSeadragon library to the project dependencies.
- Implemented a new scalebar feature for the OpenSeadragon viewer to display physical dimensions.
- Enhanced the viewer setup to fetch microns-per-pixel (MPP) from DZI files or URL parameters.
- Created a scalebar extension to manage the display and updates of the scalebar in the viewer.
- Added viewport information display to show dimensions in physical units or pixels.
- Refactored existing image viewer code to accommodate the new features and improve error handling.
- Introduced TypeScript definitions for OpenSeadragon to enhance type safety.1 parent 5d99ed7 commit 868c089
File tree
12 files changed
+1746
-295
lines changed- label_studio/core
- static/js
- web
- apps/labelstudio/src/app
- libs/editor/src
- components/ImageView
- lib
- tags/object/Image
- types
12 files changed
+1746
-295
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
| |||
23 | 35 | | |
24 | 36 | | |
25 | 37 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
31 | 49 | | |
32 | 50 | | |
33 | 51 | | |
| |||
63 | 81 | | |
64 | 82 | | |
65 | 83 | | |
66 | | - | |
67 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
68 | 112 | | |
69 | 113 | | |
70 | 114 | | |
| |||
0 commit comments