From 6ad1446f4c07b721af2adba4063788b26e1dbe06 Mon Sep 17 00:00:00 2001 From: "MSI\\birdeggb2777" Date: Wed, 28 Dec 2022 23:22:39 +0800 Subject: [PATCH 01/25] Code Refactoring --- bluelight/data/plugin.json | 10 + bluelight/html/start.html | 267 +-- bluelight/image/icon/title/bluelight.png | Bin 0 -> 107492 bytes bluelight/scripts/common.js | 880 +------ bluelight/scripts/eventmanager.js | 666 +----- bluelight/scripts/html.js | 252 +- bluelight/scripts/label.js | 79 +- bluelight/scripts/mark.js | 577 +++++ bluelight/scripts/newscript/angle.js | 8 +- bluelight/scripts/newscript/measure.js | 8 +- bluelight/scripts/newscript/mousetool.js | 199 +- bluelight/scripts/newscript/rotate.js | 23 +- bluelight/scripts/newscript/scroll.js | 26 +- bluelight/scripts/newscript/windowlevel.js | 11 +- bluelight/scripts/newscript/zoom.js | 8 +- bluelight/scripts/onload.js | 8 - bluelight/scripts/play_video.js | 8 +- .../scripts/plugin/graphic_annotation.js | 285 ++- bluelight/scripts/{ => plugin}/mpr.js | 492 +++- bluelight/scripts/plugin/plugin.js | 53 + bluelight/scripts/plugin/rtss.js | 248 +- bluelight/scripts/plugin/seg.js | 195 +- bluelight/scripts/plugin/table.js | 141 ++ bluelight/scripts/plugin/vr.js | 2053 +++++++++++++++++ bluelight/scripts/plugin/xml_format.js | 229 +- bluelight/scripts/toolfunction.js | 352 +-- bluelight/scripts/variable.js | 33 +- bluelight/scripts/viewer.js | 505 ++-- bluelight/scripts/vr.js | 872 ------- 29 files changed, 4543 insertions(+), 3945 deletions(-) create mode 100644 bluelight/data/plugin.json create mode 100644 bluelight/image/icon/title/bluelight.png create mode 100644 bluelight/scripts/mark.js rename bluelight/scripts/{ => plugin}/mpr.js (62%) create mode 100644 bluelight/scripts/plugin/plugin.js create mode 100644 bluelight/scripts/plugin/table.js create mode 100644 bluelight/scripts/plugin/vr.js delete mode 100644 bluelight/scripts/vr.js diff --git a/bluelight/data/plugin.json b/bluelight/data/plugin.json new file mode 100644 index 0000000..4f9f9bd --- /dev/null +++ b/bluelight/data/plugin.json @@ -0,0 +1,10 @@ +{ + "plugin": [ + {"path":"../scripts/plugin/mpr.js", "name": "MPR", "disableCatch": "true"}, + {"path":"../scripts/plugin/vr.js", "name": "VR", "disableCatch": "true"}, + {"path":"../scripts/plugin/xml_format.js", "name": "xml_format", "disableCatch": "true"}, + {"path":"../scripts/plugin/graphic_annotation.js", "name": "graphic_annotation", "disableCatch": "true"}, + {"path":"../scripts/plugin/rtss.js", "name": "rtss", "disableCatch": "true"}, + {"path":"../scripts/plugin/seg.js", "name": "seg", "disableCatch": "true"} + ] +} \ No newline at end of file diff --git a/bluelight/html/start.html b/bluelight/html/start.html index 4f1e203..eb14c13 100644 --- a/bluelight/html/start.html +++ b/bluelight/html/start.html @@ -9,7 +9,10 @@ + + + @@ -22,20 +25,14 @@ - - + + - - + - - - - @@ -52,97 +49,70 @@ + -