@ohif/extension-cornerstone 3.13.0-beta.89 → 3.13.0-beta.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/915.ohif-extension-cornerstone.umd.js +1 -0
- package/dist/ohif-extension-cornerstone.umd.js +5 -2
- package/package.json +22 -20
- package/dist/54.ohif-extension-cornerstone.umd.js +0 -2
- package/dist/54.ohif-extension-cornerstone.umd.js.LICENSE.txt +0 -5
- package/dist/ohif-extension-cornerstone.umd.js.LICENSE.txt +0 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohif/extension-cornerstone",
|
|
3
|
-
"version": "3.13.0-beta.
|
|
3
|
+
"version": "3.13.0-beta.92",
|
|
4
4
|
"description": "OHIF extension for Cornerstone",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"./types": "./src/types/index.ts"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
17
|
-
"npm": ">=6",
|
|
18
|
-
"yarn": ">=1.16.0"
|
|
16
|
+
"node": ">=24"
|
|
19
17
|
},
|
|
20
18
|
"files": [
|
|
21
19
|
"dist",
|
|
@@ -26,12 +24,12 @@
|
|
|
26
24
|
},
|
|
27
25
|
"scripts": {
|
|
28
26
|
"clean": "shx rm -rf dist",
|
|
29
|
-
"clean:deep": "
|
|
30
|
-
"dev": "cross-env NODE_ENV=development
|
|
31
|
-
"dev:cornerstone": "
|
|
32
|
-
"build": "cross-env NODE_ENV=production
|
|
33
|
-
"build:package-1": "
|
|
34
|
-
"start": "
|
|
27
|
+
"clean:deep": "pnpm run clean && shx rm -rf node_modules",
|
|
28
|
+
"dev": "cross-env NODE_ENV=development rspack build --config .webpack/webpack.dev.js --watch",
|
|
29
|
+
"dev:cornerstone": "pnpm run dev",
|
|
30
|
+
"build": "cross-env NODE_ENV=production rspack build --config .webpack/webpack.prod.js",
|
|
31
|
+
"build:package-1": "pnpm run build",
|
|
32
|
+
"start": "pnpm run dev",
|
|
35
33
|
"test:unit": "jest --watchAll",
|
|
36
34
|
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
|
|
37
35
|
},
|
|
@@ -40,9 +38,10 @@
|
|
|
40
38
|
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
|
|
41
39
|
"@cornerstonejs/codec-openjpeg": "1.3.0",
|
|
42
40
|
"@cornerstonejs/codec-openjph": "2.4.7",
|
|
43
|
-
"@cornerstonejs/dicom-image-loader": "5.0.
|
|
44
|
-
"@ohif/core": "3.13.0-beta.
|
|
45
|
-
"@ohif/
|
|
41
|
+
"@cornerstonejs/dicom-image-loader": "5.0.2",
|
|
42
|
+
"@ohif/core": "3.13.0-beta.92",
|
|
43
|
+
"@ohif/extension-default": "3.13.0-beta.92",
|
|
44
|
+
"@ohif/ui": "3.13.0-beta.92",
|
|
46
45
|
"dcmjs": "0.49.4",
|
|
47
46
|
"dicom-parser": "1.8.21",
|
|
48
47
|
"hammerjs": "2.0.8",
|
|
@@ -53,13 +52,13 @@
|
|
|
53
52
|
},
|
|
54
53
|
"dependencies": {
|
|
55
54
|
"@babel/runtime": "7.29.7",
|
|
56
|
-
"@cornerstonejs/adapters": "5.0.
|
|
57
|
-
"@cornerstonejs/ai": "5.0.
|
|
58
|
-
"@cornerstonejs/core": "5.0.
|
|
59
|
-
"@cornerstonejs/labelmap-interpolation": "5.0.
|
|
60
|
-
"@cornerstonejs/metadata": "5.0.
|
|
61
|
-
"@cornerstonejs/polymorphic-segmentation": "5.0.
|
|
62
|
-
"@cornerstonejs/tools": "5.0.
|
|
55
|
+
"@cornerstonejs/adapters": "5.0.2",
|
|
56
|
+
"@cornerstonejs/ai": "5.0.2",
|
|
57
|
+
"@cornerstonejs/core": "5.0.2",
|
|
58
|
+
"@cornerstonejs/labelmap-interpolation": "5.0.2",
|
|
59
|
+
"@cornerstonejs/metadata": "5.0.2",
|
|
60
|
+
"@cornerstonejs/polymorphic-segmentation": "5.0.2",
|
|
61
|
+
"@cornerstonejs/tools": "5.0.2",
|
|
63
62
|
"@icr/polyseg-wasm": "0.4.0",
|
|
64
63
|
"@itk-wasm/morphological-contour-interpolation": "1.1.0",
|
|
65
64
|
"@kitware/vtk.js": "35.5.3",
|
|
@@ -71,5 +70,8 @@
|
|
|
71
70
|
"lodash.zip": "4.2.0",
|
|
72
71
|
"shader-loader": "1.3.1",
|
|
73
72
|
"worker-loader": "3.0.8"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"cross-env": "7.0.3"
|
|
74
76
|
}
|
|
75
77
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 54.ohif-extension-cornerstone.umd.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@kitware/vtk.js/Common/Core/DataArray"),require("@kitware/vtk.js/Common/DataModel/ImageData")):"function"==typeof define&&define.amd?define(["@kitware/vtk.js/Common/Core/DataArray","@kitware/vtk.js/Common/DataModel/ImageData"],t):"object"==typeof exports?exports["ohif-extension-cornerstone"]=t(require("@kitware/vtk.js/Common/Core/DataArray"),require("@kitware/vtk.js/Common/DataModel/ImageData")):e["ohif-extension-cornerstone"]=t(e["@kitware/vtk.js/Common/Core/DataArray"],e["@kitware/vtk.js/Common/DataModel/ImageData"])}(globalThis,(e,t)=>(()=>{"use strict";var n={3670(t){t.exports=e},9322(e){e.exports=t}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const o=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),c=Symbol("Comlink.finalizer"),u=Symbol("Comlink.thrown"),l=e=>"object"==typeof e&&null!==e||"function"==typeof e,m={canHandle:e=>l(e)&&e[o],serialize(e){const{port1:t,port2:n}=new MessageChannel;return f(e,t),[n,[n]]},deserialize:e=>(e.start(),function(e,t){const n=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),b(e,n,[],t)}(e))},p=new Map([["proxy",m],["throw",{canHandle:e=>l(e)&&u in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function f(e,t=globalThis,n=["*"]){t.addEventListener("message",function r(a){if(!a||!a.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:i,type:s,path:l}=Object.assign({path:[]},a.data),m=(a.data.argumentList||[]).map(x);let p;try{const t=l.slice(0,-1).reduce((e,t)=>e[t],e),n=l.reduce((e,t)=>e[t],e);switch(s){case"GET":p=n;break;case"SET":t[l.slice(-1)[0]]=x(a.data.value),p=!0;break;case"APPLY":p=n.apply(t,m);break;case"CONSTRUCT":p=function(e){return Object.assign(e,{[o]:!0})}(new n(...m));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;f(e,n),p=function(e,t){return k.set(e,t),e}(t,[t])}break;case"RELEASE":p=void 0;break;default:return}}catch(e){p={value:e,[u]:0}}Promise.resolve(p).catch(e=>({value:e,[u]:0})).then(n=>{const[a,o]=E(n);t.postMessage(Object.assign(Object.assign({},a),{id:i}),o),"RELEASE"===s&&(t.removeEventListener("message",r),g(t),c in e&&"function"==typeof e[c]&&e[c]())}).catch(e=>{const[n,r]=E({value:new TypeError("Unserializable return value"),[u]:0});t.postMessage(Object.assign(Object.assign({},n),{id:i}),r)})}),t.start&&t.start()}function g(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function d(e){if(e)throw new Error("Proxy has been released and is not useable")}function y(e){return C(e,new Map,{type:"RELEASE"}).then(()=>{g(e)})}const v=new WeakMap,h="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(v.get(e)||0)-1;v.set(e,t),0===t&&y(e)});function b(e,t,n=[],r=function(){}){let a=!1;const o=new Proxy(r,{get(r,i){if(d(a),i===s)return()=>{!function(e){h&&h.unregister(e)}(o),y(e),t.clear(),a=!0};if("then"===i){if(0===n.length)return{then:()=>o};const r=C(e,t,{type:"GET",path:n.map(e=>e.toString())}).then(x);return r.then.bind(r)}return b(e,t,[...n,i])},set(r,o,i){d(a);const[s,c]=E(i);return C(e,t,{type:"SET",path:[...n,o].map(e=>e.toString()),value:s},c).then(x)},apply(r,o,s){d(a);const c=n[n.length-1];if(c===i)return C(e,t,{type:"ENDPOINT"}).then(x);if("bind"===c)return b(e,t,n.slice(0,-1));const[u,l]=w(s);return C(e,t,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:u},l).then(x)},construct(r,o){d(a);const[i,s]=w(o);return C(e,t,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:i},s).then(x)}});return function(e,t){const n=(v.get(t)||0)+1;v.set(t,n),h&&h.register(e,t,e)}(o,e),o}function w(e){const t=e.map(E);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}const k=new WeakMap;function E(e){for(const[t,n]of p)if(n.canHandle(e)){const[r,a]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},a]}return[{type:"RAW",value:e},k.get(e)||[]]}function x(e){switch(e.type){case"HANDLER":return p.get(e.name).deserialize(e.value);case"RAW":return e.value}}function C(e,t,n,r){return new Promise(a=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(o,a),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),r)})}var j=a(9322),D=a.n(j),M=a(3670),S=a.n(M);return f({getRange:({dimensions:e,origin:t,direction:n,spacing:r,scalarData:a})=>{const o=D().newInstance();o.setDimensions(e),o.setOrigin(t),o.setDirection(n),o.setSpacing(r);const i=S().newInstance({name:"Pixels",numberOfComponents:1,values:a});o.getPointData().setScalars(i),o.modified();return o.computeHistogram(o.getBounds())},calcHistogram:({data:e,options:t})=>{void 0===t&&(t={});const n={numBins:t.numBins||256,range:{min:0,max:0},bins:new Int32Array(1),maxBin:0,maxBinValue:0};let r=t.min,a=t.max;if(void 0===r||void 0===a){let t=1/0,n=-1/0,o=e.length;for(;o--;){const r=e[o];r<t&&(t=r),r>n&&(n=r)}r=t,a=n}n.range={min:r,max:a};const o=new Int32Array(n.numBins),i=n.numBins/(a-r);for(let t=0;t<e.length;t++){const n=e[t];if(n<r)continue;if(n>a)continue;o[Math.floor((n-r)*i)]+=1}n.bins=o,n.maxBin=0,n.maxBinValue=0;for(let e=0;e<n.numBins;e++)n.bins[e]>n.maxBinValue&&(n.maxBin=e,n.maxBinValue=n.bins[e]);return n}}),{}})());
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
9
|
-
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
10
|
-
* Released under MIT License
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/*! *****************************************************************************
|
|
14
|
-
Copyright (c) Microsoft Corporation.
|
|
15
|
-
|
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
-
purpose with or without fee is hereby granted.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
-
***************************************************************************** */
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @license React
|
|
30
|
-
* react.production.min.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @license React
|
|
40
|
-
* use-sync-external-store-shim.production.min.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @license React
|
|
50
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
//! moment.js
|
|
59
|
-
|
|
60
|
-
//! moment.js locale configuration
|