Quellcode durchsuchen

extend configuration for controls

Yana Rose vor 4 Jahren
Ursprung
Commit
afdba943c2
5 geänderte Dateien mit 79 neuen und 73 gelöschten Zeilen
  1. 69 69
      package-lock.json
  2. 4 0
      src/viewer/index.ts
  3. 2 0
      src/viewer/types.ts
  4. 2 2
      src/viewer/ui/controls.tsx
  5. 2 2
      webpack.config.js

+ 69 - 69
package-lock.json

@@ -109,7 +109,7 @@
                 "color-convert": {
                     "version": "2.0.1",
                     "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
-                    "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+                    "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
                     "dev": true,
                     "requires": {
                         "color-name": "~1.1.4"
@@ -118,13 +118,13 @@
                 "color-name": {
                     "version": "1.1.4",
                     "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
-                    "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+                    "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
                     "dev": true
                 },
                 "has-flag": {
                     "version": "4.0.0",
                     "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
-                    "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+                    "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
                     "dev": true
                 },
                 "supports-color": {
@@ -167,7 +167,7 @@
         "@types/argparse": {
             "version": "1.0.38",
             "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz",
-            "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==",
+            "integrity": "sha1-qB/YYG1IH4c6OADG665PHXaKVqk=",
             "dev": true
         },
         "@types/benchmark": {
@@ -179,7 +179,7 @@
         "@types/body-parser": {
             "version": "1.19.0",
             "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz",
-            "integrity": "sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==",
+            "integrity": "sha1-BoWzxH6zAG/+0RfN1VFkth+AU48=",
             "dev": true,
             "requires": {
                 "@types/connect": "*",
@@ -189,7 +189,7 @@
         "@types/compression": {
             "version": "1.7.0",
             "resolved": "https://registry.npmjs.org/@types/compression/-/compression-1.7.0.tgz",
-            "integrity": "sha512-3LzWUM+3k3XdWOUk/RO+uSjv7YWOatYq2QADJntK1pjkk4DfVP0KrIEPDnXRJxAAGKe0VpIPRmlINLDuCedZWw==",
+            "integrity": "sha1-jcKlZgSHPPDdTnRtmuTTGud7I5A=",
             "dev": true,
             "requires": {
                 "@types/express": "*"
@@ -230,13 +230,13 @@
         "@types/istanbul-lib-coverage": {
             "version": "2.0.3",
             "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz",
-            "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==",
+            "integrity": "sha1-S6jdtyAiH0MuRDvV+RF/0iz9R2I=",
             "dev": true
         },
         "@types/istanbul-lib-report": {
             "version": "3.0.0",
             "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
-            "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==",
+            "integrity": "sha1-wUwk8Y6oGQwRjudWK3/5mjZVJoY=",
             "dev": true,
             "requires": {
                 "@types/istanbul-lib-coverage": "*"
@@ -304,7 +304,7 @@
         "@types/range-parser": {
             "version": "1.2.3",
             "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz",
-            "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==",
+            "integrity": "sha1-fuMwunyq+5gJC+zoal7kQRWQTCw=",
             "dev": true
         },
         "@types/react": {
@@ -637,7 +637,7 @@
         "accepts": {
             "version": "1.3.7",
             "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
-            "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
+            "integrity": "sha1-UxvHJlF6OytB+FACHGzBXqq1B80=",
             "dev": true,
             "requires": {
                 "mime-types": "~2.1.24",
@@ -1016,7 +1016,7 @@
         "body-parser": {
             "version": "1.19.0",
             "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
-            "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
+            "integrity": "sha1-lrJwnlfJxOCab9Zqj9l5hE9p8Io=",
             "dev": true,
             "requires": {
                 "bytes": "3.1.0",
@@ -1034,7 +1034,7 @@
                 "debug": {
                     "version": "2.6.9",
                     "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
-                    "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+                    "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
                     "dev": true,
                     "requires": {
                         "ms": "2.0.0"
@@ -1219,7 +1219,7 @@
         "bytes": {
             "version": "3.1.0",
             "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
-            "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",
+            "integrity": "sha1-9s95M6Ng4FiPqf3oVlHNx/gF0fY=",
             "dev": true
         },
         "cacache": {
@@ -1543,7 +1543,7 @@
         "compressible": {
             "version": "2.0.18",
             "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",
-            "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==",
+            "integrity": "sha1-r1PMprBw1MPAdQ+9dyhqbXzEb7o=",
             "dev": true,
             "requires": {
                 "mime-db": ">= 1.43.0 < 2"
@@ -1552,7 +1552,7 @@
         "compression": {
             "version": "1.7.4",
             "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz",
-            "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==",
+            "integrity": "sha1-lVI+/xcMpXwpoMpB5v4TH0Hlu48=",
             "dev": true,
             "requires": {
                 "accepts": "~1.3.5",
@@ -1573,7 +1573,7 @@
                 "debug": {
                     "version": "2.6.9",
                     "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
-                    "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+                    "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
                     "dev": true,
                     "requires": {
                         "ms": "2.0.0"
@@ -1588,7 +1588,7 @@
                 "safe-buffer": {
                     "version": "5.1.2",
                     "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
-                    "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+                    "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
                     "dev": true
                 }
             }
@@ -1649,7 +1649,7 @@
         "content-disposition": {
             "version": "0.5.3",
             "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
-            "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
+            "integrity": "sha1-4TDK9+cnkIfFYWwgB9BIVpiYT70=",
             "dev": true,
             "requires": {
                 "safe-buffer": "5.1.2"
@@ -1658,7 +1658,7 @@
                 "safe-buffer": {
                     "version": "5.1.2",
                     "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
-                    "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+                    "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
                     "dev": true
                 }
             }
@@ -1666,13 +1666,13 @@
         "content-type": {
             "version": "1.0.4",
             "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
-            "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
+            "integrity": "sha1-4TjMdeBAxyexlm/l5fjJruJW/js=",
             "dev": true
         },
         "cookie": {
             "version": "0.4.0",
             "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
-            "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==",
+            "integrity": "sha1-vrQ35wIrO21JAZ0IhmUwPr6cFLo=",
             "dev": true
         },
         "cookie-signature": {
@@ -1710,7 +1710,7 @@
         "cors": {
             "version": "2.8.5",
             "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
-            "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
+            "integrity": "sha1-6sEdpRWS3Ya58G9uesKTs9+HXSk=",
             "dev": true,
             "requires": {
                 "object-assign": "^4",
@@ -1949,7 +1949,7 @@
         "define-properties": {
             "version": "1.1.3",
             "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
-            "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
+            "integrity": "sha1-z4jabL7ib+bbcJT2HYcMvYTO6fE=",
             "dev": true,
             "requires": {
                 "object-keys": "^1.0.12"
@@ -2250,7 +2250,7 @@
         "es-to-primitive": {
             "version": "1.2.1",
             "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
-            "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",
+            "integrity": "sha1-5VzUyc3BiLzvsDs2bHNjI/xciYo=",
             "dev": true,
             "requires": {
                 "is-callable": "^1.1.4",
@@ -2318,7 +2318,7 @@
                 "ansi-regex": {
                     "version": "5.0.0",
                     "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
-                    "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
+                    "integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U=",
                     "dev": true
                 },
                 "ansi-styles": {
@@ -2333,7 +2333,7 @@
                 "chalk": {
                     "version": "4.1.0",
                     "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
-                    "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+                    "integrity": "sha1-ThSHCmGNni7dl92DRf2dncMVZGo=",
                     "dev": true,
                     "requires": {
                         "ansi-styles": "^4.1.0",
@@ -2343,7 +2343,7 @@
                 "color-convert": {
                     "version": "2.0.1",
                     "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
-                    "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+                    "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
                     "dev": true,
                     "requires": {
                         "color-name": "~1.1.4"
@@ -2352,13 +2352,13 @@
                 "color-name": {
                     "version": "1.1.4",
                     "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
-                    "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+                    "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
                     "dev": true
                 },
                 "has-flag": {
                     "version": "4.0.0",
                     "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
-                    "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+                    "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
                     "dev": true
                 },
                 "ignore": {
@@ -2376,7 +2376,7 @@
                 "strip-ansi": {
                     "version": "6.0.0",
                     "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
-                    "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
+                    "integrity": "sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=",
                     "dev": true,
                     "requires": {
                         "ansi-regex": "^5.0.0"
@@ -2581,7 +2581,7 @@
         "express": {
             "version": "4.17.1",
             "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
-            "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
+            "integrity": "sha1-RJH8OGBc9R+GKdOcK10Cb5ikwTQ=",
             "dev": true,
             "requires": {
                 "accepts": "~1.3.7",
@@ -2619,7 +2619,7 @@
                 "debug": {
                     "version": "2.6.9",
                     "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
-                    "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+                    "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
                     "dev": true,
                     "requires": {
                         "ms": "2.0.0"
@@ -2634,7 +2634,7 @@
                 "safe-buffer": {
                     "version": "5.1.2",
                     "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
-                    "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+                    "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
                     "dev": true
                 }
             }
@@ -2884,7 +2884,7 @@
                 "loader-utils": {
                     "version": "2.0.0",
                     "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
-                    "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
+                    "integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
                     "dev": true,
                     "requires": {
                         "big.js": "^5.2.2",
@@ -2927,7 +2927,7 @@
         "finalhandler": {
             "version": "1.1.2",
             "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
-            "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
+            "integrity": "sha1-t+fQAP/RGTjQ/bBTUG9uur6fWH0=",
             "dev": true,
             "requires": {
                 "debug": "2.6.9",
@@ -2942,7 +2942,7 @@
                 "debug": {
                     "version": "2.6.9",
                     "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
-                    "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+                    "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
                     "dev": true,
                     "requires": {
                         "ms": "2.0.0"
@@ -3055,7 +3055,7 @@
         "form-data": {
             "version": "3.0.0",
             "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz",
-            "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==",
+            "integrity": "sha1-MbfjnIXxNVtxOe4MZHzw3n+DxoI=",
             "dev": true,
             "requires": {
                 "asynckit": "^0.4.0",
@@ -3143,7 +3143,7 @@
         "function-bind": {
             "version": "1.1.1",
             "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
-            "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
+            "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=",
             "dev": true
         },
         "functional-red-black-tree": {
@@ -3398,7 +3398,7 @@
         "has": {
             "version": "1.0.3",
             "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
-            "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
+            "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=",
             "dev": true,
             "requires": {
                 "function-bind": "^1.1.1"
@@ -3430,7 +3430,7 @@
         "has-symbols": {
             "version": "1.0.1",
             "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
-            "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
+            "integrity": "sha1-n1IUdYpEGWxAbZvXbOv4HsLdMeg=",
             "dev": true
         },
         "has-unicode": {
@@ -3534,7 +3534,7 @@
         "http-errors": {
             "version": "1.7.2",
             "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
-            "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
+            "integrity": "sha1-T1ApzxMjnzEDblsuVSkrz7zIXI8=",
             "dev": true,
             "requires": {
                 "depd": "~1.1.2",
@@ -3572,7 +3572,7 @@
         "iconv-lite": {
             "version": "0.4.24",
             "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
-            "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+            "integrity": "sha1-ICK0sl+93CHS9SSXSkdKr+czkIs=",
             "dev": true,
             "requires": {
                 "safer-buffer": ">= 2.1.2 < 3"
@@ -3692,7 +3692,7 @@
         "ipaddr.js": {
             "version": "1.9.1",
             "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
-            "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+            "integrity": "sha1-v/OFQ+64mEglB5/zoqjmy9RngbM=",
             "dev": true
         },
         "is-accessor-descriptor": {
@@ -3766,7 +3766,7 @@
         "is-date-object": {
             "version": "1.0.2",
             "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",
-            "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==",
+            "integrity": "sha1-vac28s2P0G0yhE53Q7+nSUw7/X4=",
             "dev": true
         },
         "is-descriptor": {
@@ -3869,7 +3869,7 @@
         "is-symbol": {
             "version": "1.0.3",
             "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz",
-            "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",
+            "integrity": "sha1-OOEBS55jKb4N6dJKQU/XRB7GGTc=",
             "dev": true,
             "requires": {
                 "has-symbols": "^1.0.1"
@@ -3957,7 +3957,7 @@
                 "color-convert": {
                     "version": "2.0.1",
                     "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
-                    "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+                    "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
                     "dev": true,
                     "requires": {
                         "color-name": "~1.1.4"
@@ -3966,13 +3966,13 @@
                 "color-name": {
                     "version": "1.1.4",
                     "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
-                    "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+                    "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
                     "dev": true
                 },
                 "has-flag": {
                     "version": "4.0.0",
                     "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
-                    "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+                    "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
                     "dev": true
                 },
                 "supports-color": {
@@ -4350,7 +4350,7 @@
         "mime": {
             "version": "1.6.0",
             "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
-            "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+            "integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=",
             "dev": true
         },
         "mime-db": {
@@ -4589,7 +4589,7 @@
         "negotiator": {
             "version": "0.6.2",
             "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
-            "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==",
+            "integrity": "sha1-/qz3zPUlp3rpY0Q2pkiD/+yjRvs=",
             "dev": true
         },
         "neo-async": {
@@ -4859,7 +4859,7 @@
         "object-keys": {
             "version": "1.1.1",
             "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
-            "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+            "integrity": "sha1-HEfyct8nfzsdrwYWd9nILiMixg4=",
             "dev": true
         },
         "object-visit": {
@@ -4915,7 +4915,7 @@
         "on-headers": {
             "version": "1.0.2",
             "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
-            "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",
+            "integrity": "sha1-dysK5qqlJcOZ5Imt+tkMQD6zwo8=",
             "dev": true
         },
         "once": {
@@ -5029,7 +5029,7 @@
         "parseurl": {
             "version": "1.3.3",
             "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
-            "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+            "integrity": "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ=",
             "dev": true
         },
         "pascalcase": {
@@ -5233,7 +5233,7 @@
                 "ansi-regex": {
                     "version": "5.0.0",
                     "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
-                    "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
+                    "integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U=",
                     "dev": true
                 },
                 "ansi-styles": {
@@ -5248,7 +5248,7 @@
                 "color-convert": {
                     "version": "2.0.1",
                     "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
-                    "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+                    "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
                     "dev": true,
                     "requires": {
                         "color-name": "~1.1.4"
@@ -5257,7 +5257,7 @@
                 "color-name": {
                     "version": "1.1.4",
                     "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
-                    "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+                    "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
                     "dev": true
                 }
             }
@@ -5289,7 +5289,7 @@
         "proxy-addr": {
             "version": "2.0.6",
             "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz",
-            "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==",
+            "integrity": "sha1-/cIzZQVEfT8vLGOO0nLK9hS7sr8=",
             "dev": true,
             "requires": {
                 "forwarded": "~0.1.2",
@@ -5372,7 +5372,7 @@
         "qs": {
             "version": "6.7.0",
             "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
-            "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==",
+            "integrity": "sha1-QdwaAV49WB8WIXdr4xr7KHapsbw=",
             "dev": true
         },
         "querystring": {
@@ -5409,13 +5409,13 @@
         "range-parser": {
             "version": "1.2.1",
             "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
-            "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+            "integrity": "sha1-PPNwI9GZ4cJNGlW4SADC8+ZGgDE=",
             "dev": true
         },
         "raw-body": {
             "version": "2.4.0",
             "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
-            "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
+            "integrity": "sha1-oc5vucm8NWylLoklarWQWeE9AzI=",
             "dev": true,
             "requires": {
                 "bytes": "3.1.0",
@@ -5446,7 +5446,7 @@
                 "loader-utils": {
                     "version": "2.0.0",
                     "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
-                    "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
+                    "integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
                     "dev": true,
                     "requires": {
                         "big.js": "^5.2.2",
@@ -5977,7 +5977,7 @@
         "send": {
             "version": "0.17.1",
             "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
-            "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
+            "integrity": "sha1-wdiwWfeQD3Rm3Uk4vcROEd2zdsg=",
             "dev": true,
             "requires": {
                 "debug": "2.6.9",
@@ -5998,7 +5998,7 @@
                 "debug": {
                     "version": "2.6.9",
                     "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
-                    "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+                    "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
                     "dev": true,
                     "requires": {
                         "ms": "2.0.0"
@@ -6015,7 +6015,7 @@
                 "ms": {
                     "version": "2.1.1",
                     "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
-                    "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
+                    "integrity": "sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo=",
                     "dev": true
                 }
             }
@@ -6032,7 +6032,7 @@
         "serve-static": {
             "version": "1.14.1",
             "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
-            "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
+            "integrity": "sha1-Zm5jbcTwEPfvKZcKiKZ0MgiYsvk=",
             "dev": true,
             "requires": {
                 "encodeurl": "~1.0.2",
@@ -6079,7 +6079,7 @@
         "setprototypeof": {
             "version": "1.1.1",
             "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
-            "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==",
+            "integrity": "sha1-fpWsskqpL1iF4KvvW6ExMw1K5oM=",
             "dev": true
         },
         "sha.js": {
@@ -6594,7 +6594,7 @@
                 "loader-utils": {
                     "version": "2.0.0",
                     "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
-                    "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
+                    "integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
                     "dev": true,
                     "requires": {
                         "big.js": "^5.2.2",
@@ -6855,7 +6855,7 @@
         "toidentifier": {
             "version": "1.0.0",
             "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
-            "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==",
+            "integrity": "sha1-fhvjRw8ed5SLxD2Uo8j013UrpVM=",
             "dev": true
         },
         "tough-cookie": {
@@ -6951,7 +6951,7 @@
         "type-is": {
             "version": "1.6.18",
             "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
-            "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+            "integrity": "sha1-TlUs0F3wlGfcvE73Od6J8s83wTE=",
             "dev": true,
             "requires": {
                 "media-typer": "0.3.0",

+ 4 - 0
src/viewer/index.ts

@@ -57,6 +57,8 @@ const DefaultViewerProps = {
     showImportControls: false,
     showExportControls: false,
     showSessionControls: false,
+    showStructureSourceControls: true,
+    showSuperpositionControls: true,
     modelUrlProviders: [
         (pdbId: string) => ({
             url: `//models.rcsb.org/${pdbId.toLowerCase()}.bcif`,
@@ -143,6 +145,8 @@ export class Viewer {
             showImportControls: o.showImportControls,
             showExportControls: o.showExportControls,
             showSessionControls: o.showSessionControls,
+            showStructureSourceControls: o.showStructureSourceControls,
+            showSuperpositionControls: o.showSuperpositionControls,
             modelLoader: new ModelLoader(this.plugin),
             collapsed: new BehaviorSubject<CollapsedState>({
                 selection: true,

+ 2 - 0
src/viewer/types.ts

@@ -46,6 +46,8 @@ export interface ViewerState {
     showImportControls: boolean
     showExportControls: boolean
     showSessionControls: boolean
+    showStructureSourceControls: boolean
+    showSuperpositionControls: boolean
     modelLoader: ModelLoader
     collapsed: BehaviorSubject<CollapsedState>
 }

+ 2 - 2
src/viewer/ui/controls.tsx

@@ -30,10 +30,10 @@ export class StructureTools extends PluginUIComponent {
     render() {
         const collapsed = this.customState.collapsed.value;
         return <>
-            <StructureSourceControls />
+            {this.customState.showStructureSourceControls && <StructureSourceControls />}
             <StructureMeasurementsControls initiallyCollapsed={collapsed.measurements} />
             <StrucmotifSubmitControls initiallyCollapsed={collapsed.strucmotifSubmit} />
-            <StructureSuperpositionControls initiallyCollapsed={collapsed.superposition} />
+            {this.customState.showSuperpositionControls && <StructureSuperpositionControls initiallyCollapsed={collapsed.superposition} />}
             <StructureComponentControls initiallyCollapsed={collapsed.component} />
             <VolumeStreamingControls header='Density' initiallyCollapsed={collapsed.volume} />
             <CustomStructureControls initiallyCollapsed={collapsed.custom} />

+ 2 - 2
webpack.config.js

@@ -47,7 +47,7 @@ const sharedConfig = {
         aggregateTimeout: 750
     },
     devtool: ''
-}
+};
 
 module.exports = [
     {
@@ -67,4 +67,4 @@ module.exports = [
         },
         ...sharedConfig
     }
-]
+];