dwv 0.33.0-beta.13 → 0.33.0-beta.15

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.
@@ -1,15 +1,14 @@
1
- Third Party: pdf.js
2
- =====================
1
+ # Third Party: pdf.js
3
2
 
4
- * Web: https://github.com/mozilla/pdf.js
5
- * Version: v1.1.1 (pdf.js) and commit fcaf281 of jpambrun
6
- * Date: copied on 05/05/2015
7
- * Download:
8
- * [jpg.js](https://github.com/mozilla/pdf.js/blob/master/src/core/jpg.js) modified as in
9
- https://github.com/notmasteryet/jpgjs/pull/33
10
- * [jpx.js](https://github.com/jpambrun/jpx-medical/blob/master/jpx.js)
11
- * [arithmetic_decoder.js](https://github.com/mozilla/pdf.js/blob/v1.1.1/src/core/arithmetic_decoder.js)
12
- * [util.js](https://github.com/mozilla/pdf.js/blob/v1.1.1/src/shared/util.js)
13
- * License: Apache 2.0 (see [license.txt](https://github.com/mozilla/pdf.js/blob/master/LICENSE))
14
- * Description: Mozilla's JPEG and JPEG2000 decoder from PDF.js with added support for 16 bit signed grayscale images.
15
- * Purpose for dwv: read DICOM files containing JPEG or JPEG2000 data.
3
+ - Web: https://github.com/mozilla/pdf.js
4
+ - Version: v1.1.1 (pdf.js) and commit fcaf281 of jpambrun
5
+ - Date: copied on 05/05/2015
6
+ - Download:
7
+ - [jpg.js](https://github.com/mozilla/pdf.js/blob/master/src/core/jpg.js) modified as in
8
+ https://github.com/notmasteryet/jpgjs/pull/33
9
+ - [jpx.js](https://github.com/jpambrun/jpx-medical/blob/master/jpx.js)
10
+ - [arithmetic_decoder.js](https://github.com/mozilla/pdf.js/blob/v1.1.1/src/core/arithmetic_decoder.js)
11
+ - [util.js](https://github.com/mozilla/pdf.js/blob/v1.1.1/src/shared/util.js)
12
+ - License: Apache 2.0 (see [license.txt](https://github.com/mozilla/pdf.js/blob/master/LICENSE))
13
+ - Description: Mozilla's JPEG and JPEG2000 decoder from PDF.js with added support for 16 bit signed grayscale images.
14
+ - Purpose for dwv: read DICOM files containing JPEG or JPEG2000 data.
@@ -1,12 +1,11 @@
1
- Third Party: rii-mango
2
- ======================
1
+ # Third Party: rii-mango
3
2
 
4
- JPEGLosslessDecoderJS
5
- ---------------------
6
- * Web: https://github.com/rii-mango/JPEGLosslessDecoderJS
7
- * Version: [2.0.2](https://github.com/rii-mango/JPEGLosslessDecoderJS/releases/tag/v2.0.2)
8
- * Date: 19/03/2017
9
- * Download: see release
10
- * License: MIT (see https://github.com/rii-mango/JPEGLosslessDecoderJS/blob/v2.0.2/LICENSE)
11
- * Description: JPEG Lossless decoder.
12
- * Purpose for dwv: Decode JPEG embeded in DICOM.
3
+ ## JPEGLosslessDecoderJS
4
+
5
+ - Web: https://github.com/rii-mango/JPEGLosslessDecoderJS
6
+ - Version: [2.0.2](https://github.com/rii-mango/JPEGLosslessDecoderJS/releases/tag/v2.0.2)
7
+ - Date: 19/03/2017
8
+ - Download: see release
9
+ - License: MIT (see https://github.com/rii-mango/JPEGLosslessDecoderJS/blob/v2.0.2/LICENSE)
10
+ - Description: JPEG Lossless decoder.
11
+ - Purpose for dwv: Decode JPEG embeded in DICOM.
package/dist/dwv.d.ts CHANGED
@@ -61,9 +61,11 @@ export declare class App {
61
61
  *
62
62
  * @param {Image} image The new image.
63
63
  * @param {object} meta The image meta.
64
+ * @param {string} source The source of the new image,
65
+ * will be passed with load events.
64
66
  * @returns {string} The new image data id.
65
67
  */
66
- addNewImage(image: Image_2, meta: object): string;
68
+ addNewImage(image: Image_2, meta: object, source: string): string;
67
69
  /**
68
70
  * Get the meta data.
69
71
  *
@@ -1089,6 +1091,14 @@ export declare class DrawLayer {
1089
1091
  * Add a flip offset along the layer Y axis.
1090
1092
  */
1091
1093
  addFlipOffsetY(): void;
1094
+ /**
1095
+ * Flip the scale along the layer X axis.
1096
+ */
1097
+ flipScaleX(): void;
1098
+ /**
1099
+ * Flip the scale along the layer Y axis.
1100
+ */
1101
+ flipScaleY(): void;
1092
1102
  /**
1093
1103
  * Flip the scale along the layer Z axis.
1094
1104
  */
@@ -3666,10 +3676,10 @@ export declare class ViewController {
3666
3676
  * Generate display image data to be given to a canvas.
3667
3677
  *
3668
3678
  * @param {ImageData} array The array to fill in.
3669
- * @param {Index} index Optional index at which to generate,
3679
+ * @param {Index} [index] Optional index at which to generate,
3670
3680
  * otherwise generates at current index.
3671
3681
  */
3672
- generateImageData(array: ImageData, index: Index): void;
3682
+ generateImageData(array: ImageData, index?: Index): void;
3673
3683
  /**
3674
3684
  * Set the associated image.
3675
3685
  *
@@ -4002,6 +4012,14 @@ export declare class ViewLayer {
4002
4012
  * Add a flip offset along the layer Y axis.
4003
4013
  */
4004
4014
  addFlipOffsetY(): void;
4015
+ /**
4016
+ * Flip the scale along the layer X axis.
4017
+ */
4018
+ flipScaleX(): void;
4019
+ /**
4020
+ * Flip the scale along the layer Y axis.
4021
+ */
4022
+ flipScaleY(): void;
4005
4023
  /**
4006
4024
  * Flip the scale along the layer Z axis.
4007
4025
  */