@kitware/vtk.js 24.5.0 → 24.5.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.
Files changed (153) hide show
  1. package/Common/Core/Base64.d.ts +4 -2
  2. package/Common/Core/CellArray.d.ts +2 -2
  3. package/Common/Core/DataArray.d.ts +2 -2
  4. package/Common/Core/Endian.d.ts +1 -1
  5. package/Common/Core/ImageHelper.d.ts +1 -1
  6. package/Common/Core/LookupTable.d.ts +1 -1
  7. package/Common/Core/Math.d.ts +1 -1
  8. package/Common/Core/MatrixBuilder.d.ts +1 -1
  9. package/Common/Core/Points.d.ts +2 -2
  10. package/Common/Core/PriorityQueue.d.ts +1 -1
  11. package/Common/Core/ProgressHandler.d.ts +1 -1
  12. package/Common/Core/ScalarsToColors.d.ts +3 -3
  13. package/Common/Core/StringArray.d.ts +1 -1
  14. package/Common/Core/VariantArray.d.ts +1 -1
  15. package/Common/DataModel/Box.d.ts +2 -2
  16. package/Common/DataModel/CardinalSpline1D.d.ts +1 -1
  17. package/Common/DataModel/Cell.d.ts +3 -3
  18. package/Common/DataModel/Cone.d.ts +2 -2
  19. package/Common/DataModel/Cylinder.d.ts +2 -2
  20. package/Common/DataModel/DataSet.d.ts +1 -1
  21. package/Common/DataModel/DataSetAttributes/FieldData.d.ts +4 -2
  22. package/Common/DataModel/DataSetAttributes.d.ts +3 -3
  23. package/Common/DataModel/ImageData.d.ts +1 -1
  24. package/Common/DataModel/Line.d.ts +1 -1
  25. package/Common/DataModel/PiecewiseFunction.d.ts +2 -2
  26. package/Common/DataModel/Plane.d.ts +2 -2
  27. package/Common/DataModel/PointSet.d.ts +2 -2
  28. package/Common/DataModel/PolyData.d.ts +2 -2
  29. package/Common/DataModel/Polygon.d.ts +2 -2
  30. package/Common/DataModel/SelectionNode.d.ts +2 -2
  31. package/Common/DataModel/Sphere.d.ts +2 -2
  32. package/Common/DataModel/Spline1D.d.ts +1 -1
  33. package/Common/DataModel/Spline3D.d.ts +1 -1
  34. package/Common/DataModel/Triangle.d.ts +1 -1
  35. package/Common/Transform/LandmarkTransform.d.ts +2 -2
  36. package/Filters/General/AppendPolyData.d.ts +1 -1
  37. package/Filters/General/ImageCropFilter.d.ts +1 -1
  38. package/Filters/General/ImageOutlineFilter.d.ts +1 -1
  39. package/Filters/General/ImageSliceFilter.d.ts +1 -1
  40. package/Filters/General/ImageStreamline.d.ts +3 -3
  41. package/Filters/General/LineFilter.d.ts +1 -1
  42. package/Filters/General/OutlineFilter.d.ts +1 -1
  43. package/Filters/General/TriangleFilter.d.ts +1 -1
  44. package/Filters/General/TubeFilter.d.ts +2 -2
  45. package/Filters/Sources/Arrow2DSource.d.ts +2 -2
  46. package/Filters/Sources/ArrowSource.d.ts +2 -2
  47. package/Filters/Sources/CircleSource.d.ts +2 -2
  48. package/Filters/Sources/ConeSource.d.ts +2 -2
  49. package/Filters/Sources/CubeSource.d.ts +2 -2
  50. package/Filters/Sources/Cursor3D.d.ts +3 -3
  51. package/Filters/Sources/CylinderSource.d.ts +2 -2
  52. package/Filters/Sources/LineSource.d.ts +2 -2
  53. package/Filters/Sources/PlaneSource.d.ts +2 -2
  54. package/Filters/Sources/PointSource.d.ts +2 -2
  55. package/Filters/Sources/SphereSource.d.ts +2 -2
  56. package/Filters/Texture/TextureMapToPlane.d.ts +1 -1
  57. package/Filters/Texture/TextureMapToSphere.d.ts +1 -1
  58. package/IO/Core/DataAccessHelper.d.ts +4 -4
  59. package/IO/Core/HttpDataSetReader.d.ts +1 -1
  60. package/IO/Core/HttpSceneLoader.d.ts +5 -5
  61. package/IO/Core/ImageStream/DefaultProtocol.d.ts +1 -1
  62. package/IO/Core/ImageStream/ViewStream.d.ts +4 -4
  63. package/IO/Core/ImageStream.d.ts +3 -3
  64. package/IO/Core/WSLinkClient.d.ts +1 -1
  65. package/IO/Geometry/DracoReader.d.ts +5 -5
  66. package/IO/Geometry/PLYReader.d.ts +5 -5
  67. package/IO/Geometry/PLYWriter.d.ts +2 -2
  68. package/IO/Geometry/STLReader.d.ts +5 -5
  69. package/IO/Geometry/STLWriter.d.ts +2 -2
  70. package/IO/Misc/ElevationReader.d.ts +5 -5
  71. package/IO/Misc/ITKImageReader.d.ts +1 -1
  72. package/IO/Misc/ITKPolyDataReader.d.ts +1 -1
  73. package/IO/Misc/JSONNucleoReader.d.ts +5 -5
  74. package/IO/Misc/JSONReader.d.ts +1 -1
  75. package/IO/Misc/MTLReader.d.ts +6 -6
  76. package/IO/Misc/OBJReader.d.ts +5 -5
  77. package/IO/Misc/PDBReader.d.ts +5 -5
  78. package/IO/XML/XMLReader.d.ts +5 -5
  79. package/Interaction/Widgets/OrientationMarkerWidget.d.ts +6 -6
  80. package/Rendering/Core/AbstractMapper.d.ts +2 -2
  81. package/Rendering/Core/AbstractMapper3D.d.ts +1 -1
  82. package/Rendering/Core/AbstractPicker.d.ts +2 -2
  83. package/Rendering/Core/Actor.d.ts +1 -1
  84. package/Rendering/Core/Actor2D.d.ts +1 -1
  85. package/Rendering/Core/Camera.d.ts +2 -2
  86. package/Rendering/Core/CellPicker.d.ts +2 -2
  87. package/Rendering/Core/ColorTransferFunction.d.ts +1 -1
  88. package/Rendering/Core/Coordinate.d.ts +1 -1
  89. package/Rendering/Core/Glyph3DMapper.d.ts +1 -1
  90. package/Rendering/Core/ImageMapper.d.ts +1 -1
  91. package/Rendering/Core/ImageProperty.d.ts +1 -1
  92. package/Rendering/Core/ImageSlice.d.ts +1 -1
  93. package/Rendering/Core/Light.d.ts +2 -2
  94. package/Rendering/Core/Mapper.d.ts +1 -1
  95. package/Rendering/Core/Mapper2D.d.ts +1 -1
  96. package/Rendering/Core/Picker.d.ts +1 -1
  97. package/Rendering/Core/PointPicker.d.ts +1 -1
  98. package/Rendering/Core/Prop.d.ts +1 -1
  99. package/Rendering/Core/Prop3D.d.ts +1 -1
  100. package/Rendering/Core/Property.d.ts +2 -2
  101. package/Rendering/Core/Property2D.d.ts +2 -2
  102. package/Rendering/Core/RenderWindow.d.ts +2 -2
  103. package/Rendering/Core/RenderWindowInteractor.d.ts +123 -109
  104. package/Rendering/Core/Renderer.d.ts +1 -1
  105. package/Rendering/Core/ScalarBarActor.d.ts +2 -2
  106. package/Rendering/Core/ScalarBarActor.js +2 -2
  107. package/Rendering/Core/Texture.d.ts +1 -1
  108. package/Rendering/Core/Viewport.d.ts +2 -2
  109. package/Rendering/Core/Volume.d.ts +1 -1
  110. package/Rendering/Core/VolumeMapper.d.ts +1 -1
  111. package/Rendering/Core/VolumeProperty.d.ts +1 -1
  112. package/Rendering/Misc/CanvasView.d.ts +2 -2
  113. package/Rendering/Misc/FullScreenRenderWindow.d.ts +8 -8
  114. package/Rendering/Misc/GenericRenderWindow.d.ts +6 -6
  115. package/Rendering/Misc/RemoteView.d.ts +2 -2
  116. package/Rendering/Misc/RenderWindowWithControlBar.d.ts +1 -1
  117. package/Rendering/Misc/SynchronizableRenderWindow.d.ts +2 -2
  118. package/Rendering/Misc/TextureLODsDownloader.d.ts +3 -3
  119. package/Rendering/OpenGL/OrderIndependentTranslucentPass.js +5 -1
  120. package/Rendering/OpenGL/RenderWindow.d.ts +7 -7
  121. package/Rendering/SceneGraph/RenderPass.d.ts +1 -1
  122. package/Rendering/SceneGraph/ViewNode.d.ts +1 -1
  123. package/Rendering/SceneGraph/ViewNode.js +28 -2
  124. package/Rendering/SceneGraph/ViewNodeFactory.d.ts +1 -1
  125. package/Rendering/WebGPU/CellArrayMapper.js +629 -0
  126. package/Rendering/WebGPU/FullScreenQuad.js +4 -6
  127. package/Rendering/WebGPU/Glyph3DMapper.js +60 -27
  128. package/Rendering/WebGPU/ImageMapper.js +23 -60
  129. package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +4 -6
  130. package/Rendering/WebGPU/Pipeline.js +12 -0
  131. package/Rendering/WebGPU/PolyDataMapper.js +49 -623
  132. package/Rendering/WebGPU/RenderEncoder.js +34 -0
  133. package/Rendering/WebGPU/Renderer.js +4 -62
  134. package/Rendering/WebGPU/ShaderDescription.js +6 -6
  135. package/Rendering/WebGPU/{MapperHelper.js → SimpleMapper.js} +64 -38
  136. package/Rendering/WebGPU/SphereMapper.js +41 -37
  137. package/Rendering/WebGPU/StickMapper.js +35 -30
  138. package/Rendering/WebGPU/StorageBuffer.js +2 -2
  139. package/Rendering/WebGPU/UniformBuffer.js +1 -1
  140. package/Rendering/WebGPU/Volume.js +1 -14
  141. package/Rendering/WebGPU/VolumePass.js +15 -19
  142. package/Rendering/WebGPU/VolumePassFSQ.js +19 -25
  143. package/Widgets/Manipulators/LineManipulator.d.ts +1 -1
  144. package/Widgets/Manipulators/PlaneManipulator.d.ts +1 -1
  145. package/Widgets/Manipulators/TrackballManipulator.d.ts +1 -1
  146. package/Widgets/Representations/WidgetRepresentation.d.ts +1 -1
  147. package/Widgets/Widgets3D/SphereWidget.d.ts +2 -2
  148. package/_virtual/rollup-plugin-web-worker-loader__helper__funcToSource.js +8 -8
  149. package/interfaces.d.ts +2 -2
  150. package/macros.d.ts +1 -1
  151. package/package.json +1 -1
  152. package/types.d.ts +1 -1
  153. package/tsconfig.json +0 -8
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces';
1
+ import { vtkObject, vtkSubscription } from './../../interfaces';
2
2
  import vtkRenderer from './Renderer';
