@ohif/extension-dicom-pdf 1.1.2 → 3.0.1
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/README.md +5 -1
- package/dist/ohif-extension-dicom-pdf.umd.js +3 -0
- package/dist/ohif-extension-dicom-pdf.umd.js.LICENSE.txt +14 -0
- package/dist/ohif-extension-dicom-pdf.umd.js.map +1 -0
- package/package.json +21 -22
- package/CHANGELOG.md +0 -222
- package/dist/1.index.umd.js +0 -3
- package/dist/1.index.umd.js.LICENSE +0 -2531
- package/dist/1.index.umd.js.map +0 -1
- package/dist/2.index.umd.js +0 -1
- package/dist/index.umd.js +0 -3
- package/dist/index.umd.js.LICENSE +0 -734
- package/dist/index.umd.js.map +0 -1
package/README.md
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see ohif-extension-dicom-pdf.umd.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ohif/core")):"function"==typeof define&&define.amd?define(["@ohif/core"],t):"object"==typeof exports?exports["ohif-extension-dicom-pdf"]=t(require("@ohif/core")):e["ohif-extension-dicom-pdf"]=t(e["@ohif/core"])}(globalThis,(e=>(()=>{var t,r,n={147:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(735),o=r(216),a=r.n(o);function i(e){let{displaySets:t}=e;const[r,o]=(0,n.useState)(null);if(t&&t.length>1)throw new Error("OHIFCornerstonePdfViewport: only one display set is supported for dicom pdf right now");const{pdfUrl:a}=t[0];return(0,n.useEffect)((()=>{(async()=>{o(await a)})()}),[a]),n.createElement("div",{className:"bg-primary-black w-full h-full text-white"},n.createElement("object",{data:r,type:"application/pdf",className:"w-full h-full"},n.createElement("div",null,"No online PDF viewer installed")))}i.propTypes={displaySets:a().arrayOf(a().object).isRequired};const u=i},516:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))r.call(a,c)&&(u[c]=a[c]);if(t){i=t(a);for(var l=0;l<i.length;l++)n.call(a,i[l])&&(u[i[l]]=a[i[l]])}}return u}},459:(e,t,r)=>{"use strict";var n=r(704);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},216:(e,t,r)=>{e.exports=r(459)()},704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},447:(e,t,r)=>{"use strict";var n=r(516),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,u=60110,s=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),i=f("react.provider"),u=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||y}function h(){}function b(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||y}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=v.prototype;var g=b.prototype=new h;g.constructor=b,n(g,v.prototype),g.isPureReactComponent=!0;var S={current:null},O=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var n,a={},i=null,u=null;if(null!=t)for(n in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)O.call(t,n)&&!_.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];a.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===a[n]&&(a[n]=s[n]);return{$$typeof:o,type:e,key:i,ref:u,props:a,_owner:S.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var w=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,r,n,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return i=i(s=e),e=""===n?"."+P(s,0):n,Array.isArray(i)?(r="",null!=e&&(r=e.replace(w,"$&/")+"/"),C(i,t,r,"",(function(e){return e}))):null!=i&&(E(i)&&(i=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(w,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+P(u=e[c],c);s+=C(u,t,r,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=C(u=u.value,t,r,l=n+P(u,c++),i);else if("object"===u)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function I(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function k(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var x={current:null};function D(){var e=x.current;if(null===e)throw Error(d(321));return e}var R={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:I,forEach:function(e,t,r){I(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(d(143));return e}},t.Component=v,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(267,e));var a=n({},e.props),i=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)O.call(t,l)&&!_.hasOwnProperty(l)&&(a[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:e.type,key:i,ref:u,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return D().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,r){return D().useReducer(e,t,r)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},735:(e,t,r)=>{"use strict";e.exports=r(447)},762:t=>{"use strict";t.exports=e}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,t=[],a.O=(e,r,n,o)=>{if(!r){var i=1/0;for(l=0;l<t.length;l++){for(var[r,n,o]=t[l],u=!0,s=0;s<r.length;s++)(!1&o||i>=o)&&Object.keys(a.O).every((e=>a.O[e](r[s])))?r.splice(s--,1):(u=!1,o<i&&(i=o));if(u){t.splice(l--,1);var c=n();void 0!==c&&(e=c)}}return e}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[r,n,o]},a.F={},a.E=e=>{Object.keys(a.F).map((t=>{a.F[t](e)}))},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r={143:0},a.F.j=e=>{if(!a.o(r,e)||void 0===r[e]){r[e]=null;var t=document.createElement("link");a.nc&&t.setAttribute("nonce",a.nc),t.rel="prefetch",t.as="script",t.href=a.p+a.u(e),document.head.appendChild(t)}},a.O.j=e=>0===r[e],a.O(0,[143],(()=>{a.E(143)}),5);var i={};return(()=>{"use strict";a.r(i),a.d(i,{default:()=>f});var e=a(735);const t=JSON.parse('{"u2":"@ohif/extension-dicom-pdf"}').u2,r=`${t}.sopClassHandlerModule.dicom-pdf`;var n=a(762);const{ImageSet:o}=n.classes,u=Object.values({ENCAPSULATED_PDF:"1.2.840.10008.5.1.4.1.1.104.1"});function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e.lazy((()=>Promise.resolve().then(a.bind(a,147)))),l=t=>e.createElement(e.Suspense,{fallback:e.createElement("div",null,"Loading...")},e.createElement(c,t)),f={id:t,getViewportModule(t){let{servicesManager:r,extensionManager:n}=t;return[{name:"dicom-pdf",component:t=>e.createElement(l,s({servicesManager:r,extensionManager:n},t))}]},getSopClassHandlerModule:function(e){let{servicesManager:t,extensionManager:o}=e;return[{name:"dicom-pdf",sopClassUids:u,getDisplaySetsFromSeries:e=>((e,t,o)=>{const a=o.getActiveDataSource()[0];return e.map((e=>{const{Modality:t,SOPInstanceUID:o,EncapsulatedDocument:i}=e,{SeriesDescription:s="PDF",MIMETypeOfEncapsulatedDocument:c}=e,{SeriesNumber:l,SeriesDate:f,SeriesInstanceUID:p,StudyInstanceUID:d,SOPClassUID:y}=e,m=a.retrieve.directURL({instance:e,tag:"EncapsulatedDocument",defaultType:c||"application/pdf",singlepart:"pdf"});return{Modality:t,displaySetInstanceUID:n.utils.guid(),SeriesDescription:s,SeriesNumber:l,SeriesDate:f,SOPInstanceUID:o,SeriesInstanceUID:p,StudyInstanceUID:d,SOPClassHandlerId:r,SOPClassUID:y,referencedImages:null,measurements:null,pdfUrl:m,instances:[e],thumbnailSrc:a.retrieve.directURL({instance:e,defaultPath:"/thumbnail",defaultType:"image/jpeg",tag:"Absent"}),isDerivedDisplaySet:!0,isLoaded:!1,sopClassUids:u,numImageFrames:0,numInstances:1,instance:e}}))})(e,0,o)}]}}})(),i=a.O(i)})()));
|
|
3
|
+
//# sourceMappingURL=ohif-extension-dicom-pdf.umd.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
@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C,gBAC/CmQ,EAAe,iBACfC,GACDpQ,EASC,MAAO,CACL,CACEgE,KAAM,YACN8L,eACAU,yBAZ6BC,GA/DDC,EAChCD,EACAN,EACAC,KAEA,MAAMO,EAAaP,EAAiBQ,sBAAsB,GAC1D,OAAOH,EAAU1O,KAAI8O,IACnB,MAAM,SAAEC,EAAQ,eAAEC,EAAc,qBAAEC,GAAyBH,GACrD,kBACJI,EAAoB,MAAK,+BACzBC,GACEL,GACE,aACJM,EAAY,WACZC,EAAU,kBACVC,EAAiB,iBACjBC,EAAgB,YAChBC,GACEV,EACEtQ,EAASoQ,EAAWa,SAASC,UAAU,CAC3CZ,WACAa,IAAK,uBACLC,YAAaT,GAAkC,kBAC/CU,WAAY,QAgCd,MA7BmB,CAEjBd,WACAe,sBAAuBC,EAAAA,MAAAA,OACvBb,oBACAE,eACAC,aACAL,iBACAM,oBACAC,mBACA3B,kBAAiB,EACjB4B,cACAQ,iBAAkB,KAClBC,aAAc,KACdzR,SACAkQ,UAAW,CAACI,GACZoB,aAActB,EAAWa,SAASC,UAAU,CAC1CZ,WACAqB,YAAa,aACbP,YAAa,aACbD,IAAK,WAEPS,qBAAqB,EACrBC,UAAU,EACVtC,eACAuC,eAAgB,EAChBC,aAAc,EACdzB,WAEe,GACjB,EAQOH,CACLD,EACAN,EACAC,IAWN","sources":["webpack://ohif-extension-dicom-pdf/webpack/universalModuleDefinition","webpack://ohif-extension-dicom-pdf/webpack/runtime/chunk loaded","webpack://ohif-extension-dicom-pdf/webpack/runtime/jsonp chunk loading","webpack://ohif-extension-dicom-pdf/./viewports/OHIFCornerstonePdfViewport.tsx","webpack://ohif-extension-dicom-pdf/../../../node_modules/object-assign/index.js","webpack://ohif-extension-dicom-pdf/../../../node_modules/prop-types/factoryWithThrowingShims.js","webpack://ohif-extension-dicom-pdf/../../../node_modules/prop-types/index.js","webpack://ohif-extension-dicom-pdf/../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://ohif-extension-dicom-pdf/../../../node_modules/react/cjs/react.production.min.js","webpack://ohif-extension-dicom-pdf/../../../node_modules/react/index.js","webpack://ohif-extension-dicom-pdf/external umd \"@ohif/core\"","webpack://ohif-extension-dicom-pdf/webpack/bootstrap","webpack://ohif-extension-dicom-pdf/webpack/runtime/chunk prefetch function","webpack://ohif-extension-dicom-pdf/webpack/runtime/compat get default export","webpack://ohif-extension-dicom-pdf/webpack/runtime/define property getters","webpack://ohif-extension-dicom-pdf/webpack/runtime/hasOwnProperty shorthand","webpack://ohif-extension-dicom-pdf/webpack/runtime/make namespace object","webpack://ohif-extension-dicom-pdf/webpack/runtime/startup prefetch","webpack://ohif-extension-dicom-pdf/./id.js","webpack://ohif-extension-dicom-pdf/./getSopClassHandlerModule.js","webpack://ohif-extension-dicom-pdf/./index.tsx"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@ohif/core\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@ohif/core\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ohif-extension-dicom-pdf\"] = factory(require(\"@ohif/core\"));\n\telse\n\t\troot[\"ohif-extension-dicom-pdf\"] = factory(root[\"@ohif/core\"]);\n})(globalThis, (__WEBPACK_EXTERNAL_MODULE__762__) => {\nreturn ","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n__webpack_require__.F.j = (chunkId) => {\n\tif((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && true) {\n\t\tinstalledChunks[chunkId] = null;\n\t\tvar link = document.createElement('link');\n\n\t\tif (__webpack_require__.nc) {\n\t\t\tlink.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tlink.rel = \"prefetch\";\n\t\tlink.as = \"script\";\n\t\tlink.href = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\tdocument.head.appendChild(link);\n\t}\n};\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// no jsonp function","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\n\nfunction OHIFCornerstonePdfViewport({ displaySets }) {\n const [url, setUrl] = useState(null);\n\n if (displaySets && displaySets.length > 1) {\n throw new Error(\n 'OHIFCornerstonePdfViewport: only one display set is supported for dicom pdf right now'\n );\n }\n\n const { pdfUrl } = displaySets[0];\n\n useEffect(() => {\n const load = async () => {\n setUrl(await pdfUrl);\n };\n\n load();\n }, [pdfUrl]);\n\n return (\n <div className=\"bg-primary-black w-full h-full text-white\">\n <object data={url} type=\"application/pdf\" className=\"w-full h-full\">\n <div>No online PDF viewer installed</div>\n </object>\n </div>\n );\n}\n\nOHIFCornerstonePdfViewport.propTypes = {\n displaySets: PropTypes.arrayOf(PropTypes.object).isRequired,\n};\n\nexport default OHIFCornerstonePdfViewport;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/** @license React v17.0.2\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=require(\"object-assign\"),n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;\nif(\"function\"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w(\"react.element\");p=w(\"react.portal\");exports.Fragment=w(\"react.fragment\");exports.StrictMode=w(\"react.strict_mode\");exports.Profiler=w(\"react.profiler\");q=w(\"react.provider\");r=w(\"react.context\");t=w(\"react.forward_ref\");exports.Suspense=w(\"react.suspense\");u=w(\"react.memo\");v=w(\"react.lazy\")}var x=\"function\"===typeof Symbol&&Symbol.iterator;\nfunction y(a){if(null===a||\"object\"!==typeof a)return null;a=x&&a[x]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}function z(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;c<arguments.length;c++)b+=\"&args[]=\"+encodeURIComponent(arguments[c]);return\"Minified React error #\"+a+\"; visit \"+b+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}\nvar A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,\"setState\")};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};\nfunction D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}var F=E.prototype=new D;F.constructor=E;l(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};\nfunction J(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)H.call(b,e)&&!I.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];d.children=f}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return{$$typeof:n,type:a,key:k,ref:h,props:d,_owner:G.current}}\nfunction K(a,b){return{$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===n}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\\/+/g;function N(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction O(a,b,c,e,d){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case n:case p:h=!0}}if(h)return h=a,d=d(h),a=\"\"===e?\".\"+N(h,0):e,Array.isArray(d)?(c=\"\",null!=a&&(c=a.replace(M,\"$&/\")+\"/\"),O(d,b,c,\"\",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?\"\":(\"\"+d.key).replace(M,\"$&/\")+\"/\")+a)),b.push(d)),1;h=0;e=\"\"===e?\".\":e+\":\";if(Array.isArray(a))for(var g=\n0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(k,b,c,f,d)}else if(f=y(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N(k,g++),h+=O(k,b,c,f,d);else if(\"object\"===k)throw b=\"\"+a,Error(z(31,\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b));return h}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,\"\",\"\",function(a){return b.call(c,a,d++)});return e}\nfunction Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var R={current:null};function S(){var a=R.current;if(null===a)throw Error(z(321));return a}var T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:l};\nexports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;\nexports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=l({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:n,type:a.type,\nkey:d,ref:k,props:e,_owner:h}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};exports.isValidElement=L;\nexports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return S().useCallback(a,b)};exports.useContext=function(a,b){return S().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return S().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return S().useImperativeHandle(a,b,c)};\nexports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S().useMemo(a,b)};exports.useReducer=function(a,b,c){return S().useReducer(a,b,c)};exports.useRef=function(a){return S().useRef(a)};exports.useState=function(a){return S().useState(a)};exports.version=\"17.0.2\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__762__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.F = {};\n__webpack_require__.E = (chunkId) => {\n\tObject.keys(__webpack_require__.F).map((key) => {\n\t\t__webpack_require__.F[key](chunkId);\n\t});\n}","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.O(0, [143], () => {\n\t__webpack_require__.E(143);\n}, 5);","import packageJson from '../package.json';\n\nconst id = packageJson.name;\nconst SOPClassHandlerId = `${id}.sopClassHandlerModule.dicom-pdf`;\n\nexport { id, SOPClassHandlerId };\n","import { SOPClassHandlerId } from './id';\nimport { utils, classes } from '@ohif/core';\n\nconst { ImageSet } = classes;\n\nconst SOP_CLASS_UIDS = {\n ENCAPSULATED_PDF: '1.2.840.10008.5.1.4.1.1.104.1',\n};\n\nconst sopClassUids = Object.values(SOP_CLASS_UIDS);\n\nconst _getDisplaySetsFromSeries = (\n instances,\n servicesManager,\n extensionManager\n) => {\n const dataSource = extensionManager.getActiveDataSource()[0];\n return instances.map(instance => {\n const { Modality, SOPInstanceUID, EncapsulatedDocument } = instance;\n const {\n SeriesDescription = 'PDF',\n MIMETypeOfEncapsulatedDocument,\n } = instance;\n const {\n SeriesNumber,\n SeriesDate,\n SeriesInstanceUID,\n StudyInstanceUID,\n SOPClassUID,\n } = instance;\n const pdfUrl = dataSource.retrieve.directURL({\n instance,\n tag: 'EncapsulatedDocument',\n defaultType: MIMETypeOfEncapsulatedDocument || 'application/pdf',\n singlepart: 'pdf',\n });\n\n const displaySet = {\n //plugin: id,\n Modality,\n displaySetInstanceUID: utils.guid(),\n SeriesDescription,\n SeriesNumber,\n SeriesDate,\n SOPInstanceUID,\n SeriesInstanceUID,\n StudyInstanceUID,\n SOPClassHandlerId,\n SOPClassUID,\n referencedImages: null,\n measurements: null,\n pdfUrl,\n instances: [instance],\n thumbnailSrc: dataSource.retrieve.directURL({\n instance,\n defaultPath: '/thumbnail',\n defaultType: 'image/jpeg',\n tag: 'Absent',\n }),\n isDerivedDisplaySet: true,\n isLoaded: false,\n sopClassUids,\n numImageFrames: 0,\n numInstances: 1,\n instance,\n };\n return displaySet;\n });\n};\n\nexport default function getSopClassHandlerModule({\n servicesManager,\n extensionManager,\n}) {\n const getDisplaySetsFromSeries = instances => {\n return _getDisplaySetsFromSeries(\n instances,\n servicesManager,\n extensionManager\n );\n };\n\n return [\n {\n name: 'dicom-pdf',\n sopClassUids,\n getDisplaySetsFromSeries,\n },\n ];\n}\n","import React from 'react';\nimport getSopClassHandlerModule from './getSopClassHandlerModule';\nimport { id } from './id.js';\n\nconst Component = React.lazy(() => {\n return import(\n /* webpackPrefetch: true */ './viewports/OHIFCornerstonePdfViewport'\n );\n});\n\nconst OHIFCornerstonePdfViewport = props => {\n return (\n <React.Suspense fallback={<div>Loading...</div>}>\n <Component {...props} />\n </React.Suspense>\n );\n};\n\n/**\n *\n */\nconst dicomPDFExtension = {\n /**\n * Only required property. Should be a unique value across all extensions.\n */\n id,\n /**\n *\n *\n * @param {object} [configuration={}]\n * @param {object|array} [configuration.csToolsConfig] - Passed directly to `initCornerstoneTools`\n */\n getViewportModule({ servicesManager, extensionManager }) {\n const ExtendedOHIFCornerstonePdfViewport = props => {\n return (\n <OHIFCornerstonePdfViewport\n servicesManager={servicesManager}\n extensionManager={extensionManager}\n {...props}\n />\n );\n };\n\n return [\n { name: 'dicom-pdf', component: ExtendedOHIFCornerstonePdfViewport },\n ];\n },\n // getCommandsModule({ servicesManager }) {\n // return {\n // definitions: {\n // setToolActive: {\n // commandFn: () => null,\n // storeContexts: [],\n // options: {},\n // },\n // },\n // defaultContext: 'ACTIVE_VIEWPORT::PDF',\n // };\n // },\n getSopClassHandlerModule,\n};\n\nexport default dicomPDFExtension;\n"],"names":["root","factory","exports","module","require","define","amd","globalThis","__WEBPACK_EXTERNAL_MODULE__762__","deferred","installedChunks","OHIFCornerstonePdfViewport","_ref","displaySets","url","setUrl","useState","length","Error","pdfUrl","useEffect","async","load","React","className","data","type","propTypes","PropTypes","isRequired","getOwnPropertySymbols","Object","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","map","n","join","test3","split","forEach","letter","keys","err","shouldUseNative","target","source","from","symbols","to","val","TypeError","toObject","s","arguments","key","call","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","location","propFullName","secret","name","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","l","p","Fragment","StrictMode","Profiler","q","r","t","Suspense","u","v","Symbol","for","w","x","iterator","z","a","b","c","encodeURIComponent","A","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","B","C","this","context","refs","updater","D","E","isReactComponent","setState","forceUpdate","F","constructor","isPureReactComponent","G","current","H","I","ref","__self","__source","J","e","d","k","h","g","children","f","Array","m","defaultProps","$$typeof","_owner","L","M","N","replace","escape","toString","O","isArray","K","push","y","next","done","value","P","Q","_status","_result","then","default","R","S","T","ReactCurrentDispatcher","ReactCurrentBatchConfig","transition","ReactCurrentOwner","IsSomeRendererActing","Children","apply","count","toArray","only","Component","PureComponent","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","createElement","createFactory","bind","createRef","forwardRef","render","isValidElement","lazy","_payload","_init","memo","compare","useCallback","useContext","useDebugValue","useImperativeHandle","useLayoutEffect","useMemo","useReducer","useRef","version","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","chunkId","getter","__esModule","definition","o","defineProperty","enumerable","get","obj","prop","toStringTag","link","document","nc","setAttribute","rel","as","href","head","appendChild","id","packageJson","SOPClassHandlerId","ImageSet","classes","sopClassUids","values","ENCAPSULATED_PDF","fallback","getViewportModule","servicesManager","extensionManager","component","_extends","getSopClassHandlerModule","getDisplaySetsFromSeries","instances","_getDisplaySetsFromSeries","dataSource","getActiveDataSource","instance","Modality","SOPInstanceUID","EncapsulatedDocument","SeriesDescription","MIMETypeOfEncapsulatedDocument","SeriesNumber","SeriesDate","SeriesInstanceUID","StudyInstanceUID","SOPClassUID","retrieve","directURL","tag","defaultType","singlepart","displaySetInstanceUID","utils","referencedImages","measurements","thumbnailSrc","defaultPath","isDerivedDisplaySet","isLoaded","numImageFrames","numInstances"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohif/extension-dicom-pdf",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "OHIF extension for
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"description": "OHIF extension for PDF display",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "OHIF/Viewers",
|
|
8
|
-
"main": "dist/
|
|
9
|
-
"module": "src/index.
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
8
|
+
"main": "dist/ohif-extension-dicom-pdf.umd.js",
|
|
9
|
+
"module": "src/index.tsx",
|
|
13
10
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
11
|
+
"node": ">=14",
|
|
15
12
|
"npm": ">=6",
|
|
16
13
|
"yarn": ">=1.16.0"
|
|
17
14
|
},
|
|
@@ -19,26 +16,28 @@
|
|
|
19
16
|
"dist",
|
|
20
17
|
"README.md"
|
|
21
18
|
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --
|
|
24
|
-
"dev:dicom-pdf": "yarn run dev",
|
|
23
|
+
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --output-pathinfo",
|
|
25
24
|
"build": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
|
|
26
25
|
"build:package": "yarn run build",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
26
|
+
"start": "yarn run dev",
|
|
27
|
+
"test:unit": "jest --watchAll",
|
|
28
|
+
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@ohif/core": "^0.
|
|
32
|
-
"
|
|
31
|
+
"@ohif/core": "^3.0.0",
|
|
32
|
+
"@ohif/ui": "^2.0.0",
|
|
33
|
+
"dcmjs": "^0.29.5",
|
|
34
|
+
"dicom-parser": "^1.8.9",
|
|
35
|
+
"hammerjs": "^2.0.8",
|
|
33
36
|
"prop-types": "^15.6.2",
|
|
34
|
-
"react": "^
|
|
35
|
-
"react-dom": "^16.8.6"
|
|
37
|
+
"react": "^17.0.2"
|
|
36
38
|
},
|
|
37
39
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.
|
|
39
|
-
"classnames": "^2.2
|
|
40
|
-
|
|
41
|
-
"pdfjs-dist": "^2.2.228"
|
|
42
|
-
},
|
|
43
|
-
"gitHead": "0fc7d93d734fa025c1ad8b2e1a2cdfefc7041989"
|
|
40
|
+
"@babel/runtime": "^7.20.13",
|
|
41
|
+
"classnames": "^2.3.2"
|
|
42
|
+
}
|
|
44
43
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [1.1.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.1.1...@ohif/extension-dicom-pdf@1.1.2) (2022-01-29)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [1.1.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.1.0...@ohif/extension-dicom-pdf@1.1.1) (2021-12-02)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [1.1.0](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.6...@ohif/extension-dicom-pdf@1.1.0) (2021-09-23)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* Update to WADO Image Loader 4.0.3 to add dynamically imported WebAssembly codec support 🚀 ([#2537](https://github.com/OHIF/Viewers/issues/2537)) ([489d4b0](https://github.com/OHIF/Viewers/commit/489d4b0584f4657ceda1c5b9b68d5e9733827e47))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [1.0.6](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.5...@ohif/extension-dicom-pdf@1.0.6) (2020-09-10)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [1.0.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.4...@ohif/extension-dicom-pdf@1.0.5) (2020-09-03)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [1.0.4](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.3...@ohif/extension-dicom-pdf@1.0.4) (2020-08-28)
|
|
50
|
-
|
|
51
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [1.0.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.2...@ohif/extension-dicom-pdf@1.0.3) (2020-04-02)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## [1.0.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.1...@ohif/extension-dicom-pdf@1.0.2) (2020-03-09)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## [1.0.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.0...@ohif/extension-dicom-pdf@1.0.1) (2019-12-16)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Bug Fixes
|
|
77
|
-
|
|
78
|
-
* 🐛 Update ohif pdf extension to optionally use pdfjs ([#1162](https://github.com/OHIF/Viewers/issues/1162)) ([31e542d](https://github.com/OHIF/Viewers/commit/31e542dfd973c3e982ede6d02d79bfe65175e792)), closes [#1049](https://github.com/OHIF/Viewers/issues/1049)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
# [1.0.0](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.50.4...@ohif/extension-dicom-pdf@1.0.0) (2019-09-27)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Bug Fixes
|
|
88
|
-
|
|
89
|
-
* 🐛 Add DicomLoaderService & FileLoaderService to fix SR, PDF, and SEG support in local file and WADO-RS-only use cases ([#862](https://github.com/OHIF/Viewers/issues/862)) ([e7e1a8a](https://github.com/OHIF/Viewers/commit/e7e1a8a)), closes [#838](https://github.com/OHIF/Viewers/issues/838)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### BREAKING CHANGES
|
|
93
|
-
|
|
94
|
-
* DICOM Seg
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## [0.50.4](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.50.3...@ohif/extension-dicom-pdf@0.50.4) (2019-09-10)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### Bug Fixes
|
|
104
|
-
|
|
105
|
-
* simplify runtime-extension usage ([ac5dbda](https://github.com/OHIF/Viewers/commit/ac5dbda))
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
## [0.50.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.50.2...@ohif/extension-dicom-pdf@0.50.3) (2019-09-04)
|
|
112
|
-
|
|
113
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
## [0.50.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.50.1...@ohif/extension-dicom-pdf@0.50.2) (2019-09-04)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### Bug Fixes
|
|
123
|
-
|
|
124
|
-
* measurementsAPI issue caused by production build ([#842](https://github.com/OHIF/Viewers/issues/842)) ([49d3439](https://github.com/OHIF/Viewers/commit/49d3439))
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.50.0-alpha.10...@ohif/extension-dicom-pdf@0.50.1) (2019-08-14)
|
|
131
|
-
|
|
132
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.9...@ohif/extension-dicom-pdf@0.50.0-alpha.10) (2019-08-14)
|
|
139
|
-
|
|
140
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
## [0.0.8-alpha.9](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.8...@ohif/extension-dicom-pdf@0.0.8-alpha.9) (2019-08-14)
|
|
147
|
-
|
|
148
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## 0.0.8-alpha.8 (2019-08-14)
|
|
155
|
-
|
|
156
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# Change Log
|
|
163
|
-
|
|
164
|
-
All notable changes to this project will be documented in this file. See
|
|
165
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
166
|
-
|
|
167
|
-
## [0.0.8-alpha.7](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.6...@ohif/extension-dicom-pdf@0.0.8-alpha.7) (2019-08-08)
|
|
168
|
-
|
|
169
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
170
|
-
|
|
171
|
-
# Change Log
|
|
172
|
-
|
|
173
|
-
All notable changes to this project will be documented in this file. See
|
|
174
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
175
|
-
|
|
176
|
-
## [0.0.8-alpha.6](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.5...@ohif/extension-dicom-pdf@0.0.8-alpha.6) (2019-08-08)
|
|
177
|
-
|
|
178
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
179
|
-
|
|
180
|
-
# Change Log
|
|
181
|
-
|
|
182
|
-
All notable changes to this project will be documented in this file. See
|
|
183
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
184
|
-
|
|
185
|
-
## [0.0.8-alpha.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.4...@ohif/extension-dicom-pdf@0.0.8-alpha.5) (2019-08-08)
|
|
186
|
-
|
|
187
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
188
|
-
|
|
189
|
-
# Change Log
|
|
190
|
-
|
|
191
|
-
All notable changes to this project will be documented in this file. See
|
|
192
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
193
|
-
|
|
194
|
-
## [0.0.8-alpha.4](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.3...@ohif/extension-dicom-pdf@0.0.8-alpha.4) (2019-08-08)
|
|
195
|
-
|
|
196
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
197
|
-
|
|
198
|
-
# Change Log
|
|
199
|
-
|
|
200
|
-
All notable changes to this project will be documented in this file. See
|
|
201
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
202
|
-
|
|
203
|
-
## [0.0.8-alpha.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.2...@ohif/extension-dicom-pdf@0.0.8-alpha.3) (2019-08-08)
|
|
204
|
-
|
|
205
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
206
|
-
|
|
207
|
-
# Change Log
|
|
208
|
-
|
|
209
|
-
All notable changes to this project will be documented in this file. See
|
|
210
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
211
|
-
|
|
212
|
-
## [0.0.8-alpha.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.1...@ohif/extension-dicom-pdf@0.0.8-alpha.2) (2019-08-07)
|
|
213
|
-
|
|
214
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
215
|
-
|
|
216
|
-
## [0.0.8-alpha.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.0...@ohif/extension-dicom-pdf@0.0.8-alpha.1) (2019-08-07)
|
|
217
|
-
|
|
218
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
|
219
|
-
|
|
220
|
-
## 0.0.8-alpha.0 (2019-08-05)
|
|
221
|
-
|
|
222
|
-
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|