dwv 0.35.0-beta.7 → 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 +74 -25
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +2 -2
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
|
*
|
|
@@ -3919,13 +3926,13 @@ export declare class PlaneHelper {
|
|
|
3919
3926
|
*
|
|
3920
3927
|
* @returns {number} The index.
|
|
3921
3928
|
*/
|
|
3922
|
-
|
|
3929
|
+
getScrollDimIndex(): number;
|
|
3923
3930
|
/**
|
|
3924
3931
|
* Get the native (image) scroll dimension index.
|
|
3925
3932
|
*
|
|
3926
3933
|
* @returns {number} The index.
|
|
3927
3934
|
*/
|
|
3928
|
-
|
|
3935
|
+
getNativeScrollDimIndex(): number;
|
|
3929
3936
|
#private;
|
|
3930
3937
|
}
|
|
3931
3938
|
|
|
@@ -4163,13 +4170,61 @@ export declare class PositionHelper {
|
|
|
4163
4170
|
*
|
|
4164
4171
|
* @returns {number} The scroll index.
|
|
4165
4172
|
*/
|
|
4166
|
-
|
|
4173
|
+
getScrollDimIndex(): number;
|
|
4174
|
+
/**
|
|
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.
|
|
4183
|
+
*
|
|
4184
|
+
* @returns {number} The maximum value.
|
|
4185
|
+
*/
|
|
4186
|
+
getMaximumScrollValue(): number;
|
|
4167
4187
|
/**
|
|
4168
4188
|
* Get the current position.
|
|
4169
4189
|
*
|
|
4170
4190
|
* @returns {Point} The current position.
|
|
4171
4191
|
*/
|
|
4172
|
-
|
|
4192
|
+
getCurrentPosition(): Point;
|
|
4193
|
+
/**
|
|
4194
|
+
* Get the value at dimension index for the current position.
|
|
4195
|
+
*
|
|
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.
|
|
4204
|
+
*/
|
|
4205
|
+
getCurrentPositionScrollValue(): number;
|
|
4206
|
+
/**
|
|
4207
|
+
* Get the current position updated at the provided dimension index
|
|
4208
|
+
* with the input value.
|
|
4209
|
+
*
|
|
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.
|
|
4219
|
+
* @returns {Point} The position.
|
|
4220
|
+
*/
|
|
4221
|
+
getCurrentPositionAtScrollValue(value: number): Point;
|
|
4222
|
+
/**
|
|
4223
|
+
* Get the current index.
|
|
4224
|
+
*
|
|
4225
|
+
* @returns {Index} The current index.
|
|
4226
|
+
*/
|
|
4227
|
+
getCurrentIndex(): Index;
|
|
4173
4228
|
/**
|
|
4174
4229
|
* Set the current position.
|
|
4175
4230
|
*
|
|
@@ -4177,7 +4232,7 @@ export declare class PositionHelper {
|
|
|
4177
4232
|
* @param {boolean} [silent] Flag to fire event or not.
|
|
4178
4233
|
* @returns {boolean} True if possible and in bounds.
|
|
4179
4234
|
*/
|
|
4180
|
-
|
|
4235
|
+
setCurrentPosition(position: Point, silent?: boolean): boolean;
|
|
4181
4236
|
/**
|
|
4182
4237
|
* Set the current position only if it is in the geometry bounds.
|
|
4183
4238
|
*
|
|
@@ -4185,7 +4240,7 @@ export declare class PositionHelper {
|
|
|
4185
4240
|
* @param {boolean} [silent] Flag to fire event or not.
|
|
4186
4241
|
* @returns {boolean} True if possible and in bounds.
|
|
4187
4242
|
*/
|
|
4188
|
-
|
|
4243
|
+
setCurrentPositionSafe(position: Point, silent?: boolean): boolean;
|
|
4189
4244
|
/**
|
|
4190
4245
|
* Merge with another helper.
|
|
4191
4246
|
*
|
|
@@ -4200,12 +4255,6 @@ export declare class PositionHelper {
|
|
|
4200
4255
|
* @returns {boolean} True is the position is in bounds.
|
|
4201
4256
|
*/
|
|
4202
4257
|
isPositionInBounds(position: Point): boolean;
|
|
4203
|
-
/**
|
|
4204
|
-
* Get the current index.
|
|
4205
|
-
*
|
|
4206
|
-
* @returns {Index} The current index.
|
|
4207
|
-
*/
|
|
4208
|
-
getCurrentIndex(): Index;
|
|
4209
4258
|
/**
|
|
4210
4259
|
* Get the current position incremented in the input direction.
|
|
4211
4260
|
*
|
|
@@ -4239,13 +4288,13 @@ export declare class PositionHelper {
|
|
|
4239
4288
|
*
|
|
4240
4289
|
* @returns {boolean} True if possible and in bounds.
|
|
4241
4290
|
*/
|
|
4242
|
-
|
|
4291
|
+
incrementPositionAlongScroll(): boolean;
|
|
4243
4292
|
/**
|
|
4244
4293
|
* Decrement the current position along the scroll dimension.
|
|
4245
4294
|
*
|
|
4246
4295
|
* @returns {boolean} True if possible and in bounds.
|
|
4247
4296
|
*/
|
|
4248
|
-
|
|
4297
|
+
decrementPositionAlongScroll(): boolean;
|
|
4249
4298
|
#private;
|
|
4250
4299
|
}
|
|
4251
4300
|
|
|
@@ -5292,23 +5341,23 @@ export declare class View {
|
|
|
5292
5341
|
*/
|
|
5293
5342
|
getOrigin(position?: Point): Point3D;
|
|
5294
5343
|
/**
|
|
5295
|
-
* Set the current position.
|
|
5344
|
+
* Set the current position via an index.
|
|
5296
5345
|
*
|
|
5297
|
-
* @param {
|
|
5346
|
+
* @param {Index} index The new index.
|
|
5298
5347
|
* @param {boolean} [silent] Flag to fire event or not.
|
|
5299
5348
|
* @returns {boolean} False if not in bounds.
|
|
5300
5349
|
* @fires View#positionchange
|
|
5301
5350
|
*/
|
|
5302
|
-
|
|
5351
|
+
setCurrentIndex(index: Index, silent?: boolean): boolean;
|
|
5303
5352
|
/**
|
|
5304
|
-
* Set
|
|
5353
|
+
* Set current position.
|
|
5305
5354
|
*
|
|
5306
|
-
* @param {
|
|
5355
|
+
* @param {Point} position The new position.
|
|
5307
5356
|
* @param {boolean} [silent] Flag to fire event or not.
|
|
5308
5357
|
* @returns {boolean} False if not in bounds.
|
|
5309
5358
|
* @fires View#positionchange
|
|
5310
5359
|
*/
|
|
5311
|
-
|
|
5360
|
+
setCurrentPosition(position: Point, silent?: boolean): boolean;
|
|
5312
5361
|
/**
|
|
5313
5362
|
* Set the view window/level.
|
|
5314
5363
|
*
|
|
@@ -5380,7 +5429,7 @@ export declare class View {
|
|
|
5380
5429
|
*
|
|
5381
5430
|
* @returns {number} The index.
|
|
5382
5431
|
*/
|
|
5383
|
-
|
|
5432
|
+
getScrollDimIndex(): number;
|
|
5384
5433
|
/**
|
|
5385
5434
|
* Is this view in the same orientation as the image aquisition.
|
|
5386
5435
|
*
|
|
@@ -5552,17 +5601,17 @@ export declare class ViewController {
|
|
|
5552
5601
|
*/
|
|
5553
5602
|
getCurrentOrientedIndex(): Index;
|
|
5554
5603
|
/**
|
|
5555
|
-
* Get the scroll index.
|
|
5604
|
+
* Get the scroll dimension index.
|
|
5556
5605
|
*
|
|
5557
5606
|
* @returns {number} The index.
|
|
5558
5607
|
*/
|
|
5559
|
-
|
|
5608
|
+
getScrollDimIndex(): number;
|
|
5560
5609
|
/**
|
|
5561
|
-
* Get the current scroll
|
|
5610
|
+
* Get the current index scroll value.
|
|
5562
5611
|
*
|
|
5563
5612
|
* @returns {number} The value.
|
|
5564
5613
|
*/
|
|
5565
|
-
|
|
5614
|
+
getCurrentIndexScrollValue(): number;
|
|
5566
5615
|
/**
|
|
5567
5616
|
* Get the first origin or at a given position.
|
|
5568
5617
|
*
|