dicom-three 0.0.0-stage → 0.1.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +94 -2
  4. package/THIRD_PARTY_NOTICES.md +32 -0
  5. package/dist/THIRD_PARTY_LICENSES.txt +209 -0
  6. package/dist/assets/decodeDicomSeries-Cuz_Ucce.js +72556 -0
  7. package/dist/assets/dicom.worker-_n6H46nx.js +60 -0
  8. package/dist/assets/index-BFX7TgQR.js +16 -0
  9. package/dist/assets/index-Cg7QXfcH.js +8 -0
  10. package/dist/dicom3.js +2416 -0
  11. package/dist/dicom3.umd.cjs +427 -0
  12. package/dist/types/index.d.ts +5 -0
  13. package/dist/types/libs/index.d.ts +1 -0
  14. package/dist/types/libs/typedArrayConstructor.d.ts +9 -0
  15. package/dist/types/loaders/dicomLoader.d.ts +38 -0
  16. package/dist/types/loaders/dicomPreloader.d.ts +28 -0
  17. package/dist/types/loaders/dicomWorkerLoader.d.ts +32 -0
  18. package/dist/types/loaders/index.d.ts +3 -0
  19. package/dist/types/parsers/dicomDataSet.d.ts +43 -0
  20. package/dist/types/parsers/dicomParser.d.ts +194 -0
  21. package/dist/types/parsers/index.d.ts +2 -0
  22. package/dist/types/stack/assembleStackData.d.ts +5 -0
  23. package/dist/types/stack/extractPixelData.d.ts +10 -0
  24. package/dist/types/stack/extractPreprocessParams.d.ts +10 -0
  25. package/dist/types/stack/getTypedArrayForDicom.d.ts +8 -0
  26. package/dist/types/stack/index.d.ts +2 -0
  27. package/dist/types/stack/preprocessParams.d.ts +8 -0
  28. package/dist/types/stack/seriesGeometry.d.ts +36 -0
  29. package/dist/types/stack/seriesOrder.d.ts +15 -0
  30. package/dist/types/stack/stack.d.ts +46 -0
  31. package/dist/types/stack/stackData.d.ts +24 -0
  32. package/dist/types/stack/textureConfig.d.ts +8 -0
  33. package/dist/types/stack/textureFactory.d.ts +9 -0
  34. package/dist/types/stack/validateParsers.d.ts +9 -0
  35. package/dist/types/utils/index.d.ts +2 -0
  36. package/dist/types/utils/slicePlane.d.ts +30 -0
  37. package/dist/types/utils/stackGeometry.d.ts +14 -0
  38. package/dist/types/viewers/index.d.ts +4 -0
  39. package/dist/types/viewers/obliqueSlice/geometry.d.ts +30 -0
  40. package/dist/types/viewers/obliqueSlice/index.d.ts +1 -0
  41. package/dist/types/viewers/obliqueSlice/obliqueSlice.d.ts +46 -0
  42. package/dist/types/viewers/obliqueSlice/shaders/generateFragment.d.ts +2 -0
  43. package/dist/types/viewers/orthoSlicer/orthoSlicer.d.ts +41 -0
  44. package/dist/types/viewers/orthoSlicer/shaders/generateFragment.d.ts +6 -0
  45. package/dist/types/viewers/shared/fn.d.ts +4 -0
  46. package/dist/types/viewers/shared/lifecycle.d.ts +5 -0
  47. package/dist/types/viewers/shared/sliceWindow.d.ts +19 -0
  48. package/dist/types/viewers/shared/voxelCoordinates.d.ts +2 -0
  49. package/dist/types/viewers/slice/index.d.ts +1 -0
  50. package/dist/types/viewers/slice/slice.d.ts +40 -0
  51. package/dist/types/viewers/volume/index.d.ts +3 -0
  52. package/dist/types/viewers/volume/presets.d.ts +203 -0
  53. package/dist/types/viewers/volume/shaders/generateFragment.d.ts +6 -0
  54. package/dist/types/viewers/volume/types.d.ts +30 -0
  55. package/dist/types/viewers/volume/volumeRaycaster.d.ts +70 -0
  56. package/docs/architecture.md +272 -0
  57. package/docs/integration.md +215 -0
  58. package/docs/release.md +19 -0
  59. package/package.json +71 -5
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 — release candidate
4
+
5
+ - Unified voxel-center coordinates, bounds and sampling for slice and volume viewers.
6
+ - Added validated arbitrary slice planes, physical offsets and geometry buffer reuse.
7
+ - Added viewer lifecycle and change events for application-driven rendering.
8
+ - Unified spatial assembly across ordinary and worker loading, including per-frame ordering and measured slice displacement.
9
+ - Separated frame sequences from spatial volumes and rejected unsupported irregular/mixed series.
10
+ - Prepared ESM/CJS exports, public declarations, Three.js peer dependencies and installed-package checks.
11
+ - Fixed packaged module-worker discovery in downstream production bundles; Vite applications require worker.format='es'.
12
+ - Added browser-facing raw dataset types, MIT/third-party notices, prepack validation and GitLab package verification.
13
+
14
+ Linear interpolation, linked MPR and thick slabs are deferred.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dicom-three contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,95 @@
1
- # Temporary Holding Version
1
+ # dicom-three
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DICOM loading, regular spatial volume assembly, slice viewing and volume rendering with Three.js and WebGL2.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install dicom-three three@^0.184.0
9
+ # TypeScript applications:
10
+ npm install -D @types/three@^0.184.0
11
+ ```
12
+
13
+ Three.js r184 is the supported peer version for 0.1.0. Use the same Three.js installation throughout the application, including R3F or Threlte. The library provides framework-independent Three.js objects, not React/Svelte components.
14
+
15
+ ## Load and display
16
+
17
+ Run in a browser with WebGL2. The application owns the renderer, camera, scene and render loop.
18
+
19
+ ```ts
20
+ import { dicomPreloader, DicomWorkerLoader, Stack, Slice } from 'dicom-three';
21
+
22
+ const loader = new DicomWorkerLoader();
23
+ const series = await dicomPreloader(files); // File[] or FileList from the application
24
+ if (!series[0]) throw new Error('No DICOM series found');
25
+ const stack = Stack.fromData(await loader.loadSeries(series[0]));
26
+ const slice = Slice.fromAxis(stack, 'z', 0);
27
+ scene.add(slice); // application's THREE.Scene
28
+
29
+ slice.addEventListener('change', requestFrame); // application's render/invalidate callback
30
+ slice.index = Math.min(1, stack.numberOfFrames - 1);
31
+ slice.setWindow(40, 400);
32
+
33
+ // On teardown, after all viewers sharing this Stack have finished:
34
+ slice.removeEventListener('change', requestFrame);
35
+ slice.dispose();
36
+ stack.textureFactory.dispose();
37
+ loader.dispose();
38
+ ```
39
+
40
+ The default loader creates a module worker from packaged assets. Serve these assets with the application; its CSP must allow the worker. A custom `workerFactory` can be supplied when the host manages worker URLs. The release check verifies Vite's production bundle; other bundlers should be checked in the target application.
41
+
42
+ For Vite (including Vite-based framework applications), enable ES worker chunks in `vite.config.ts`:
43
+
44
+ ```ts
45
+ export default { worker: { format: 'es' } };
46
+ ```
47
+
48
+ The worker dynamically imports its decoder. Vite's default IIFE worker output cannot represent those chunks. For TypeScript browser applications, use `moduleResolution: 'Bundler'`; the release check uses strict checking with `skipLibCheck: false` and no Node globals.
49
+
50
+ For an arbitrary physical plane:
51
+
52
+ ```ts
53
+ import { Vector3 } from 'three';
54
+ import { ObliqueSlice, getStackCenter, convertSlicePlane, offsetSlicePlane } from 'dicom-three';
55
+
56
+ if (!stack.hasSpatialVolume()) throw new Error('Use Slice Z to view this frame sequence');
57
+ const reference = convertSlicePlane(stack, {
58
+ origin: getStackCenter(stack), normal: new Vector3(0, 0, 1),
59
+ }, 'lps');
60
+ const oblique = new ObliqueSlice(stack, reference);
61
+ scene.add(oblique);
62
+ oblique.setPlane(offsetSlicePlane(reference, 5)); // absolute 5 mm from reference
63
+ // Dispose oblique before releasing its shared Stack texture.
64
+ ```
65
+
66
+ Other viewers: `OrthoSlicer` groups three data-axis slices; `VolumeRaycaster` provides composite, MIP and iso modes. Both require a spatial volume. `Stack.create(parsers)` supports the ordinary parser path, while `Stack.fromData` accepts serialized or synthetic volume data. Node ESM/CJS imports are supported; rendering and the default Worker API require a browser.
67
+
68
+ ## Coordinate and resource contract
69
+
70
+ - Integer data/IJK coordinates identify voxel centers; outer bounds are `[-0.5, N-0.5]`.
71
+ - LPS is patient space in millimetres; Three.js world space may include parent transformations.
72
+ - Assembly sorts by the slice normal and measures the full inter-slice displacement. Nominal SliceThickness does not override known positions.
73
+ - Viewers own their geometry and material. The Stack owner releases the shared texture after every consumer finishes.
74
+ - `ObliqueSlice` reuses geometry buffers. Read active vertices through `vertexCount` and indices through `drawRange`; render on `change`.
75
+
76
+ See [integration](docs/integration.md) and [architecture](docs/architecture.md) for details and tolerances.
77
+
78
+ ## Scope of 0.1.0
79
+
80
+ Scalar 8/16-bit integer and 32-bit float slice textures, nearest sampling, regular spatial stacks including constant in-plane shifts, and frame-sequence viewing through Slice Z. Spatially inconsistent/irregular series, changing rescale parameters and mixed spatial/temporal volumes are rejected rather than resampled. XA and unlocated/cine sequences do not acquire artificial depth.
81
+
82
+ No linear interpolation, linked MPR utilities, thick-slab modes, RGB slice support, automatic 4D splitting or resampling. Codec/container support is limited to what the decoder can return; encapsulated multi-frame decoding is not added by this package. Synthetic release fixtures exercise uncompressed Explicit VR Little Endian files and real worker transfer.
83
+
84
+ ## Development and release verification
85
+
86
+ ```sh
87
+ npm ci
88
+ npm test
89
+ npm run build
90
+ npm run release:check
91
+ ```
92
+
93
+ `release:check` builds and packs the library, installs the archive in an isolated temporary consumer, verifies ESM/CJS and strict TypeScript, and builds a Vite production application. It records artifact paths under `local/release-check/latest.json`. Serve that consumer with `vite preview` and open it in a WebGL2 browser to verify the real worker and GPU result. `npm pack` also runs tests and the build through `prepack`. No command in the release check publishes to a registry.
94
+
95
+ MIT. See [LICENSE](LICENSE) and [third-party notices](THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,32 @@
1
+ # Third-party notices
2
+
3
+ `src/parsers/dicomParser.ts` contains code adapted from AMI's DICOM parser:
4
+ https://github.com/FNNDSC/ami/blob/master/src/parsers/parsers.dicom.js
5
+
6
+ AMI license: https://github.com/FNNDSC/ami/blob/master/LICENSE
7
+
8
+ The MIT License (MIT)
9
+
10
+ Copyright (c) 2015 FNNDSC / CHB
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Runtime dependencies and bundled worker codecs retain their respective licenses.
31
+ Installations include dependency license files; the worker bundle's accompanying
32
+ license notices are generated during the release build.
@@ -0,0 +1,209 @@
1
+ # Third-party notices
2
+
3
+ `src/parsers/dicomParser.ts` contains code adapted from AMI's DICOM parser:
4
+ https://github.com/FNNDSC/ami/blob/master/src/parsers/parsers.dicom.js
5
+
6
+ AMI license: https://github.com/FNNDSC/ami/blob/master/LICENSE
7
+
8
+ The MIT License (MIT)
9
+
10
+ Copyright (c) 2015 FNNDSC / CHB
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Runtime dependencies and bundled worker codecs retain their respective licenses.
31
+ Installations include dependency license files; the worker bundle's accompanying
32
+ license notices are generated during the release build.
33
+
34
+
35
+ ========================================================================
36
+ @cornerstonejs/dicom-codec 1.0.7 (ISC)
37
+
38
+ MIT License
39
+
40
+ Copyright (c) 2019 Open Health Imaging Foundation
41
+
42
+ Permission is hereby granted, free of charge, to any person obtaining a copy
43
+ of this software and associated documentation files (the "Software"), to deal
44
+ in the Software without restriction, including without limitation the rights
45
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46
+ copies of the Software, and to permit persons to whom the Software is
47
+ furnished to do so, subject to the following conditions:
48
+
49
+ The above copyright notice and this permission notice shall be included in all
50
+ copies or substantial portions of the Software.
51
+
52
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
58
+ SOFTWARE.
59
+
60
+
61
+ ========================================================================
62
+ browser-or-node 2.1.1 (MIT)
63
+
64
+ The MIT License (MIT)
65
+
66
+ Copyright (c) 2018 Dineshkumar Pandiyan <flexdinesh@gmail.com>
67
+
68
+ Permission is hereby granted, free of charge, to any person obtaining a copy
69
+ of this software and associated documentation files (the "Software"), to deal
70
+ in the Software without restriction, including without limitation the rights
71
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
+ copies of the Software, and to permit persons to whom the Software is
73
+ furnished to do so, subject to the following conditions:
74
+
75
+ The above copyright notice and this permission notice shall be included in all
76
+ copies or substantial portions of the Software.
77
+
78
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
84
+ SOFTWARE.
85
+
86
+
87
+ ========================================================================
88
+ dicom-parser 1.8.21 (MIT)
89
+
90
+ The MIT License (MIT)
91
+
92
+ Copyright (c) 2014 Chris Hafey (chafey@gmail.com)
93
+
94
+ Permission is hereby granted, free of charge, to any person obtaining a copy
95
+ of this software and associated documentation files (the "Software"), to deal
96
+ in the Software without restriction, including without limitation the rights
97
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
98
+ copies of the Software, and to permit persons to whom the Software is
99
+ furnished to do so, subject to the following conditions:
100
+
101
+ The above copyright notice and this permission notice shall be included in all
102
+ copies or substantial portions of the Software.
103
+
104
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
106
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
107
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
110
+ SOFTWARE.
111
+
112
+ ========================================================================
113
+ @cornerstonejs/codec-big-endian 0.1.0 (ISC)
114
+
115
+ This upstream npm package declares ISC but ships no standalone license file. See its package.json and retained notices in the worker bundle.
116
+
117
+
118
+ ========================================================================
119
+ @cornerstonejs/codec-charls 1.2.3 (MIT)
120
+
121
+ MIT License
122
+
123
+ Copyright (c) 2020 Chris Hafey
124
+
125
+ Permission is hereby granted, free of charge, to any person obtaining a copy
126
+ of this software and associated documentation files (the "Software"), to deal
127
+ in the Software without restriction, including without limitation the rights
128
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
129
+ copies of the Software, and to permit persons to whom the Software is
130
+ furnished to do so, subject to the following conditions:
131
+
132
+ The above copyright notice and this permission notice shall be included in all
133
+ copies or substantial portions of the Software.
134
+
135
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
136
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
137
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
138
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
139
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
140
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
141
+ SOFTWARE.
142
+
143
+
144
+ ========================================================================
145
+ @cornerstonejs/codec-libjpeg-turbo-8bit 1.2.2 (ISC)
146
+
147
+ This upstream npm package declares ISC but ships no standalone license file. See its package.json and retained notices in the worker bundle.
148
+
149
+
150
+ ========================================================================
151
+ @cornerstonejs/codec-little-endian 0.0.6 (ISC)
152
+
153
+ This upstream npm package declares ISC but ships no standalone license file. See its package.json and retained notices in the worker bundle.
154
+
155
+
156
+ ========================================================================
157
+ @cornerstonejs/codec-openjpeg 1.2.4 (MIT)
158
+
159
+ This upstream npm package declares MIT but ships no standalone license file. See its package.json and retained notices in the worker bundle.
160
+
161
+
162
+ ========================================================================
163
+ @cornerstonejs/codec-openjph 2.4.7 (MIT)
164
+
165
+ MIT License
166
+
167
+ Copyright (c) 2020 Chris Hafey
168
+
169
+ Permission is hereby granted, free of charge, to any person obtaining a copy
170
+ of this software and associated documentation files (the "Software"), to deal
171
+ in the Software without restriction, including without limitation the rights
172
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
173
+ copies of the Software, and to permit persons to whom the Software is
174
+ furnished to do so, subject to the following conditions:
175
+
176
+ The above copyright notice and this permission notice shall be included in all
177
+ copies or substantial portions of the Software.
178
+
179
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
180
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
181
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
182
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
183
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
184
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
185
+ SOFTWARE.
186
+
187
+
188
+ ========================================================================
189
+ jpeg-lossless-decoder-js 2.1.2 (MIT)
190
+
191
+ Copyright (c) 2015 RII-UTHSCSA
192
+
193
+ Permission is hereby granted, free of charge, to any person obtaining a copy
194
+ of this software and associated documentation files (the "Software"), to deal
195
+ in the Software without restriction, including without limitation the rights
196
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
197
+ copies of the Software, and to permit persons to whom the Software is
198
+ furnished to do so, subject to the following conditions:
199
+
200
+ The above copyright notice and this permission notice shall be included in
201
+ all copies or substantial portions of the Software.
202
+
203
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
204
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
205
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
206
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
207
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
208
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
209
+ THE SOFTWARE.