dwv 0.35.0-beta.8 → 0.35.0-beta.9

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
@@ -3901,6 +3901,13 @@ export declare class PlaneHelper {
3901
3901
  * @returns {Index} The corresponding index.
3902
3902
  */
3903
3903
  worldToIndex(point: Point): Index;
3904
+ /**
3905
+ * Image index to world.
3906
+ *
3907
+ * @param {Index} index The input index.
3908
+ * @returns {Point} The corresponding point.
3909
+ */
3910
+ indexToWorld(index: Index): Point;
3904
3911
  /**
3905
3912
  * Is this view in the same orientation as the image aquisition.
3906
3913
  *
@@ -4165,11 +4172,18 @@ export declare class PositionHelper {
4165
4172
  */
4166
4173
  getScrollDimIndex(): number;
4167
4174
  /**
4168
- * Get the maximum scroll index.
4175
+ * Get the maximum dimension value.
4176
+ *
4177
+ * @param {number} dim The dimension.
4178
+ * @returns {number} The maximum value.
4179
+ */
4180
+ getMaximumDimValue(dim: number): number;
4181
+ /**
4182
+ * Get the maximum scroll value.
4169
4183
  *
4170
- * @returns {number} The maximum index.
4184
+ * @returns {number} The maximum value.
4171
4185
  */
4172
- getMaximumScrollIndex(): number;
4186
+ getMaximumScrollValue(): number;
4173
4187
  /**
4174
4188
  * Get the current position.
4175
4189
  *
@@ -4177,18 +4191,34 @@ export declare class PositionHelper {
4177
4191
  */
4178
4192
  getCurrentPosition(): Point;
4179
4193
  /**
4180
- * Get the scroll index for the current position.
4194
+ * Get the value at dimension index for the current position.
4181
4195
  *
4182
- * @returns {number} The index.
4196
+ * @param {number} dim The dimension.
4197
+ * @returns {number} The value.
4198
+ */
4199
+ getCurrentPositionDimValue(dim: number): number;
4200
+ /**
4201
+ * Get the value at scroll index for the current position.
4202
+ *
4203
+ * @returns {number} The value.
4183
4204
  */
4184
- getCurrentPositionScrollIndex(): number;
4205
+ getCurrentPositionScrollValue(): number;
4185
4206
  /**
4186
- * Get the current position updated at the provided scroll index.
4207
+ * Get the current position updated at the provided dimension index
4208
+ * with the input value.
4187
4209
  *
4188
- * @param {number} index The scroll index.
4210
+ * @param {number} dim The dimension.
4211
+ * @param {number} value The value to used at dimension index.
4212
+ * @returns {Point} The position.
4213
+ */
4214
+ getCurrentPositionAtDimValue(dim: number, value: number): Point;
4215
+ /**
4216
+ * Get the current position updated at scroll index with the input value.
4217
+ *
4218
+ * @param {number} value The value to use at scroll index.
4189
4219
  * @returns {Point} The position.
4190
4220
  */
4191
- getCurrentPositionAtScrollIndex(index: number): Point;
4221
+ getCurrentPositionAtScrollValue(value: number): Point;
4192
4222
  /**
4193
4223
  * Get the current index.
4194
4224
  *
@@ -4202,7 +4232,7 @@ export declare class PositionHelper {
4202
4232
  * @param {boolean} [silent] Flag to fire event or not.
4203
4233
  * @returns {boolean} True if possible and in bounds.
4204
4234
  */
4205
- setCurrentPositon(position: Point, silent?: boolean): boolean;
4235
+ setCurrentPosition(position: Point, silent?: boolean): boolean;
4206
4236
  /**
4207
4237
  * Set the current position only if it is in the geometry bounds.
4208
4238
  *
@@ -4210,7 +4240,7 @@ export declare class PositionHelper {
4210
4240
  * @param {boolean} [silent] Flag to fire event or not.
4211
4241
  * @returns {boolean} True if possible and in bounds.
4212
4242
  */
4213
- setCurrentPositonSafe(position: Point, silent?: boolean): boolean;
4243
+ setCurrentPositionSafe(position: Point, silent?: boolean): boolean;
4214
4244
  /**
4215
4245
  * Merge with another helper.
4216
4246
  *
@@ -5311,23 +5341,23 @@ export declare class View {
5311
5341
  */
5312
5342
  getOrigin(position?: Point): Point3D;
5313
5343
  /**
5314
- * Set the current position.
5344
+ * Set the current position via an index.
5315
5345
  *
5316
- * @param {Point} position The new position.
5346
+ * @param {Index} index The new index.
5317
5347
  * @param {boolean} [silent] Flag to fire event or not.
5318
5348
  * @returns {boolean} False if not in bounds.
5319
5349
  * @fires View#positionchange
5320
5350
  */
5321
- setCurrentPosition(position: Point, silent?: boolean): boolean;
5351
+ setCurrentIndex(index: Index, silent?: boolean): boolean;
5322
5352
  /**
5323
- * Set the current index.
5353
+ * Set current position.
5324
5354
  *
5325
- * @param {Index} index The new index.
5355
+ * @param {Point} position The new position.
5326
5356
  * @param {boolean} [silent] Flag to fire event or not.
5327
5357
  * @returns {boolean} False if not in bounds.
5328
5358
  * @fires View#positionchange
5329
5359
  */
5330
- setCurrentIndex(index: Index, silent?: boolean): boolean;
5360
+ setCurrentPosition(position: Point, silent?: boolean): boolean;
5331
5361
  /**
5332
5362
  * Set the view window/level.
5333
5363
  *