dwv 0.35.0-beta.18 → 0.35.0-beta.18.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/dist/dwv.d.ts CHANGED
@@ -1350,15 +1350,19 @@ export declare class DicomCode {
1350
1350
  */
1351
1351
  export declare class DicomData {
1352
1352
  /**
1353
- * @param {object} meta The DICOM meta data.
1353
+ * @param {Object<string, DataElement>} meta The DICOM meta data.
1354
1354
  */
1355
- constructor(meta: object);
1355
+ constructor(meta: {
1356
+ [x: string]: DataElement;
1357
+ });
1356
1358
  /**
1357
1359
  * DICOM meta data.
1358
1360
  *
1359
- * @type {object}
1361
+ * @type {Object<string, DataElement>}
1360
1362
  */
1361
- meta: object;
1363
+ meta: {
1364
+ [x: string]: DataElement;
1365
+ };
1362
1366
  /**
1363
1367
  * Image extracted from meta data.
1364
1368
  *
@@ -1371,6 +1375,12 @@ export declare class DicomData {
1371
1375
  * @type {AnnotationGroup|undefined}
1372
1376
  */
1373
1377
  annotationGroup: AnnotationGroup | undefined;
1378
+ /**
1379
+ * Image buffer used to build image.
1380
+ *
1381
+ * @type {any|undefined}
1382
+ */
1383
+ buffer: any | undefined;
1374
1384
  }
1375
1385
 
1376
1386
  /**
@@ -3416,12 +3426,14 @@ export declare class MaskFactory {
3416
3426
  * @param {Uint8Array | Int8Array |
3417
3427
  * Uint16Array | Int16Array |
3418
3428
  * Uint32Array | Int32Array} pixelBuffer The pixel buffer.
3429
+ * @param {Image} [refImage] Reference image, code will use its
3430
+ * origins if present (best) or try to calculate them.
3419
3431
  * @returns {Image} A new Image.
3420
3432
  * @throws Error for missing or wrong data.
3421
3433
  */
3422
3434
  create(dataElements: {
3423
3435
  [x: string]: DataElement;
3424
- }, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array): Image_2;
3436
+ }, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array, refImage?: Image_2): Image_2;
3425
3437
  /**
3426
3438
  * Convert a mask image into a DICOM segmentation object.
3427
3439
  *