dwv 0.34.0-beta.16 → 0.34.0-beta.18

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
@@ -79,10 +79,23 @@ export declare class Annotation {
79
79
  */
80
80
  planePoints: Point3D[] | undefined;
81
81
  /**
82
- * Set the associated view controller.
82
+ * Initialise the annotation.
83
83
  *
84
84
  * @param {ViewController} viewController The associated view controller.
85
85
  */
86
+ init(viewController: ViewController): void;
87
+ /**
88
+ * Check if an input view is compatible with the annotation.
89
+ *
90
+ * @param {PlaneHelper} planeHelper The input view to check.
91
+ * @returns {boolean} True if compatible view.
92
+ */
93
+ isCompatibleView(planeHelper: PlaneHelper): boolean;
94
+ /**
95
+ * Set the associated view controller if it is compatible.
96
+ *
97
+ * @param {ViewController} viewController The view controller.
98
+ */
86
99
  setViewController(viewController: ViewController): void;
87
100
  /**
88
101
  * Get the centroid of the math shape.
@@ -116,12 +129,6 @@ export declare class Annotation {
116
129
  * @returns {object} The factory.
117
130
  */
118
131
  getFactory(): object;
119
- /**
120
- * Get the string type of this annotation.
121
- *
122
- * @returns {string} The type.
123
- */
124
- getType(): string;
125
132
  #private;
126
133
  }
127
134
 