3
3
 
4
4
  export enum Device {
@@ -36,6 +36,20 @@ interface IPosition {
36
36
  type: string;
37
37
  }
38
38
 
39
+ export type InteractorEventCallback = (e: IRenderWindowInteractorEvent) => void
40
+
41
+ export type InteractorEventType = "StartInteractionEvent" | "InteractionEvent" | "EndInteractionEvent"
42
+
43
+ export interface IRenderWindowInteractorEvent {
44
+ altKey: boolean;
45
+ controlKey: boolean;
46
+ firstRenderer: vtkRenderer;
47
+ pokedRenderer: vtkRenderer;
48
+ position: { x: number; y: number; z: number };
49
+ shiftKey: boolean;
50
+ type: InteractorEventType;
51
+ }
52
+
39
53
  export interface vtkRenderWindowInteractor extends vtkObject {
40
54
 
41
55
  /**
@@ -113,398 +127,398 @@ export interface vtkRenderWindowInteractor extends vtkObject {
113
127
  /**
114
128
  *
115
129
  */
116
- invokeStartAnimation(callData: object): any;
130
+ invokeStartAnimation(callData: IRenderWindowInteractorEvent): void;
117
131
 
118
132
  /**
119
133
  *
120
134
  */
121
- invokeAnimation(callData: object): any;
135
+ invokeAnimation(callData: IRenderWindowInteractorEvent): void;
122
136
 
123
137
  /**
124
138
  *
125
139
  */
126
- invokeEndAnimation(callData: object): any;
140
+ invokeEndAnimation(callData: IRenderWindowInteractorEvent): void;
127
141
 
128
142
  /**
129
143
  *
130
144
  */
131
- invokeMouseEnter(callData: object): any;
145
+ invokeMouseEnter(callData: IRenderWindowInteractorEvent): void;
132
146
 
133
147
  /**
134
148
  *
135
149
  */
136
- invokeMouseLeave(callData: object): any;
150
+ invokeMouseLeave(callData: IRenderWindowInteractorEvent): void;
137
151
 
138
152
  /**
139
153
  *
140
154
  */
141
- invokeStartMouseMove(callData: object): any;
155
+ invokeStartMouseMove(callData: IRenderWindowInteractorEvent): void;
142
156
 
143
157
  /**
144
158
  *
145
159
  */
146
- invokeMouseMove(callData: object): any;
160
+ invokeMouseMove(callData: IRenderWindowInteractorEvent): void;
147
161
 
148
162
  /**
149
163
  *
150
164
  */
151
- invokeEndMouseMove(callData: object): any;
165
+ invokeEndMouseMove(callData: IRenderWindowInteractorEvent): void;
152
166
 
153
167
  /**
154
168
  *
155
169
  */
156
- invokeLeftButtonPress(callData: object): any;
170
+ invokeLeftButtonPress(callData: IRenderWindowInteractorEvent): void;
157
171
 
158
172
  /**
159
173
  *
160
174
  */
161
- invokeLeftButtonRelease(callData: object): any;
175
+ invokeLeftButtonRelease(callData: IRenderWindowInteractorEvent): void;
162
176
 
163
177
  /**
164
178
  *
165
179
  */
166
- invokeMiddleButtonPress(callData: object): any;
180
+ invokeMiddleButtonPress(callData: IRenderWindowInteractorEvent): void;
167
181
 
168
182
  /**
169
183
  *
170
184
  */
171
- invokeMiddleButtonRelease(callData: object): any;
185
+ invokeMiddleButtonRelease(callData: IRenderWindowInteractorEvent): void;
172
186
 
173
187
  /**
174
188
  *
175
189
  */
176
- invokeRightButtonPress(callData: object): any;
190
+ invokeRightButtonPress(callData: IRenderWindowInteractorEvent): void;
177
191
 
178
192
  /**
179
193
  *
180
194
  */
181
- invokeRightButtonRelease(callData: object): any;
195
+ invokeRightButtonRelease(callData: IRenderWindowInteractorEvent): void;
182
196
 
183
197
  /**
184
198
  *
185
199
  */
186
- invokeKeyPress(callData: object): any;
200
+ invokeKeyPress(callData: IRenderWindowInteractorEvent): void;
187
201
 
188
202
  /**
189
203
  *
190
204
  */
191
- invokeKeyDown(callData: object): any;
205
+ invokeKeyDown(callData: IRenderWindowInteractorEvent): void;
192
206
 
193
207
  /**
194
208
  *
195
209
  */
196
- invokeKeyUp(callData: object): any;
210
+ invokeKeyUp(callData: IRenderWindowInteractorEvent): void;
197
211
 
198
212
  /**
199
213
  *
200
214
  */
201
- invokeStartMouseWheel(callData: object): any;
215
+ invokeStartMouseWheel(callData: IRenderWindowInteractorEvent): void;
202
216
 
203
217
  /**
204
218
  *
205
219
  */
206
- invokeMouseWheel(callData: object): any;
220
+ invokeMouseWheel(callData: IRenderWindowInteractorEvent): void;
207
221
 
208
222
  /**
209
223
  *
210
224
  */
211
- invokeEndMouseWheel(callData: object): any;
225
+ invokeEndMouseWheel(callData: IRenderWindowInteractorEvent): void;
212
226
 
213
227
  /**
214
228
  *
215
229
  */
216
- invokeStartPinch(callData: object): any;
230
+ invokeStartPinch(callData: IRenderWindowInteractorEvent): void;
217
231
 
218
232
  /**
219
233
  *
220
234
  */
221
- invokePinch(callData: object): any;
235
+ invokePinch(callData: IRenderWindowInteractorEvent): void;
222
236
 
223
237
  /**
224
238
  *
225
239
  */
226
- invokeEndPinch(callData: object): any;
240
+ invokeEndPinch(callData: IRenderWindowInteractorEvent): void;
227
241
 
228
242
  /**
229
243
  *
230
244
  */
231
- invokeStartPan(callData: object): any;
245
+ invokeStartPan(callData: IRenderWindowInteractorEvent): void;
232
246
 
233
247
  /**
234
248
  *
235
249
  */
236
- invokePan(callData: object): any;
250
+ invokePan(callData: IRenderWindowInteractorEvent): void;
237
251
 
238
252
  /**
239
253
  *
240
254
  */
241
- invokeEndPan(callData: object): any;
255
+ invokeEndPan(callData: IRenderWindowInteractorEvent): void;
242
256
 
243
257
  /**
244
258
  *
245
259
  */
246
- invokeStartRotate(callData: object): any;
260
+ invokeStartRotate(callData: IRenderWindowInteractorEvent): void;
247
261
 
248
262
  /**
249
263
  *
250
264
  */
251
- invokeRotate(callData: object): any;
265
+ invokeRotate(callData: IRenderWindowInteractorEvent): void;
252
266
 
253
267
  /**
254
268
  *
255
269
  */
256
- invokeEndRotate(callData: object): any;
270
+ invokeEndRotate(callData: IRenderWindowInteractorEvent): void;
257
271
 
258
272
  /**
259
273
  *
260
274
  */
261
- invokeButton3D(callData: object): any;
275
+ invokeButton3D(callData: IRenderWindowInteractorEvent): void;
262
276
 
263
277
  /**
264
278
  *
265
279
  */
266
- invokeMove3D(callData: object): any;
280
+ invokeMove3D(callData: IRenderWindowInteractorEvent): void;
267
281
 
268
282
  /**
269
283
  *
270
284
  */
271
- invokeStartPointerLock(callData: object): any;
285
+ invokeStartPointerLock(callData: IRenderWindowInteractorEvent): void;
272
286
 
273
287
  /**
274
288
  *
275
289
  */
276
- invokeEndPointerLock(callData: object): any;
290
+ invokeEndPointerLock(callData: IRenderWindowInteractorEvent): void;
277
291
 
278
292
  /**
279
293
  *
280
294
  */
281
- invokeStartInteractionEvent(callData: object): any;
295
+ invokeStartInteractionEvent(callData: IRenderWindowInteractorEvent): void;
282
296
 
283
297
  /**
284
298
  *
285
299
  */
286
- invokeInteractionEvent(callData: object): any;
300
+ invokeInteractionEvent(callData: IRenderWindowInteractorEvent): void;
287
301
 
288
302
  /**
289
303
  *
290
304
  */
291
- invokeEndInteractionEvent(callData: object): any;
305
+ invokeEndInteractionEvent(callData: IRenderWindowInteractorEvent): void;
292
306
 
293
307
  /**
294
308
  *
295
- * @param args
309
+ * @param cb The callback to be called
296
310
  */
297
- onStartAnimation(args: any): any;
311
+ onStartAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
298
312
 
299
313
  /**
300
314
  *
301
- * @param args
315
+ * @param cb The callback to be called
302
316
  */
303
- onAnimation(args: any): any;
317
+ onAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
304
318
 
305
319
  /**
306
320
  *
307
- * @param args
321
+ * @param cb The callback to be called
308
322
  */
309
- onEndAnimation(args: any): any;
323
+ onEndAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
310
324
 
311
325
  /**
312
326
  *
313
- * @param args
327
+ * @param cb The callback to be called
314
328
  */
315
- onMouseEnter(args: any): any;
329
+ onMouseEnter(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
316
330
 
317
331
  /**
318
332
  *
319
- * @param args
333
+ * @param cb The callback to be called
320
334
  */
321
- onMouseLeave(args: any): any;
335
+ onMouseLeave(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
322
336
 
323
337
  /**
324
338
  *
325
- * @param args
339
+ * @param cb The callback to be called
326
340
  */
327
- onStartMouseMove(args: any): any;
341
+ onStartMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
328
342
 
329
343
  /**
330
344
  *
331
- * @param args
345
+ * @param cb The callback to be called
332
346
  */
333
- onMouseMove(args: any): any;
347
+ onMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
334
348
 
335
349
  /**
336
350
  *
337
- * @param args
351
+ * @param cb The callback to be called
338
352
  */
339
- onEndMouseMove(args: any): any;
353
+ onEndMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
340
354
 
341
355
  /**
342
356
  *
343
- * @param args
357
+ * @param cb The callback to be called
344
358
  */
345
- onLeftButtonPress(args: any): any;
359
+ onLeftButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
346
360
 
347
361
  /**
348
362
  *
349
- * @param args
363
+ * @param cb The callback to be called
350
364
  */
351
- onLeftButtonRelease(args: any): any;
365
+ onLeftButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
352
366
 
353
367
  /**
354
368
  *
355
- * @param args
369
+ * @param cb The callback to be called
356
370
  */
357
- onMiddleButtonPress(args: any): any;
371
+ onMiddleButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
358
372
 
359
373
  /**
360
374
  *
361
- * @param args
375
+ * @param cb The callback to be called
362
376
  */
363
- onMiddleButtonRelease(args: any): any;
377
+ onMiddleButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
364
378
 
365
379
  /**
366
380
  *
367
- * @param args
381
+ * @param cb The callback to be called
368
382
  */
369
- onRightButtonPress(args: any): any;
383
+ onRightButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
370
384
 
371
385
  /**
372
386
  *
373
- * @param args
387
+ * @param cb The callback to be called
374
388
  */
375
- onRightButtonRelease(args: any): any;
389
+ onRightButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
376
390
 
377
391
  /**
378
392
  *
379
- * @param args
393
+ * @param cb The callback to be called
380
394
  */
381
- onKeyPress(args: any): any;
395
+ onKeyPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
382
396
 
383
397
  /**
384
398
  *
385
- * @param args
399
+ * @param cb The callback to be called
386
400
  */
387
- onKeyDown(args: any): any;
401
+ onKeyDown(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
388
402
 
389
403
  /**
390
404
  *
391
- * @param args
405
+ * @param cb The callback to be called
392
406
  */
393
- onKeyUp(args: any): any;
407
+ onKeyUp(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
394
408
 
395
409
  /**
396
410
  *
397
- * @param args
411
+ * @param cb The callback to be called
398
412
  */
399
- onStartMouseWheel(args: any): any;
413
+ onStartMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
400
414
 
401
415
  /**
402
416
  *
403
- * @param args
417
+ * @param cb The callback to be called
404
418
  */
405
- onMouseWheel(args: any): any;
419
+ onMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
406
420
 
407
421
  /**
408
422
  *
409
- * @param args
423
+ * @param cb The callback to be called
410
424
  */
411
- onEndMouseWheel(args: any): any;
425
+ onEndMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
412
426
 
413
427
  /**
414
428
  *
415
- * @param args
429
+ * @param cb The callback to be called
416
430
  */
417
- onStartPinch(args: any): any;
431
+ onStartPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
418
432
 
419
433
  /**
420
434
  *
421
- * @param args
435
+ * @param cb The callback to be called
422
436
  */
423
- onPinch(args: any): any;
437
+ onPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
424
438
 
425
439
  /**
426
440
  *
427
- * @param args
441
+ * @param cb The callback to be called
428
442
  */
429
- onEndPinch(args: any): any;
443
+ onEndPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
430
444
 
431
445
  /**
432
446
  *
433
- * @param args
447
+ * @param cb The callback to be called
434
448
  */
435
- onStartPan(args: any): any;
449
+ onStartPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
436
450
 
437
451
  /**
438
452
  *
439
- * @param args
453
+ * @param cb The callback to be called
440
454
  */
441
- onPan(args: any): any;
455
+ onPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
442
456
 
443
457
  /**
444
458
  *
445
- * @param args
459
+ * @param cb The callback to be called
446
460
  */
447
- onEndPan(args: any): any;
461
+ onEndPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
448
462
 
449
463
  /**
450
464
  *
451
- * @param args
465
+ * @param cb The callback to be called
452
466
  */
453
- onStartRotate(args: any): any;
467
+ onStartRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
454
468
 
455
469
  /**
456
470
  *
457
- * @param args
471
+ * @param cb The callback to be called
458
472
  */
459
- onRotate(args: any): any;
473
+ onRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
460
474
 
461
475
  /**
462
476
  *
463
- * @param args
477
+ * @param cb The callback to be called
464
478
  */
465
- onEndRotate(args: any): any;
479
+ onEndRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
466
480
 
467
481
  /**
468
482
  *
469
- * @param args
483
+ * @param cb The callback to be called
470
484
  */
471
- onButton3D(args: any): any;
485
+ onButton3D(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
472
486
 
473
487
  /**
474
488
  *
475
- * @param args
489
+ * @param cb The callback to be called
476
490
  */
477
- onMove3D(args: any): any;
491
+ onMove3D(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
478
492
 
479
493
  /**
480
494
  *
481
- * @param args
495
+ * @param cb The callback to be called
482
496
  */
483
- onStartPointerLock(args: any): any;
497
+ onStartPointerLock(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
484
498
 
485
499
  /**
486
500
  *
487
- * @param args
501
+ * @param cb The callback to be called
488
502
  */
489
- onEndPointerLock(args: any): any;
503
+ onEndPointerLock(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
490
504
 
491
505
  /**
492
506
  *
493
- * @param args
507
+ * @param cb The callback to be called
494
508
  */
495
- onStartInteractionEvent(args: any): any;
509
+ onStartInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
496
510
 
497
511
  /**
498
512
  *
499
- * @param args
513
+ * @param cb The callback to be called
500
514
  */
501
- onInteractionEvent(args: any): any;
515
+ onInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
502
516
 
503
517
  /**
504
518
  *
505
- * @param args
519
+ * @param cb The callback to be called
506
520
  */
507
- onEndInteractionEvent(args: any): any;
521
+ onEndInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
508
522
 
509
523
  /**
510
524
  *
@@ -1,4 +1,4 @@
1
- import { Bounds, Nullable } from '../../types';
1
+ import { Bounds, Nullable } from './../../types';
2
2
 
3
3
  import vtkCamera from './Camera';
4
4
  import vtkLight from './Light';
@@ -1,5 +1,5 @@
1
- import vtkScalarsToColors from '../../Common/Core/ScalarsToColors';
2
- import { Size, Vector2, Vector3 } from '../../types';
1
+ import vtkScalarsToColors from './../../Common/Core/ScalarsToColors';
2
+ import { Size, Vector2, Vector3 } from './../../types';
3
3
  import vtkActor, { IActorInitialValues } from './Actor';
4
4
 
5
5
 
@@ -180,8 +180,7 @@ function vtkScalarBarActorHelper(publicAPI, model) {
180
180
 
181
181
  if (model.forceUpdate || Math.max(scalarsToColors.getMTime(), publicAPI.getMTime()) > model.lastRebuildTime.getMTime()) {
182
182
  var range = scalarsToColors.getMappingRange();
183
- model.lastTickBounds = _toConsumableArray(range);
184
- model.barMapper.setScalarRange(model.lastTickBounds); // compute tick marks for axes (update for log scale)
183
+ model.lastTickBounds = _toConsumableArray(range); // compute tick marks for axes (update for log scale)
185
184
 
186
185
  var scale = d3.scaleLinear().domain([model.lastTickBounds[0], model.lastTickBounds[1]]);
187
186
  model.ticks = scale.ticks(5);
@@ -695,6 +694,7 @@ var newScalarBarActorHelper = macro.newInstance(function (publicAPI, model) {
695
694
  model._tmAtlas = new Map();
696
695
  model.barMapper = vtkMapper.newInstance();
697
696
  model.barMapper.setInterpolateScalarsBeforeMapping(true);
697
+ model.barMapper.setUseLookupTableScalarRange(true);
698
698
  model.polyData = vtkPolyData.newInstance();
699
699
  model.barMapper.setInputData(model.polyData);
700
700
  model.barActor = vtkActor.newInstance();
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm } from '../../interfaces';
1
+ import { vtkAlgorithm } from './../../interfaces';
2
2
 
3
3
  export interface ITextureInitialValues {
4
4
  repeat?: boolean;
@@ -1,6 +1,6 @@
1
1
 
2
- import { vtkObject } from '../../interfaces';
3
- import { RGBColor } from '../../types';
2
+ import { vtkObject } from './../../interfaces';
3
+ import { RGBColor } from './../../types';
4
4
  import vtkActor2D from './Actor2D';
5
5
  import vtkProp from './Prop';
6
6
 
@@ -1,4 +1,4 @@
1
- import { Bounds } from '../../types';
1
+ import { Bounds } from './../../types';
2
2
  import vtkProp3D, { IProp3DInitialValues } from './Prop3D';
3
3
  import vtkVolumeMapper from './VolumeMapper';
4
4
  import vtkVolumeProperty from './VolumeProperty';
@@ -1,4 +1,4 @@
1
- import { Bounds, Range } from '../../types';
1
+ import { Bounds, Range } from './../../types';
2
2
  import vtkAbstractMapper, { IAbstractMapperInitialValues } from './AbstractMapper';
3
3
 
4
4
  export enum BlendMode {
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces';
1
+ import { vtkObject } from './../../interfaces';
2
2
 
3
3
  export enum InterpolationType {
4
4
  NEAREST,
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces';
2
- import { Size } from '../../types';
1
+ import { vtkObject } from './../../interfaces';
2
+ import { Size } from './../../types';
3
3
 
4
4
 
5
5
  /**
@@ -1,11 +1,11 @@
1
- import { vtkObject } from '../../interfaces';
2
- import { RGBColor } from '../../types';
3
- import vtkRenderer from '../Core/Renderer';
4
- import vtkRenderWindow from '../Core/RenderWindow';
5
- import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor';
6
-
7
- // import vtkOpenGLRenderWindow from '../../OpenGL/RenderWindow';
8
- // import vtkWebGPURenderWindow from '../../WebGPU/RenderWindow';
1
+ import { vtkObject } from './../../interfaces';
2
+ import { RGBColor } from './../../types';
3
+ import vtkRenderer from './../Core/Renderer';
4
+ import vtkRenderWindow from './../Core/RenderWindow';
5
+ import vtkRenderWindowInteractor from './../Core/RenderWindowInteractor';
6
+
7
+ // import vtkOpenGLRenderWindow from './../../OpenGL/RenderWindow';
8
+ // import vtkWebGPURenderWindow from './../../WebGPU/RenderWindow';
9
9
 
10
10
 
11
11
  /**
@@ -1,9 +1,9 @@
1
- import { vtkObject, vtkSubscription } from '../../interfaces';
2
- import { RGBColor } from '../../types';
3
- import vtkRenderer from '../Core/Renderer';
4
- import vtkRenderWindow from '../Core/RenderWindow';
5
- import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor';
6
- import vtkOpenGLRenderWindow from '../OpenGL/RenderWindow';
1
+ import { vtkObject, vtkSubscription } from './../../interfaces';
2
+ import { RGBColor } from './../../types';
3
+ import vtkRenderer from './../Core/Renderer';
4
+ import vtkRenderWindow from './../Core/RenderWindow';
5
+ import vtkRenderWindowInteractor from './../Core/RenderWindowInteractor';
6
+ import vtkOpenGLRenderWindow from './../OpenGL/RenderWindow';
7
7
 
8
8
 
9
9
  /**
@@ -1,6 +1,6 @@
1
- import { vtkObject } from '../../interfaces';
1
+ import { vtkObject } from './../../interfaces';
2
2
  import vtkCanvasView from './CanvasView';
3
- import vtkViewStream from '../../IO/Core/ImageStream/ViewStream';
3
+ import vtkViewStream from './../../IO/Core/ImageStream/ViewStream';
4
4
 
5
5
  interface IRemoteViewInitialValues {
6
6
  viewId?: string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Placement } from '../../types';
2
+ import { Placement } from './../../types';
3
3
  import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from './GenericRenderWindow';
4
4
 
5
5
  /**