Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

133 multi slice view #989

Merged
merged 54 commits into from
Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
45f45a9
Add opacity change event
ivmartel Aug 17, 2021
84c3573
Add loadId to load controller
ivmartel Aug 17, 2021
47fbcde
Add load try catch
ivmartel Aug 17, 2021
0f23a0b
Store multiple loaders, add first item flag, merge load functions
ivmartel Aug 18, 2021
9a413de
Separate div by id in getSize, add deprecated
ivmartel Aug 18, 2021
e208fa5
Update error message
ivmartel Aug 18, 2021
ff1bb52
Add stage class, use it in app, update layer group
ivmartel Aug 18, 2021
79a520e
Update test pages
ivmartel Aug 18, 2021
a2ed738
Update doc
ivmartel Aug 18, 2021
0b2f7a9
Use view config to setup stage
ivmartel Aug 19, 2021
57191a3
Merge branch develop
ivmartel Aug 26, 2021
136eebc
Allow to set orientation from view config
ivmartel Aug 26, 2021
a8c0fe3
Make tool retrieve layerGroup using event target (html element) id
ivmartel Aug 27, 2021
1444527
Fix layer group display to index method passing to toolbox
ivmartel Aug 27, 2021
c840b3b
Fix method call
ivmartel Aug 27, 2021
4e00a24
BREAKING: change the slice sort order, udpate iterator and tests
ivmartel Aug 30, 2021
d1ee1e8
Switch position change from window level to scroll tool
ivmartel Aug 30, 2021
8673e79
Add position and offset binders.
ivmartel Aug 30, 2021
1b7fb65
Update test viewer
ivmartel Aug 30, 2021
334b0c6
Move size check to array multiply
ivmartel Aug 31, 2021
74557fe
Add getOrientedArray3D function
ivmartel Aug 31, 2021
24649e2
Add missing event
ivmartel Aug 31, 2021
a96175c
Fix string extraction
ivmartel Aug 31, 2021
5aec013
Add getId method to layers
ivmartel Aug 31, 2021
d8ad46a
Add a method to get the scroll index
ivmartel Aug 31, 2021
e92c174
Make layerGroup store orientation matrices
ivmartel Aug 31, 2021
906180c
Store callbacks to allow removing listeners
ivmartel Aug 31, 2021
e4ff000
Add a method to get the current scroll position
ivmartel Aug 31, 2021
5801629
Remove unused method
ivmartel Aug 31, 2021
bdf4080
Make layer group handle 3d scale and offset, update tool, add helpers
ivmartel Aug 31, 2021
0d2096a
Remove zoom control
ivmartel Aug 31, 2021
ef7886d
BREAKING: only send one wl change event instead of two (center + width)
ivmartel Sep 1, 2021
b95e7de
Add window level binder
ivmartel Sep 1, 2021
28d60f6
Add layer id to render events
ivmartel Sep 1, 2021
e5d2072
Fix getonmouch return
ivmartel Sep 1, 2021
f92468c
Deorient fit rescale
ivmartel Sep 1, 2021
9b2fe0e
Align views in test viewer
ivmartel Sep 1, 2021
a01df51
Add reset layout button in demo viewer
ivmartel Sep 1, 2021
e7a757f
Fix lint
ivmartel Sep 1, 2021
650abb3
Make layer div search more generic
ivmartel Sep 1, 2021
392f600
Pass mouse event (and not konva event)
ivmartel Sep 1, 2021
ae77ef4
Fix errors (layerGroup passing) and lint
ivmartel Sep 1, 2021
410948d
Make code more robust
ivmartel Sep 1, 2021
5fd1e42
Revise layer fit in container: do not touch it, use it directly
ivmartel Sep 2, 2021
871b2cc
Protect for undefined orientation case
ivmartel Sep 2, 2021
cda51d2
More flexible demo viewer
ivmartel Sep 2, 2021
d0441dc
Avoid warning at each origin, calculate mean
ivmartel Sep 2, 2021
6af7a25
Add matrix tests
ivmartel Sep 2, 2021
8cde76e
Add tests for string <-> ids
ivmartel Sep 2, 2021
c25db41
Remove comment or console.log
ivmartel Sep 3, 2021
2f8914b
Add path tests
ivmartel Sep 3, 2021
6ae9fb0
Add tests for bucketQueue
ivmartel Sep 3, 2021
e0ac58a
Add geometry tests
ivmartel Sep 3, 2021
4a01406
Add slice iterator test, mutualise iter test data and function
ivmartel Sep 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions locales/de/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/en/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/es/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/fr/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/it/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/jp/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/ro/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/ru/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "WW: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WC: {v0}"},
{"value": "wlchange", "pos": "br", "format": "WW: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "Pos: {v0}"},
Expand Down
12 changes: 6 additions & 6 deletions locales/zh/overlays.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "窗位: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "窗宽: {v0}"},
{"value": "wlchange", "pos": "br", "format": "窗位: {v0}"},
{"value": "wlchange", "pos": "br", "format": "窗宽: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "位置: {v0}"},
Expand All @@ -26,8 +26,8 @@

{"tags": ["imageWidth", "imageHeight"], "pos": "bl", "format": "RES: {v0}x{v1}"},

{"value": "wlcenterchange", "pos": "br", "format": "窗位: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "窗宽: {v0}"},
{"value": "wlchange", "pos": "br", "format": "窗位: {v0}"},
{"value": "wlchange", "pos": "br", "format": "窗宽: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "位置: {v0}"},
Expand All @@ -49,8 +49,8 @@
{"tags": ["x00080020", "x00080030"], "pos": "tr", "format": "{v0} {v1}"},
{"tags": ["x00080060"], "pos": "tr"},

{"value": "wlcenterchange", "pos": "br", "format": "窗位: {v0}"},
{"value": "wlwidthchange", "pos": "br", "format": "窗宽: {v0}"},
{"value": "wlchange", "pos": "br", "format": "窗位: {v0}"},
{"value": "wlchange", "pos": "br", "format": "窗宽: {v1}"},
{"value": "zoomchange", "pos": "br", "format": "Z: {v0}", "precision": "3"},
{"value": "offsetchange", "pos": "br", "format": "Off: {v0},{v1}", "precision": "round"},
{"value": "positionchange", "pos": "br", "format": "位置: {v0}"},
Expand Down
Binary file removed resources/doc/img/architecture-overview.png
Binary file not shown.
Binary file added resources/doc/img/layers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions resources/doc/tutorials/architecture.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
This page lists details about the dwv architecture.

## Overview
![archi](architecture-overview.png)
## Layers
![layers](layers.png)

- `App`: main class
- `LoadController`: handles I/O, the first layer handles the source being
`File`, `Url`, `Memory` and the second one handles data type, `Dicom`, `Zip`
`rawImage`, `rawVideo` and `json`
- `LayerGroup`: a group of layers associated to an HTML div,
- `LayerGroup`: a group of layers associated to an HTML element,
for now of type `View` and `Draw`. Layers follow the [model-view-controller](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) (MVC) design.
- `ToolboxController`: handles tools and dispatches interaction events to the selected
one
- `Stage`: the class that handles a list of LayerGroups for optional synchronisation

## Data load
Data can come from 3 types of source: url (via a [HttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)), file (via a [FileReader](https://developer.mozilla.org/en-US/docs/Web/API/FileReader)) or directly as a memory buffer. The 3 'meta' loaders responsible for each source are: [UrlsLoader](./dwv.io.UrlsLoader.html), [FilesLoader](./dwv.io.FilesLoader.html) and [MemoryLoader](./dwv.io.MemoryLoader.html).
Expand Down
Loading