@kitware/vtk.js 24.9.0 → 24.10.0

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.
Files changed (58) hide show
  1. package/Common/Core/Math/index.js +1 -1
  2. package/Common/Core/Math.js +1 -1
  3. package/Common/Core/ScalarsToColors/Constants.d.ts +18 -0
  4. package/Common/Core/ScalarsToColors.d.ts +6 -16
  5. package/Common/DataModel/Box.d.ts +4 -4
  6. package/Common/DataModel/CardinalSpline1D.d.ts +8 -4
  7. package/Common/DataModel/CardinalSpline1D.js +133 -4
  8. package/Common/DataModel/Cell.js +3 -1
  9. package/Common/DataModel/CellTypes.js +6 -1
  10. package/Common/DataModel/ITKHelper.d.ts +3 -3
  11. package/Common/DataModel/KochanekSpline1D.d.ts +8 -4
  12. package/Common/DataModel/KochanekSpline1D.js +103 -2
  13. package/Common/DataModel/Line.d.ts +8 -3
  14. package/Common/DataModel/Line.js +16 -11
  15. package/Common/DataModel/Plane.js +1 -1
  16. package/Common/DataModel/PolyData/Constants.d.ts +6 -0
  17. package/Common/DataModel/PolyLine.d.ts +63 -0
  18. package/Common/DataModel/PolyLine.js +84 -0
  19. package/Common/DataModel/Polygon.js +1 -1
  20. package/Common/DataModel/Spline1D/Constants.js +17 -0
  21. package/Common/DataModel/Spline1D.d.ts +20 -2
  22. package/Common/DataModel/Spline3D/Constants.d.ts +9 -0
  23. package/Common/DataModel/Spline3D.d.ts +4 -9
  24. package/Common/DataModel/Spline3D.js +20 -15
  25. package/Filters/General/ImageCropFilter.d.ts +9 -6
  26. package/Filters/Sources/LineSource.js +1 -1
  27. package/Filters/Sources/PlaneSource.js +1 -1
  28. package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -1
  29. package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
  30. package/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +11 -0
  31. package/Interaction/Widgets/OrientationMarkerWidget.d.ts +2 -6
  32. package/Rendering/Core/CellPicker.js +53 -32
  33. package/Rendering/Core/Mapper/Constants.d.ts +26 -0
  34. package/Rendering/Core/Mapper.d.ts +5 -21
  35. package/Rendering/Core/Property/Constants.d.ts +24 -0
  36. package/Rendering/Core/Property.d.ts +6 -20
  37. package/Rendering/Core/RenderWindowInteractor/Constants.d.ts +31 -0
  38. package/Rendering/Core/RenderWindowInteractor.d.ts +223 -121
  39. package/Rendering/Core/Viewport.d.ts +2 -4
  40. package/Rendering/Core/VolumeMapper/Constants.d.ts +19 -0
  41. package/Rendering/Core/VolumeMapper.d.ts +5 -9
  42. package/Rendering/Core/VolumeProperty.d.ts +5 -13
  43. package/Rendering/Misc/FullScreenRenderWindow.d.ts +3 -2
  44. package/Rendering/OpenGL/RenderWindow.d.ts +28 -10
  45. package/Widgets/Manipulators/LineManipulator.js +1 -1
  46. package/Widgets/Representations/ResliceCursorContextRepresentation.js +1 -1
  47. package/Widgets/Representations/SplineContextRepresentation.js +28 -9
  48. package/Widgets/Representations/WidgetRepresentation.js +1 -1
  49. package/Widgets/Widgets3D/AngleWidget.js +1 -1
  50. package/Widgets/Widgets3D/LineWidget/behavior.js +1 -1
  51. package/Widgets/Widgets3D/LineWidget/helpers.js +1 -1
  52. package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
  53. package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +1 -1
  54. package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -1
  55. package/Widgets/Widgets3D/SplineWidget/state.js +10 -0
  56. package/Widgets/Widgets3D/SplineWidget.js +1 -1
  57. package/index.d.ts +9 -0
  58. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ export declare enum Device {
2
+ Unknown = 0,
3
+ LeftController = 1,
4
+ RightController = 2,
5
+ }
6
+
7
+ export declare enum Input {
8
+ Unknown = 0,
9
+ Trigger = 1,
10
+ TrackPad = 2,
11
+ Grip = 3,
12
+ Thumbstick = 4,
13
+ A = 5,
14
+ B = 6,
15
+ ApplicationMenu = 7, // Not exposed in WebXR API
16
+ }
17
+
18
+ export declare enum Axis {
19
+ Unknown = 0,
20
+ TouchpadX = 1,
21
+ TouchpadY = 2,
22
+ ThumbstickX = 3,
23
+ ThumbstickY = 4,
24
+ }
25
+
26
+ declare const _default: {
27
+ Device: typeof Device;
28
+ Input: typeof Input;
29
+ Axis: typeof Axis;
30
+ };
31
+ export default _default;
@@ -1,18 +1,45 @@
1
1
  import { vtkObject, vtkSubscription } from './../../interfaces';