@@ -158,6 +165,18 @@ export declare class AnnotationGroup {
158
165
  * @param {boolean} flag True to make the annotation group editable.
159
166
  */
160
167
  setEditable(flag: boolean): void;
168
+ /**
169
+ * Get the group colour.
170
+ *
171
+ * @returns {string} The colour as hex string.
172
+ */
173
+ getColour(): string;
174
+ /**
175
+ * Set the group colour.
176
+ *
177
+ * @param {string} colour The colour as hex string.
178
+ */
179
+ setColour(colour: string): void;
161
180
  /**
162
181
  * Add a new annotation.
163
182
  *
@@ -407,6 +426,16 @@ export declare class App {
407
426
  * @returns {ViewLayer[]} The layers.
408
427
  */
409
428
  getViewLayersByDataId(dataId: string): ViewLayer[];
429
+ /**
430
+ * Get a list of view layers according to an input callback function.
431
+ *
432
+ * @param {Function} [callbackFn] A function that takes
433
+ * a ViewLayer as input and returns a boolean. If undefined,
434
+ * returns all view layers.
435
+ * @returns {ViewLayer[]} The layers that
436
+ * satisfy the callbackFn.
437
+ */
438
+ getViewLayers(callbackFn?: Function): ViewLayer[];
410
439
  /**
411
440
  * Get the draw layers associated to a data id.
412
441
  * The layer are available after the first loaded item.
@@ -415,6 +444,16 @@ export declare class App {
415
444
  * @returns {DrawLayer[]} The layers.
416
445
  */
417
446
  getDrawLayersByDataId(dataId: string): DrawLayer[];
447
+ /**
448
+ * Get a list of draw layers according to an input callback function.
449
+ *
450
+ * @param {Function} [callbackFn] A function that takes
451
+ * a DrawLayer as input and returns a boolean. If undefined,
452
+ * returns all draw layers.
453
+ * @returns {DrawLayer[]} The layers that
454
+ * satisfy the callbackFn.
455
+ */
456
+ getDrawLayers(callbackFn?: Function): DrawLayer[];
418
457
  /**
419
458
  * Get a layer group by div id.
420
459
  * The layer is available after the first loaded item.
@@ -965,6 +1004,79 @@ export declare class ChangeSegmentColourCommand {
965
1004
  #private;
966
1005
  }
967
1006
 
1007
+ /**
1008
+ * Circle shape.
1009
+ */
1010
+ export declare class Circle {
1011
+ /**
1012
+ * @param {Point2D} centre A Point2D representing the centre
1013
+ * of the circle.
1014
+ * @param {number} radius The radius of the circle.
1015
+ */
1016
+ constructor(centre: Point2D, radius: number);
1017
+ /**
1018
+ * Get the centre (point) of the circle.
1019
+ *
1020
+ * @returns {Point2D} The center (point) of the circle.
1021
+ */
1022
+ getCenter(): Point2D;
1023
+ /**
1024
+ * Get the centroid of the circle.
1025
+ *
1026
+ * @returns {Point2D} The centroid point.
1027
+ */
1028
+ getCentroid(): Point2D;
1029
+ /**
1030
+ * Get the radius of the circle.
1031
+ *
1032
+ * @returns {number} The radius of the circle.
1033
+ */
1034
+ getRadius(): number;
1035
+ /**
1036
+ * Check for equality.
1037
+ *
1038
+ * @param {Circle} rhs The object to compare to.
1039
+ * @returns {boolean} True if both objects are equal.
1040
+ */
1041
+ equals(rhs: Circle): boolean;
1042
+ /**
1043
+ * Get the surface of the circle.
1044
+ *
1045
+ * @returns {number} The surface of the circle.
1046
+ */
1047
+ getSurface(): number;
1048
+ /**
1049
+ * Get the surface of the circle according to a spacing.
1050
+ *
1051
+ * @param {Scalar2D} spacing2D The 2D spacing.
1052
+ * @returns {number} The surface of the circle multiplied by the given
1053
+ * spacing or null for null spacings.
1054
+ */
1055
+ getWorldSurface(spacing2D: Scalar2D): number;
1056
+ /**
1057
+ * Get the rounded limits of the circle.
1058
+ *
1059
+ * See: {@link https://en.wikipedia.org/wiki/Circle#Equations}.
1060
+ *
1061
+ * Circle formula: `x*x + y*y = r*r`.
1062
+ *
1063
+ * Implies: `y = (+-) sqrt(r*r - x*x)`.
1064
+ *
1065
+ * @returns {number[][][]} The rounded limits:
1066
+ * list of [x, y] pairs (min, max).
1067
+ */
1068
+ getRound(): number[][][];
1069
+ /**
1070
+ * Quantify an circle according to view information.
1071
+ *
1072
+ * @param {ViewController} viewController The associated view controller.
1073
+ * @param {string[]} flags A list of stat values to calculate.
1074
+ * @returns {object} A quantification object.
1075
+ */
1076
+ quantify(viewController: ViewController, flags: string[]): object;
1077
+ #private;
1078
+ }
1079
+
968
1080
  /**
969
1081
  * Colour map: red, green and blue components
970
1082
  * to associate with intensity values.
@@ -1885,6 +1997,86 @@ export declare class DrawShapeHandler {
1885
1997
  #private;
1886
1998
  }
1887
1999
 
2000
+ /**
2001
+ * Ellipse shape.
2002
+ */
2003
+ export declare class Ellipse {
2004
+ /**
2005
+ * @param {Point2D} centre A Point2D representing the centre
2006
+ * of the ellipse.
2007
+ * @param {number} a The radius of the ellipse on the horizontal axe.
2008
+ * @param {number} b The radius of the ellipse on the vertical axe.
2009
+ */
2010
+ constructor(centre: Point2D, a: number, b: number);
2011
+ /**
2012
+ * Get the centre (point) of the ellipse.
2013
+ *
2014
+ * @returns {Point2D} The center (point) of the ellipse.
2015
+ */
2016
+ getCenter(): Point2D;
2017
+ /**
2018
+ * Get the centroid of the ellipse.
2019
+ *
2020
+ * @returns {Point2D} The centroid point.
2021
+ */
2022
+ getCentroid(): Point2D;
2023
+ /**
2024
+ * Get the radius of the ellipse on the horizontal axe.
2025
+ *
2026
+ * @returns {number} The radius of the ellipse on the horizontal axe.
2027
+ */
2028
+ getA(): number;
2029
+ /**
2030
+ * Get the radius of the ellipse on the vertical axe.
2031
+ *
2032
+ * @returns {number} The radius of the ellipse on the vertical axe.
2033
+ */
2034
+ getB(): number;
2035
+ /**
2036
+ * Check for equality.
2037
+ *
2038
+ * @param {Ellipse} rhs The object to compare to.
2039
+ * @returns {boolean} True if both objects are equal.
2040
+ */
2041
+ equals(rhs: Ellipse): boolean;
2042
+ /**
2043
+ * Get the surface of the ellipse.
2044
+ *
2045
+ * @returns {number} The surface of the ellipse.
2046
+ */
2047
+ getSurface(): number;
2048
+ /**
2049
+ * Get the surface of the ellipse according to a spacing.
2050
+ *
2051
+ * @param {Scalar2D} spacing2D The 2D spacing.
2052
+ * @returns {number} The surface of the ellipse multiplied by the given
2053
+ * spacing or null for null spacings.
2054
+ */
2055
+ getWorldSurface(spacing2D: Scalar2D): number;
2056
+ /**
2057
+ * Get the rounded limits of the ellipse.
2058
+ *
2059
+ * See: {@link https://en.wikipedia.org/wiki/Ellipse#Standard_equation}.
2060
+ *
2061
+ * Ellipse formula: `x*x / a*a + y*y / b*b = 1`.
2062
+ *
2063
+ * Implies: `y = (+-)(b/a) * sqrt(a*a - x*x)`.
2064
+ *
2065
+ * @returns {number[][][]} The rounded limits:
2066
+ * list of [x, y] pairs (min, max).
2067
+ */
2068
+ getRound(): number[][][];
2069
+ /**
2070
+ * Quantify an ellipse according to view information.
2071
+ *
2072
+ * @param {ViewController} viewController The associated view controller.
2073
+ * @param {string[]} flags A list of stat values to calculate.
2074
+ * @returns {object} A quantification object.
2075
+ */
2076
+ quantify(viewController: ViewController, flags: string[]): object;
2077
+ #private;
2078
+ }
2079
+
1888
2080
  /**
1889
2081
  * 2D/3D Geometry class.
1890
2082
  */
@@ -2299,6 +2491,13 @@ declare class Image_2 {
2299
2491
  * @returns {Point3D|undefined} The origin.
2300
2492
  */
2301
2493
  getOriginForImageUid(uid: string): Point3D | undefined;
2494
+ /**
2495
+ * Check if the image includes an UID.
2496
+ *
2497
+ * @param {string} uid The UID.
2498
+ * @returns {boolean} True if present.
2499
+ */
2500
+ includesImageUid(uid: string): boolean;
2302
2501
  /**
2303
2502
  * Check if this image includes the input uids.
2304
2503
  *
@@ -2823,6 +3022,35 @@ export declare class LayerGroup {
2823
3022
  * a layer with the input id.
2824
3023
  */
2825
3024
  includes(id: string): boolean;
3025
+ /**
3026
+ * Get a list of view layers according to an input callback function.
3027
+ *
3028
+ * @param {Function} [callbackFn] A function that takes
3029
+ * a ViewLayer as input and returns a boolean. If undefined,
3030
+ * returns all view layers.
3031
+ * @returns {ViewLayer[]} The layers that
3032
+ * satisfy the callbackFn.
3033
+ */
3034
+ getViewLayers(callbackFn?: Function): ViewLayer[];
3035
+ /**
3036
+ * Test if one of the view layers satisfies an input callbackFn.
3037
+ *
3038
+ * @param {Function} callbackFn A function that takes
3039
+ * a ViewLayer as input and returns a boolean.
3040
+ * @returns {boolean} True if one of the ViewLayers
3041
+ * satisfies the callbackFn.
3042
+ */
3043
+ someViewLayer(callbackFn: Function): boolean;
3044
+ /**
3045
+ * Get a list of draw layers according to an input callback function.
3046
+ *
3047
+ * @param {Function} [callbackFn] A function that takes
3048
+ * a DrawLayer as input and returns a boolean. If undefined,
3049
+ * returns all draw layers.
3050
+ * @returns {DrawLayer[]} The layers that
3051
+ * satisfy the callbackFn.
3052
+ */
3053
+ getDrawLayers(callbackFn?: Function): DrawLayer[];
2826
3054
  /**
2827
3055
  * Get the number of view layers handled by this class.
2828
3056
  *
@@ -2945,14 +3173,6 @@ export declare class LayerGroup {
2945
3173
  * Remove the tooltip html div.
2946
3174
  */
2947
3175
  removeTooltipDiv(): void;
2948
- /**
2949
- * Test if one of the view layers satisfies an input callbackFn.
2950
- *
2951
- * @param {Function} callbackFn A function that takes a ViewLayer as input
2952
- * and returns a boolean.
2953
- * @returns {boolean} True if one of the ViewLayers satisfies the callbackFn.
2954
- */
2955
- someViewLayer(callbackFn: Function): boolean;
2956
3176
  /**
2957
3177
  * Can the input position be set on one of the view layers.
2958
3178
  *
@@ -3582,7 +3802,7 @@ export declare class PlaneHelper {
3582
3802
  * Get a list of points that define the plane at position k.
3583
3803
  *
3584
3804
  * @param {number} k The slice index value.
3585
- * @returns {Point3D[]} A couple of 3D points.
3805
+ * @returns {Point3D[]} An origin and 2 cosines vectors.
3586
3806
  */
3587
3807
  getPlanePoints(k: number): Point3D[];
3588
3808
  /**
@@ -3838,6 +4058,137 @@ export declare class Point3D {
3838
4058
  */
3839
4059
  export declare function precisionRound(number: number, precision: number): number;
3840
4060
 
4061
+ /**
4062
+ * Protractor shape: 3 points from which to calculate an angle.
4063
+ */
4064
+ export declare class Protractor {
4065
+ /**
4066
+ * @param {Point2D[]} points The list of Point2D that make
4067
+ * the protractor.
4068
+ */
4069
+ constructor(points: Point2D[]);
4070
+ /**
4071
+ * Get a point of the list.
4072
+ *
4073
+ * @param {number} index The index of the point
4074
+ * to get (beware, no size check).
4075
+ * @returns {Point2D|undefined} The Point2D at the given index.
4076
+ */
4077
+ getPoint(index: number): Point2D | undefined;
4078
+ /**
4079
+ * Get the length of the path (should be 3).
4080
+ *
4081
+ * @returns {number} The length of the path.
4082
+ */
4083
+ getLength(): number;
4084
+ /**
4085
+ * Get the centroid of the protractor.
4086
+ *
4087
+ * @returns {Point2D} THe centroid point.
4088
+ */
4089
+ getCentroid(): Point2D;
4090
+ /**
4091
+ * Quantify a path according to view information.
4092
+ *
4093
+ * @param {ViewController} _viewController The associated view controller.
4094
+ * @param {string[]} _flags A list of stat values to calculate.
4095
+ * @returns {object} A quantification object.
4096
+ */
4097
+ quantify(_viewController: ViewController, _flags: string[]): object;
4098
+ #private;
4099
+ }
4100
+
4101
+ /**
4102
+ * Rectangle shape.
4103
+ */
4104
+ export declare class Rectangle {
4105
+ /**
4106
+ * @param {Point2D} begin A Point2D representing the beginning
4107
+ * of the rectangle.
4108
+ * @param {Point2D} end A Point2D representing the end
4109
+ * of the rectangle.
4110
+ */
4111
+ constructor(begin: Point2D, end: Point2D);
4112
+ /**
4113
+ * Get the begin point of the rectangle.
4114
+ *
4115
+ * @returns {Point2D} The begin point of the rectangle.
4116
+ */
4117
+ getBegin(): Point2D;
4118
+ /**
4119
+ * Get the end point of the rectangle.
4120
+ *
4121
+ * @returns {Point2D} The end point of the rectangle.
4122
+ */
4123
+ getEnd(): Point2D;
4124
+ /**
4125
+ * Check for equality.
4126
+ *
4127
+ * @param {Rectangle} rhs The object to compare to.
4128
+ * @returns {boolean} True if both objects are equal.
4129
+ */
4130
+ equals(rhs: Rectangle): boolean;
4131
+ /**
4132
+ * Get the surface of the rectangle.
4133
+ *
4134
+ * @returns {number} The surface of the rectangle.
4135
+ */
4136
+ getSurface(): number;
4137
+ /**
4138
+ * Get the surface of the rectangle according to a spacing.
4139
+ *
4140
+ * @param {Scalar2D} spacing2D The 2D spacing.
4141
+ * @returns {number} The surface of the rectangle multiplied by the given
4142
+ * spacing or null for null spacings.
4143
+ */
4144
+ getWorldSurface(spacing2D: Scalar2D): number;
4145
+ /**
4146
+ * Get the real width of the rectangle.
4147
+ *
4148
+ * @returns {number} The real width of the rectangle.
4149
+ */
4150
+ getRealWidth(): number;
4151
+ /**
4152
+ * Get the real height of the rectangle.
4153
+ *
4154
+ * @returns {number} The real height of the rectangle.
4155
+ */
4156
+ getRealHeight(): number;
4157
+ /**
4158
+ * Get the width of the rectangle.
4159
+ *
4160
+ * @returns {number} The width of the rectangle.
4161
+ */
4162
+ getWidth(): number;
4163
+ /**
4164
+ * Get the height of the rectangle.
4165
+ *
4166
+ * @returns {number} The height of the rectangle.
4167
+ */
4168
+ getHeight(): number;
4169
+ /**
4170
+ * Get the rounded limits of the rectangle.
4171
+ *
4172
+ * @returns {object} The rounded limits as {min, max} (Point2D).
4173
+ */
4174
+ getRound(): object;
4175
+ /**
4176
+ * Get the centroid of the rectangle.
4177
+ *
4178
+ * @returns {Point2D} The centroid point.
4179
+ */
4180
+ getCentroid(): Point2D;
4181
+ /**
4182
+ * Quantify a rectangle according to view information.
4183
+ *
4184
+ * @param {ViewController} viewController The associated view controller.
4185
+ * @param {string[]} flags A list of stat values to calculate.
4186
+ * @returns {object} A quantification object.
4187
+ */
4188
+ quantify(viewController: ViewController, flags: string[]): object;
4189
+ #private;
4190
+ }
4191
+
3841
4192
  /**
3842
4193
  * Rescale Slope and Intercept.
3843
4194
  */
@@ -3912,6 +4263,58 @@ export declare class RGB {
3912
4263
  b: number;
3913
4264
  }
3914
4265
 
4266
+ /**
4267
+ * Region Of Interest shape.
4268
+ * Note: should be a closed path.
4269
+ */
4270
+ export declare class ROI {
4271
+ /**
4272
+ * @param {Point2D[]} [points] Optional initial point list.
4273
+ */
4274
+ constructor(points?: Point2D[]);
4275
+ /**
4276
+ * Get a point of the list at a given index.
4277
+ *
4278
+ * @param {number} index The index of the point to get
4279
+ * (beware, no size check).
4280
+ * @returns {Point2D|undefined} The Point2D at the given index.
4281
+ */
4282
+ getPoint(index: number): Point2D | undefined;
4283
+ /**
4284
+ * Get the point list.
4285
+ *
4286
+ * @returns {Point2D[]} The list.
4287
+ */
4288
+ getPoints(): Point2D[];
4289
+ /**
4290
+ * Get the length of the point list.
4291
+ *
4292
+ * @returns {number} The length of the point list.
4293
+ */
4294
+ getLength(): number;
4295
+ /**
4296
+ * Add a point to the ROI.
4297
+ *
4298
+ * @param {Point2D} point The Point2D to add.
4299
+ */
4300
+ addPoint(point: Point2D): void;
4301
+ /**
4302
+ * Add points to the ROI.
4303
+ *
4304
+ * @param {Point2D[]} rhs The array of POints2D to add.
4305
+ */
4306
+ addPoints(rhs: Point2D[]): void;
4307
+ /**
4308
+ * Get the centroid of the roi. Only valid for
4309
+ * a non-self-intersecting closed polygon.
4310
+ * Ref: {@link https://en.wikipedia.org/wiki/Centroid#Of_a_polygon}.
4311
+ *
4312
+ * @returns {Point2D} The centroid point.
4313
+ */
4314
+ getCentroid(): Point2D;
4315
+ #private;
4316
+ }
4317
+
3915
4318
  /**
3916
4319
  * Mutable 2D scalar ({x,y}).
3917
4320
  */
@@ -4359,22 +4762,76 @@ export declare const toolList: {
4359
4762
  [x: string]: any;
4360
4763
  };
4361
4764
 
4362
- export declare namespace toolOptions {
4363
- export namespace draw {
4364
- { ArrowFactory };
4365
- { CircleFactory };
4366
- { EllipseFactory };
4367
- { ProtractorFactory };
4368
- { RectangleFactory };
4369
- { RoiFactory };
4370
- { RulerFactory };
4371
- }
4372
- export namespace filter {
4373
- { Threshold };
4374
- { Sobel };
4375
- { Sharpen };
4376
- }
4377
- }
4765
+ /**
4766
+ * List of client provided tool options to be added to
4767
+ * the default ones.
4768
+ *
4769
+ * @example
4770
+ * // custom factory
4771
+ * class LoveFactory {
4772
+ * getName() {return 'love';}
4773
+ * static supports(mathShape) {return mathShape instanceof ROI;}
4774
+ * getNPoints() {return 1;}
4775
+ * getTimeout() {return 0;}
4776
+ * setAnnotationMathShape(annotation, points) {
4777
+ * const px = points[0].getX();
4778
+ * const py = points[0].getY();
4779
+ * annotation.mathShape = new dwv.ROI([
4780
+ * new dwv.Point2D(px+15,py), new dwv.Point2D(px+10,py-10),
4781
+ * new dwv.Point2D(px,py), new dwv.Point2D(px-10,py-10),
4782
+ * new dwv.Point2D(px-15,py), new dwv.Point2D(px,py+20)
4783
+ * ]);
4784
+ * annotation.getFactory = function () {return new LoveFactory();}
4785
+ * }
4786
+ * createShapeGroup(annotation, style) {
4787
+ * const roi = annotation.mathShape;
4788
+ * // konva line
4789
+ * const arr = [];
4790
+ * for (let i = 0; i < roi.getLength(); ++i) {
4791
+ * arr.push(roi.getPoint(i).getX());
4792
+ * arr.push(roi.getPoint(i).getY());
4793
+ * }
4794
+ * const shape = new Konva.Line({
4795
+ * name: 'shape', points: arr,
4796
+ * stroke: 'red', strokeWidth: 2,
4797
+ * closed: true
4798
+ * });
4799
+ * // konva group
4800
+ * const group = new Konva.Group();
4801
+ * group.name('love-group');
4802
+ * group.visible(true);
4803
+ * group.id(annotation.id);
4804
+ * group.add(shape);
4805
+ * return group;
4806
+ * }
4807
+ * }
4808
+ * // pass it to dwv option list
4809
+ * dwv.toolOptions['draw'] = {LoveFactory};
4810
+ * // create the dwv app
4811
+ * const app = new dwv.App();
4812
+ * // initialise
4813
+ * const viewConfig0 = new dwv.ViewConfig('layerGroup0');
4814
+ * const viewConfigs = {'*': [viewConfig0]};
4815
+ * const options = new dwv.AppOptions(viewConfigs);
4816
+ * options.tools = {Draw: {options: ['Love']}};
4817
+ * app.init(options);
4818
+ * // activate tool
4819
+ * app.addEventListener('load', function () {
4820
+ * app.setTool('Draw');
4821
+ * app.setToolFeatures({shapeName: 'Love'});
4822
+ * });
4823
+ * // load dicom data
4824
+ * app.loadURLs([
4825
+ * 'https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm'
4826
+ * ]);
4827
+ *
4828
+ * @type {Object<string, Object<string, any>>}
4829
+ */
4830
+ export declare const toolOptions: {
4831
+ [x: string]: {
4832
+ [x: string]: any;
4833
+ };
4834
+ };
4378
4835
 
4379
4836
  /**
4380
4837
  * Immutable 3D vector.
@@ -4621,6 +5078,13 @@ export declare class View {
4621
5078
  * @returns {Point3D|undefined} The origin.
4622
5079
  */
4623
5080
  getOriginForImageUid(uid: string): Point3D | undefined;
5081
+ /**
5082
+ * Check if the image includes an UID.
5083
+ *
5084
+ * @param {string} uid The UID.
5085
+ * @returns {boolean} True if present.
5086
+ */
5087
+ includesImageUid(uid: string): boolean;
4624
5088
  /**
4625
5089
  * Check if the current position (default) or
4626
5090
  * the provided position is in bounds.
@@ -4877,6 +5341,13 @@ export declare class ViewController {
4877
5341
  * @returns {Point3D|undefined} The origin.
4878
5342
  */
4879
5343
  getOriginForImageUid(uid: string): Point3D | undefined;
5344
+ /**
5345
+ * Check if the image includes an UID.
5346
+ *
5347
+ * @param {string} uid The UID.
5348
+ * @returns {boolean} True if present.
5349
+ */
5350
+ includesImageUid(uid: string): boolean;
4880
5351
  /**
4881
5352
  * Get the current oriented index.
4882
5353
  *