dwv 0.31.0-beta.2 → 0.31.0-beta.3

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! dwv 0.31.0-beta.2 2022-03-22 15:40:31 */
1
+ /*! dwv 0.31.0-beta.3 2022-03-22 16:38:42 */
2
2
  // Inspired from umdjs
3
3
  // See https://github.com/umdjs/umd/blob/master/templates/returnExports.js
4
4
  (function (root, factory) {
@@ -2917,6 +2917,17 @@ dwv.ctrl.ViewController = function (view) {
2917
2917
  this.getPositionFromPlanePoint({x: x, y: y}));
2918
2918
  };
2919
2919
 
2920
+ /**
2921
+ * Set the current index.
2922
+ *
2923
+ * @param {dwv.math.Index} index The index.
2924
+ * @param {boolean} silent If true, does not fire a positionchange event.
2925
+ * @returns {boolean} False if not in bounds.
2926
+ */
2927
+ this.setCurrentIndex = function (index, silent) {
2928
+ return view.setCurrentIndex(index, silent);
2929
+ };
2930
+
2920
2931
  /**
2921
2932
  * Get a 3D position from a plane 2D position.
2922
2933
  *
@@ -4495,7 +4506,7 @@ dwv.dicom = dwv.dicom || {};
4495
4506
  * @returns {string} The version of the library.
4496
4507
  */
4497
4508
  dwv.getVersion = function () {
4498
- return '0.31.0-beta.2';
4509
+ return '0.31.0-beta.3';
4499
4510
  };
4500
4511
 
4501
4512
  /**