@file-viewer/renderer-dicom 3.0.0

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.
@@ -0,0 +1,144 @@
1
+ # Third-party notices
2
+
3
+ This file records the complete production dependency closure of the optional `@file-viewer/renderer-dicom` package, including the Linux-only optional codec dependency. Exact machine-readable versions, SPDX expressions, source repositories, and packaged license/notice filenames are in `THIRD_PARTY_LICENSES.json`.
4
+
5
+ The DICOM renderer is not part of any standard/full package or preset. These dependencies are installed only when this capability is selected, and its Cornerstone implementation is loaded only when a DICOM file is opened.
6
+
7
+ ## Required attribution
8
+
9
+ - `caniuse-lite@1.0.30001810` data is by Ben Briggs and contributors, from <https://github.com/browserslist/caniuse-lite>, licensed under CC-BY-4.0. The renderer does not modify that upstream data. The complete CC-BY-4.0 text is retained as `caniuse-lite/LICENSE` in the installed dependency.
10
+ - `pako@1.0.11` and `pako@2.1.0` contain zlib-derived code by Jean-loup Gailly and Mark Adler under `(MIT AND Zlib)`; their installed source retains the zlib notices and license terms.
11
+ - `spark-md5@3.0.2` is available under `(WTFPL OR MIT)` as declared by the package. Its installed package retains the upstream license file.
12
+ - `argparse@2.0.1` is licensed under Python-2.0 and retains the complete Python Software Foundation license in its installed `LICENSE` file.
13
+ - `dompurify@3.4.13` is dual-licensed as `(MPL-2.0 OR Apache-2.0)`. File Viewer elects Apache-2.0, and the installed `LICENSE` file retains the complete Apache-2.0 text.
14
+
15
+ ### Native libraries statically linked into codec WebAssembly
16
+
17
+ All four codec wrapper packages were built from `cornerstonejs/codecs` commit `8634194b68ab43bde8f35fcc466a36d91ac700b4`. The wrapper package license is not used as a substitute for the linked native library terms:
18
+
19
+ - `CharLS` (`@cornerstonejs/codec-charls@1.2.5`): `BSD-3-Clause`; source `38d95d00671f4cddfa61f3f51eaf81b8bac34543` at https://github.com/cornerstonejs/charls; linked target `charls`; retained files `third-party/native-codecs/charls/LICENSE.md`.
20
+ - `libjpeg-turbo` (`@cornerstonejs/codec-libjpeg-turbo-8bit@1.2.4`): `IJG AND BSD-3-Clause AND Zlib`; source `dc4a93fab38b42d29b89a533409e012570180e28` at https://github.com/cornerstonejs/libjpeg-turbo; linked target `turbojpeg-static`; retained files `third-party/native-codecs/libjpeg-turbo/LICENSE.md`, `third-party/native-codecs/libjpeg-turbo/README.ijg`.
21
+ - `OpenJPEG` (`@cornerstonejs/codec-openjpeg@1.3.2`): `BSD-2-Clause`; source `2d606701e8b7aa83f657d113c3367508e99bd12b` at https://github.com/cornerstonejs/openjpeg; linked target `openjp2`; retained files `third-party/native-codecs/openjpeg/LICENSE`.
22
+ - `OpenJPH` (`@cornerstonejs/codec-openjph@2.4.9`): `BSD-2-Clause`; source `e01c7b7f9e7ecbb15cf13bb45661c9a41ab7fec6` at https://github.com/cornerstonejs/OpenJPH; linked target `openjphsimd`; retained files `third-party/native-codecs/openjph/LICENSE`.
23
+
24
+ **libjpeg-turbo attribution:** This software is based in part on the work of the Independent JPEG Group.
25
+
26
+ The complete libjpeg-turbo `LICENSE.md` and unmodified `README.ijg` are shipped with the package, together with the exact CharLS, OpenJPEG, and OpenJPH license texts. These native components use BSD-style, IJG, and zlib terms; none is LGPL or strong copyleft.
27
+
28
+ None of the Apache-2.0 dependencies in this closure publishes a top-level `NOTICE` file. All top-level license and notice files found in each installed package are recorded in the ledger.
29
+
30
+ ## Exact third-party closure by SPDX expression
31
+
32
+ ### (MIT AND Zlib)
33
+
34
+ - `pako@1.0.11` — https://github.com/nodeca/pako
35
+ - `pako@2.1.0` — https://github.com/nodeca/pako
36
+
37
+ ### (WTFPL OR MIT)
38
+
39
+ - `spark-md5@3.0.2` — https://github.com/satazor/js-spark-md5
40
+
41
+ ### Apache-2.0
42
+
43
+ - `baseline-browser-mapping@2.11.19` — https://github.com/web-platform-dx/baseline-browser-mapping
44
+ - `comlink@4.4.2` — https://github.com/GoogleChromeLabs/comlink
45
+ - `dompurify@3.4.13` — https://github.com/cure53/DOMPurify
46
+
47
+ ### BSD-3-Clause
48
+
49
+ - `@kitware/vtk.js@36.4.1` — https://github.com/Kitware/vtk-js
50
+ - `shelljs@0.8.5` — https://github.com/shelljs/shelljs
51
+ - `source-map-js@1.2.1` — https://github.com/7rulnik/source-map-js
52
+ - `wslink@2.5.0` — https://github.com/kitware/wslink
53
+
54
+ ### CC-BY-4.0
55
+
56
+ - `caniuse-lite@1.0.30001810` — https://github.com/browserslist/caniuse-lite
57
+
58
+ ### ISC
59
+
60
+ - `@cornerstonejs/codec-libjpeg-turbo-8bit@1.2.4` — https://github.com/cornerstonejs/codecs
61
+ - `@msgpack/msgpack@2.8.0` — https://github.com/msgpack/msgpack-javascript
62
+ - `d3-array@3.2.4` — https://github.com/d3/d3-array
63
+ - `d3-color@3.1.0` — https://github.com/d3/d3-color
64
+ - `d3-format@3.1.2` — https://github.com/d3/d3-format
65
+ - `d3-interpolate@3.0.1` — https://github.com/d3/d3-interpolate
66
+ - `d3-scale@4.0.2` — https://github.com/d3/d3-scale
67
+ - `d3-time@3.1.0` — https://github.com/d3/d3-time
68
+ - `d3-time-format@4.1.0` — https://github.com/d3/d3-time-format
69
+ - `electron-to-chromium@1.5.414` — https://github.com/Kilian/electron-to-chromium
70
+ - `fs.realpath@1.0.0` — https://github.com/isaacs/fs.realpath
71
+ - `glob@7.2.0` — https://github.com/isaacs/node-glob
72
+ - `inflight@1.0.6` — https://github.com/npm/inflight
73
+ - `inherits@2.0.4` — https://github.com/isaacs/inherits
74
+ - `internmap@2.0.3` — https://github.com/mbostock/internmap
75
+ - `minimatch@3.1.5` — https://github.com/isaacs/minimatch
76
+ - `once@1.4.0` — https://github.com/isaacs/once
77
+ - `picocolors@1.1.1` — https://github.com/alexeyraspopov/picocolors
78
+ - `wrappy@1.0.2` — https://github.com/npm/wrappy
79
+
80
+ ### MIT
81
+
82
+ - `@babel/runtime-corejs3@7.29.2` — https://github.com/babel/babel
83
+ - `@cornerstonejs/calculate-suv@1.0.3` — https://github.com/cornerstonejs/calculate-suv
84
+ - `@cornerstonejs/codec-charls@1.2.5` — https://github.com/chafey/charls-js
85
+ - `@cornerstonejs/codec-openjpeg@1.3.2` — https://github.com/cornerstonejs/codecs
86
+ - `@cornerstonejs/codec-openjph@2.4.9` — https://github.com/cornerstonejs/codecs
87
+ - `@cornerstonejs/core@5.8.2` — https://github.com/cornerstonejs/cornerstone3D
88
+ - `@cornerstonejs/dicom-image-loader@5.8.2` — https://github.com/cornerstonejs/cornerstone3D
89
+ - `@cornerstonejs/metadata@5.8.2` — https://github.com/cornerstonejs/cornerstone3D
90
+ - `@cornerstonejs/utils@5.8.2` — https://github.com/cornerstonejs/cornerstone3D
91
+ - `@oozcitak/dom@2.0.2` — https://github.com/oozcitak/dom
92
+ - `@oozcitak/infra@2.0.2` — https://github.com/oozcitak/infra
93
+ - `@oozcitak/url@3.0.0` — https://github.com/oozcitak/url
94
+ - `@oozcitak/util@10.0.0` — https://github.com/oozcitak/util
95
+ - `@rollup/rollup-linux-x64-gnu@4.13.0` (platform-optional) — https://github.com/rollup/rollup
96
+ - `@types/trusted-types@2.0.7` (platform-optional) — https://github.com/DefinitelyTyped/DefinitelyTyped
97
+ - `@types/webxr@0.5.5` — https://github.com/DefinitelyTyped/DefinitelyTyped
98
+ - `adm-zip@0.6.0` — https://github.com/cthackers/adm-zip
99
+ - `autoprefixer@10.5.4` — https://github.com/postcss/autoprefixer
100
+ - `balanced-match@1.0.0` — https://github.com/juliangruber/balanced-match
101
+ - `brace-expansion@1.1.18` — https://github.com/juliangruber/brace-expansion
102
+ - `browserslist@4.28.8` — https://github.com/browserslist/browserslist
103
+ - `commander@9.2.0` — https://github.com/tj/commander.js
104
+ - `concat-map@0.0.1` — https://github.com/substack/node-concat-map
105
+ - `core-js-pure@3.50.0` — https://github.com/zloirock/core-js
106
+ - `dcmjs@0.52.0` — https://github.com/dcmjs-org/dcmjs
107
+ - `dicom-parser@1.8.21` — https://github.com/cornerstonejs/dicomParser
108
+ - `es-errors@1.3.0` — https://github.com/ljharb/es-errors
109
+ - `escalade@3.2.0` — https://github.com/lukeed/escalade
110
+ - `fast-deep-equal@3.1.3` — https://github.com/epoberezkin/fast-deep-equal
111
+ - `fflate@0.7.3` — https://github.com/101arrowz/fflate
112
+ - `fraction.js@5.3.4` — https://github.com/rawify/Fraction.js
113
+ - `function-bind@1.1.2` — https://github.com/Raynos/function-bind
114
+ - `gl-matrix@3.4.3` — https://github.com/toji/gl-matrix
115
+ - `gl-matrix@3.4.4` — https://github.com/toji/gl-matrix
116
+ - `hasown@2.0.4` — https://github.com/inspect-js/hasOwn
117
+ - `interpret@1.4.0` — https://github.com/gulpjs/interpret
118
+ - `iota-array@1.0.0` — https://github.com/mikolalysenko/iota-array
119
+ - `is-buffer@1.1.6` — https://github.com/feross/is-buffer
120
+ - `is-core-module@2.16.2` — https://github.com/inspect-js/is-core-module
121
+ - `jpeg-lossless-decoder-js@2.1.2` — https://github.com/rii-mango/JPEGLosslessDecoderJS
122
+ - `js-yaml@4.3.1` — https://github.com/nodeca/js-yaml
123
+ - `lodash.clonedeep@4.5.0` — https://github.com/lodash/lodash
124
+ - `loglevel@1.9.2` — https://github.com/pimterry/loglevel
125
+ - `nanoid@3.3.18` — https://github.com/ai/nanoid
126
+ - `ndarray@1.0.19` — https://github.com/mikolalysenko/ndarray
127
+ - `node-releases@2.0.53` — https://github.com/chicoxyzzy/node-releases
128
+ - `path-is-absolute@1.0.1` — https://github.com/sindresorhus/path-is-absolute
129
+ - `path-parse@1.0.7` — https://github.com/jbgutierrez/path-parse
130
+ - `postcss@8.5.23` — https://github.com/postcss/postcss
131
+ - `postcss-value-parser@4.2.0` — https://github.com/TrySound/postcss-value-parser
132
+ - `rechoir@0.6.2` — https://github.com/tkellen/node-rechoir
133
+ - `resolve@1.22.12` — https://github.com/browserify/resolve
134
+ - `seedrandom@3.0.5` — https://github.com/davidbau/seedrandom
135
+ - `supports-preserve-symlinks-flag@1.0.0` — https://github.com/inspect-js/node-supports-preserve-symlinks-flag
136
+ - `update-browserslist-db@1.3.1` — https://github.com/browserslist/update-db
137
+ - `utif@3.1.0` — https://github.com/photopea/UTIF.js
138
+ - `uuid@11.1.1` — https://github.com/uuidjs/uuid
139
+ - `webworker-promise@0.5.0` — https://github.com/kwolfy/webworker-promise
140
+ - `xmlbuilder2@4.0.3` — https://github.com/oozcitak/xmlbuilder2
141
+
142
+ ### Python-2.0
143
+
144
+ - `argparse@2.0.1` — https://github.com/nodeca/argparse
@@ -0,0 +1 @@
1
+ import '@cornerstonejs/dicom-image-loader';
@@ -0,0 +1,4 @@
1
+ // Importing the pinned loader in a Worker activates its built-in Comlink
2
+ // decodeTask endpoint. Keeping this entry in our package lets consumers bundle
3
+ // the worker without reaching through unexported Cornerstone paths.
4
+ import '@cornerstonejs/dicom-image-loader';
@@ -0,0 +1,3 @@
1
+ import { type FileRenderContext, type FileViewerRenderedInstance } from '@file-viewer/core';
2
+ import type { FileViewerDicomRendererOptions } from './index.js';
3
+ export default function renderDicom(buffer: ArrayBuffer, target: HTMLDivElement, _type?: string, context?: FileRenderContext, options?: FileViewerDicomRendererOptions): Promise<FileViewerRenderedInstance>;