2
2
  import vtkRenderer from './Renderer';
3
-
4
- export enum Device {
5
- Unknown,
6
- LeftController,
7
- RightController,
8
- }
9
-
10
- export enum Input {
11
- Unknown,
12
- Trigger,
13
- TrackPad,
14
- Grip,
15
- ApplicationMenu,
3
+ import { Axis, Device, Input } from './RenderWindowInteractor/Constants';
4
+
5
+ declare enum handledEvents {
6
+ 'StartAnimation',
7
+ 'Animation',
8
+ 'EndAnimation',
9
+ 'MouseEnter',
10
+ 'MouseLeave',
11
+ 'StartMouseMove',
12
+ 'MouseMove',
13
+ 'EndMouseMove',
14
+ 'LeftButtonPress',
15
+ 'LeftButtonRelease',
16
+ 'MiddleButtonPress',
17
+ 'MiddleButtonRelease',
18
+ 'RightButtonPress',
19
+ 'RightButtonRelease',
20
+ 'KeyPress',
21
+ 'KeyDown',
22
+ 'KeyUp',
23
+ 'StartMouseWheel',
24
+ 'MouseWheel',
25
+ 'EndMouseWheel',
26
+ 'StartPinch',
27
+ 'Pinch',
28
+ 'EndPinch',
29
+ 'StartPan',
30
+ 'Pan',
31
+ 'EndPan',
32
+ 'StartRotate',
33
+ 'Rotate',
34
+ 'EndRotate',
35
+ 'Button3D',
36
+ 'Move3D',
37
+ 'StartPointerLock',
38
+ 'EndPointerLock',
39
+ 'StartInteraction',
40
+ 'Interaction',
41
+ 'EndInteraction',
42
+ 'AnimationFrameRateUpdate',
16
43
  }
17
44
 
18
45
  /**
@@ -125,182 +152,218 @@ export interface vtkRenderWindowInteractor extends vtkObject {
125
152
  getStillUpdateRate(): number;
126
153
 
127
154
  /**
128
- *
155
+ *
156
+ * @param {IRenderWindowInteractorEvent} callData
129
157
  */
130
158
  invokeStartAnimation(callData: IRenderWindowInteractorEvent): void;
131
159
 
132
160
  /**
133
- *
161
+ *
162
+ * @param {IRenderWindowInteractorEvent} callData
134
163
  */
135
164
  invokeAnimation(callData: IRenderWindowInteractorEvent): void;
136
165
 
137
166
  /**
138
- *
167
+ *
168
+ * @param {IRenderWindowInteractorEvent} callData
139
169
  */
140
170
  invokeEndAnimation(callData: IRenderWindowInteractorEvent): void;
141
171
 
142
172
  /**
143
- *
173
+ *
174
+ * @param {IRenderWindowInteractorEvent} callData
144
175
  */
145
176
  invokeMouseEnter(callData: IRenderWindowInteractorEvent): void;
146
177
 
147
178
  /**
148
- *
179
+ *
180
+ * @param {IRenderWindowInteractorEvent} callData
149
181
  */
150
182
  invokeMouseLeave(callData: IRenderWindowInteractorEvent): void;
151
183
 
152
184
  /**
153
- *
185
+ *
186
+ * @param {IRenderWindowInteractorEvent} callData
154
187
  */
155
188
  invokeStartMouseMove(callData: IRenderWindowInteractorEvent): void;
156
189
 
157
190
  /**
158
- *
191
+ *
192
+ * @param {IRenderWindowInteractorEvent} callData
159
193
  */
160
194
  invokeMouseMove(callData: IRenderWindowInteractorEvent): void;
161
195
 
162
196
  /**
163
- *
197
+ *
198
+ * @param {IRenderWindowInteractorEvent} callData
164
199
  */
165
200
  invokeEndMouseMove(callData: IRenderWindowInteractorEvent): void;
166
201
 
167
202
  /**
168
- *
203
+ *
204
+ * @param {IRenderWindowInteractorEvent} callData
169
205
  */
170
206
  invokeLeftButtonPress(callData: IRenderWindowInteractorEvent): void;
171
207
 
172
208
  /**
173
- *
209
+ *
210
+ * @param {IRenderWindowInteractorEvent} callData
174
211
  */
175
212
  invokeLeftButtonRelease(callData: IRenderWindowInteractorEvent): void;
176
213
 
177
214
  /**
178
- *
215
+ *
216
+ * @param {IRenderWindowInteractorEvent} callData
179
217
  */
180
218
  invokeMiddleButtonPress(callData: IRenderWindowInteractorEvent): void;
181
219
 
182
220
  /**
183
- *
221
+ *
222
+ * @param {IRenderWindowInteractorEvent} callData
184
223
  */
185
224
  invokeMiddleButtonRelease(callData: IRenderWindowInteractorEvent): void;
186
225
 
187
226
  /**
188
- *
227
+ *
228
+ * @param {IRenderWindowInteractorEvent} callData
189
229
  */
190
230
  invokeRightButtonPress(callData: IRenderWindowInteractorEvent): void;
191
231
 
192
232
  /**
193
- *
233
+ *
234
+ * @param {IRenderWindowInteractorEvent} callData
194
235
  */
195
236
  invokeRightButtonRelease(callData: IRenderWindowInteractorEvent): void;
196
237
 
197
238
  /**
198
- *
239
+ *
240
+ * @param {IRenderWindowInteractorEvent} callData
199
241
  */
200
242
  invokeKeyPress(callData: IRenderWindowInteractorEvent): void;
201
243
 
202
244
  /**
203
- *
245
+ *
246
+ * @param {IRenderWindowInteractorEvent} callData
204
247
  */
205
248
  invokeKeyDown(callData: IRenderWindowInteractorEvent): void;
206
249
 
207
250
  /**
208
- *
251
+ *
252
+ * @param {IRenderWindowInteractorEvent} callData
209
253
  */
210
254
  invokeKeyUp(callData: IRenderWindowInteractorEvent): void;
211
255
 
212
256
  /**
213
- *
257
+ *
258
+ * @param {IRenderWindowInteractorEvent} callData
214
259
  */
215
260
  invokeStartMouseWheel(callData: IRenderWindowInteractorEvent): void;
216
261
 
217
262
  /**
218
- *
263
+ *
264
+ * @param {IRenderWindowInteractorEvent} callData
219
265
  */
220
266
  invokeMouseWheel(callData: IRenderWindowInteractorEvent): void;
221
267
 
222
268
  /**
223
- *
269
+ *
270
+ * @param {IRenderWindowInteractorEvent} callData
224
271
  */
225
272
  invokeEndMouseWheel(callData: IRenderWindowInteractorEvent): void;
226
273
 
227
274
  /**
228
- *
275
+ *
276
+ * @param {IRenderWindowInteractorEvent} callData
229
277
  */
230
278
  invokeStartPinch(callData: IRenderWindowInteractorEvent): void;
231
279
 
232
280
  /**
233
- *
281
+ *
282
+ * @param {IRenderWindowInteractorEvent} callData
234
283
  */
235
284
  invokePinch(callData: IRenderWindowInteractorEvent): void;
236
285
 
237
286
  /**
238
- *
287
+ *
288
+ * @param {IRenderWindowInteractorEvent} callData
239
289
  */
240
290
  invokeEndPinch(callData: IRenderWindowInteractorEvent): void;
241
291
 
242
292
  /**
243
- *
293
+ *
294
+ * @param {IRenderWindowInteractorEvent} callData
244
295
  */
245
296
  invokeStartPan(callData: IRenderWindowInteractorEvent): void;
246
297
 
247
298
  /**
248
- *
299
+ *
300
+ * @param {IRenderWindowInteractorEvent} callData
249
301
  */
250
302
  invokePan(callData: IRenderWindowInteractorEvent): void;
251
303
 
252
304
  /**
253
- *
305
+ *
306
+ * @param {IRenderWindowInteractorEvent} callData
254
307
  */
255
308
  invokeEndPan(callData: IRenderWindowInteractorEvent): void;
256
309
 
257
310
  /**
258
- *
311
+ *
312
+ * @param {IRenderWindowInteractorEvent} callData
259
313
  */
260
314
  invokeStartRotate(callData: IRenderWindowInteractorEvent): void;
261
315
 
262
316
  /**
263
- *
317
+ *
318
+ * @param {IRenderWindowInteractorEvent} callData
264
319
  */
265
320
  invokeRotate(callData: IRenderWindowInteractorEvent): void;
266
321
 
267
322
  /**
268
- *
323
+ *
324
+ * @param {IRenderWindowInteractorEvent} callData
269
325
  */
270
326
  invokeEndRotate(callData: IRenderWindowInteractorEvent): void;
271
327
 
272
328
  /**
273
- *
329
+ *
330
+ * @param {IRenderWindowInteractorEvent} callData
274
331
  */
275
332
  invokeButton3D(callData: IRenderWindowInteractorEvent): void;
276
333
 
277
334
  /**
278
- *
335
+ *
336
+ * @param {IRenderWindowInteractorEvent} callData
279
337
  */
280
338
  invokeMove3D(callData: IRenderWindowInteractorEvent): void;
281
339
 
282
340
  /**
283
- *
341
+ *
342
+ * @param {IRenderWindowInteractorEvent} callData
284
343
  */
285
344
  invokeStartPointerLock(callData: IRenderWindowInteractorEvent): void;
286
345
 
287
346
  /**
288
- *
347
+ *
348
+ * @param {IRenderWindowInteractorEvent} callData
289
349
  */
290
350
  invokeEndPointerLock(callData: IRenderWindowInteractorEvent): void;
291
351
 
292
352
  /**
293
- *
353
+ *
354
+ * @param {IRenderWindowInteractorEvent} callData
294
355
  */
295
356
  invokeStartInteractionEvent(callData: IRenderWindowInteractorEvent): void;
296
357
 
297
358
  /**
298
- *
359
+ *
360
+ * @param {IRenderWindowInteractorEvent} callData
299
361
  */
300
362
  invokeInteractionEvent(callData: IRenderWindowInteractorEvent): void;
301
363
 
302
364
  /**
303
- *
365
+ *
366
+ * @param {IRenderWindowInteractorEvent} callData
304
367
  */
305
368
  invokeEndInteractionEvent(callData: IRenderWindowInteractorEvent): void;
306
369
 
@@ -311,212 +374,247 @@ export interface vtkRenderWindowInteractor extends vtkObject {
311
374
  onStartAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
312
375
 
313
376
  /**
314
- *
315
- * @param cb The callback to be called
377
+ *
378
+ * @param {InteractorEventCallback} cb The callback to be called.
379
+ * @param {Number} [priority] The priority of the event.
316
380
  */
317
381
  onAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
318
382
 
319
383
  /**
320
- *
321
- * @param cb The callback to be called
384
+ *
385
+ * @param {InteractorEventCallback} cb The callback to be called.
386
+ * @param {Number} [priority] The priority of the event.
322
387
  */
323
388
  onEndAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
324
389
 
325
390
  /**
326
- *
327
- * @param cb The callback to be called
391
+ *
392
+ * @param {InteractorEventCallback} cb The callback to be called.
393
+ * @param {Number} [priority] The priority of the event.
328
394
  */
329
395
  onMouseEnter(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
330
396
 
331
397
  /**
332
- *
333
- * @param cb The callback to be called
398
+ *
399
+ * @param {InteractorEventCallback} cb The callback to be called.
400
+ * @param {Number} [priority] The priority of the event.
334
401
  */
335
402
  onMouseLeave(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
336
403
 
337
404
  /**
338
- *
339
- * @param cb The callback to be called
405
+ *
406
+ * @param {InteractorEventCallback} cb The callback to be called.
407
+ * @param {Number} [priority] The priority of the event.
340
408
  */
341
409
  onStartMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
342
410
 
343
411
  /**
344
- *
345
- * @param cb The callback to be called
412
+ *
413
+ * @param {InteractorEventCallback} cb The callback to be called.
414
+ * @param {Number} [priority] The priority of the event.
346
415
  */
347
416
  onMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
348
417
 
349
418
  /**
350
- *
351
- * @param cb The callback to be called
419
+ *
420
+ * @param {InteractorEventCallback} cb The callback to be called.
421
+ * @param {Number} [priority] The priority of the event.
352
422
  */
353
423
  onEndMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
354
424
 
355
425
  /**
356
- *
357
- * @param cb The callback to be called
426
+ *
427
+ * @param {InteractorEventCallback} cb The callback to be called.
428
+ * @param {Number} [priority] The priority of the event.
358
429
  */
359
430
  onLeftButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
360
431
 
361
432
  /**
362
- *
363
- * @param cb The callback to be called
433
+ *
434
+ * @param {InteractorEventCallback} cb The callback to be called.
435
+ * @param {Number} [priority] The priority of the event.
364
436
  */
365
437
  onLeftButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
366
438
 
367
439
  /**
368
- *
369
- * @param cb The callback to be called
440
+ *
441
+ * @param {InteractorEventCallback} cb The callback to be called.
442
+ * @param {Number} [priority] The priority of the event.
370
443
  */
371
444
  onMiddleButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
372
445
 
373
446
  /**
374
- *
375
- * @param cb The callback to be called
447
+ *
448
+ * @param {InteractorEventCallback} cb The callback to be called.
449
+ * @param {Number} [priority] The priority of the event.
376
450
  */
377
451
  onMiddleButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
378
452
 
379
453
  /**
380
- *
381
- * @param cb The callback to be called
454
+ *
455
+ * @param {InteractorEventCallback} cb The callback to be called.
456
+ * @param {Number} [priority] The priority of the event.
382
457
  */
383
458
  onRightButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
384
459
 
385
460
  /**
386
- *
387
- * @param cb The callback to be called
461
+ *
462
+ * @param {InteractorEventCallback} cb The callback to be called.
463
+ * @param {Number} [priority] The priority of the event.
388
464
  */
389
465
  onRightButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
390
466
 
391
467
  /**
392
- *
393
- * @param cb The callback to be called
468
+ *
469
+ * @param {InteractorEventCallback} cb The callback to be called.
470
+ * @param {Number} [priority] The priority of the event.
394
471
  */
395
472
  onKeyPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
396
473
 
397
474
  /**
398
- *
399
- * @param cb The callback to be called
475
+ *
476
+ * @param {InteractorEventCallback} cb The callback to be called.
477
+ * @param {Number} [priority] The priority of the event.
400
478
  */
401
479
  onKeyDown(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
402
480
 
403
481
  /**
404
- *
405
- * @param cb The callback to be called
482
+ *
483
+ * @param {InteractorEventCallback} cb The callback to be called.
484
+ * @param {Number} [priority] The priority of the event.
406
485
  */
407
486
  onKeyUp(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
408
487
 
409
488
  /**
410
- *
411
- * @param cb The callback to be called
489
+ *
490
+ * @param {InteractorEventCallback} cb The callback to be called.
491
+ * @param {Number} [priority] The priority of the event.
412
492
  */
413
493
  onStartMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
414
494
 
415
495
  /**
416
- *
417
- * @param cb The callback to be called
496
+ *
497
+ * @param {InteractorEventCallback} cb The callback to be called.
498
+ * @param {Number} [priority] The priority of the event.
418
499
  */
419
500
  onMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
420
501
 
421
502
  /**
422
- *
423
- * @param cb The callback to be called
503
+ *
504
+ * @param {InteractorEventCallback} cb The callback to be called.
505
+ * @param {Number} [priority] The priority of the event.
424
506
  */
425
507
  onEndMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
426
508
 
427
509
  /**
428
- *
429
- * @param cb The callback to be called
510
+ *
511
+ * @param {InteractorEventCallback} cb The callback to be called.
512
+ * @param {Number} [priority] The priority of the event.
430
513
  */
431
514
  onStartPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
432
515
 
433
516
  /**
434
- *
435
- * @param cb The callback to be called
517
+ *
518
+ * @param {InteractorEventCallback} cb The callback to be called.
519
+ * @param {Number} [priority] The priority of the event.
436
520
  */
437
521
  onPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
438
522
 
439
523
  /**
440
- *
441
- * @param cb The callback to be called
524
+ *
525
+ * @param {InteractorEventCallback} cb The callback to be called.
526
+ * @param {Number} [priority] The priority of the event.
442
527
  */
443
528
  onEndPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
444
529
 
445
530
  /**
446
- *
447
- * @param cb The callback to be called
531
+ *
532
+ * @param {InteractorEventCallback} cb The callback to be called.
533
+ * @param {Number} [priority] The priority of the event.
448
534
  */
449
535
  onStartPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
450
536
 
451
537
  /**
452
- *
453
- * @param cb The callback to be called
538
+ *
539
+ * @param {InteractorEventCallback} cb The callback to be called.
540
+ * @param {Number} [priority] The priority of the event.
454
541
  */
455
542
  onPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
456
543
 
457
544
  /**
458
- *
459
- * @param cb The callback to be called
545
+ *
546
+ * @param {InteractorEventCallback} cb The callback to be called.
547
+ * @param {Number} [priority] The priority of the event.
460
548
  */
461
549
  onEndPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
462
550
 
463
551
  /**
464
- *
465
- * @param cb The callback to be called
552
+ *
553
+ * @param {InteractorEventCallback} cb The callback to be called.
554
+ * @param {Number} [priority] The priority of the event.
466
555
  */
467
556
  onStartRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
468
557
 
469
558
  /**
470
- *
471
- * @param cb The callback to be called
559
+ *
560
+ * @param {InteractorEventCallback} cb The callback to be called.
561
+ * @param {Number} [priority] The priority of the event.
472
562
  */
473
563
  onRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
474
564
 
475
565
  /**
476
- *
477
- * @param cb The callback to be called
566
+ *
567
+ * @param {InteractorEventCallback} cb The callback to be called.
568
+ * @param {Number} [priority] The priority of the event.
478
569
  */
479
570
  onEndRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
480
571
 
481
572
  /**
482
- *
483
- * @param cb The callback to be called
573
+ *
574
+ * @param {InteractorEventCallback} cb The callback to be called.
575
+ * @param {Number} [priority] The priority of the event.
484
576
  */
485
577
  onButton3D(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
486
578
 
487
579
  /**
488
- *
489
- * @param cb The callback to be called
580
+ *
581
+ * @param {InteractorEventCallback} cb The callback to be called.
582
+ * @param {Number} [priority] The priority of the event.
490
583
  */
491
584
  onMove3D(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
492
585
 
493
586
  /**
494
- *
495
- * @param cb The callback to be called
587
+ *
588
+ * @param {InteractorEventCallback} cb The callback to be called.
589
+ * @param {Number} [priority] The priority of the event.
496
590
  */
497
591
  onStartPointerLock(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
498
592
 
499
593
  /**
500
- *
501
- * @param cb The callback to be called
594
+ *
595
+ * @param {InteractorEventCallback} cb The callback to be called.
596
+ * @param {Number} [priority] The priority of the event.
502
597
  */
503
598
  onEndPointerLock(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
504
599
 
505
600
  /**
506
- *
507
- * @param cb The callback to be called
601
+ *
602
+ * @param {InteractorEventCallback} cb The callback to be called.
603
+ * @param {Number} [priority] The priority of the event.
508
604
  */
509
605
  onStartInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
510
606
 
511
607
  /**
512
- *
513
- * @param cb The callback to be called
608
+ *
609
+ * @param {InteractorEventCallback} cb The callback to be called.
610
+ * @param {Number} [priority] The priority of the event.
514
611
  */
515
612
  onInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
516
613
 
517
614
  /**
518
- *
519
- * @param cb The callback to be called
615
+ *
616
+ * @param {InteractorEventCallback} cb The callback to be called.
617
+ * @param {Number} [priority] The priority of the event.
520
618
  */
521
619
  onEndInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
522
620
 
@@ -1045,7 +1143,11 @@ export function newInstance(initialValues?: IRenderWindowInteractorInitialValues
1045
1143
  * that event are expected to respond appropriately.
1046
1144
  */
1047
1145
  export declare const vtkRenderWindowInteractor: {
1048
- newInstance: typeof newInstance,
1049
- extend: typeof extend,
1146
+ newInstance: typeof newInstance;
1147
+ extend: typeof extend;
1148
+ handledEvents: typeof handledEvents;
1149
+ Device: typeof Device;
1150
+ Input: typeof Input;
1151
+ Axis: typeof Axis;
1050
1152
  };
1051
1153
  export default vtkRenderWindowInteractor;
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { vtkObject } from './../../interfaces';
3
- import { RGBColor } from './../../types';
3
+ import { RGBColor, Size } from './../../types';
4
4
  import vtkActor2D from './Actor2D';
5
5
  import vtkProp from './Prop';
6
6
 
@@ -58,12 +58,10 @@ export interface vtkViewport extends vtkObject {
58
58
  */
59
59
  getBackgroundByReference(): number[];
60
60
 
61
-
62
-
63
61
  /**
64
62
  *
65
63
  */
66
- getSize(): any;
64
+ getSize(): Size;
67
65
 
68
66
  /**
69
67
  *