@kitware/vtk.js 26.9.1 → 26.9.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.
@@ -171,7 +171,6 @@ function convertItkToVtkImage(itkImage) {
171
171
  *
172
172
  */
173
173
 
174
-
175
174
  function convertVtkToItkImage(vtkImage) {
176
175
  var copyData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
177
176
  var dimension = 3;
@@ -226,7 +225,6 @@ function convertVtkToItkImage(vtkImage) {
226
225
  * Requires an itk-wasm PolyData as input.
227
226
  */
228
227
 
229
-
230
228
  function convertItkToVtkPolyData(itkPolyData) {
231
229
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
232
230
  var pointDataArrays = [];
@@ -492,7 +490,6 @@ function convertItkToVtkPolyData(itkPolyData) {
492
490
  *
493
491
  */
494
492
 
495
-
496
493
  function convertVtkToItkPolyData(polyData) {
497
494
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
498
495
  var itkPolyData = {
@@ -560,7 +557,6 @@ function convertVtkToItkPolyData(polyData) {
560
557
 
561
558
  return itkPolyData;
562
559
  }
563
-
564
560
  var ITKHelper = {
565
561
  convertItkToVtkImage: convertItkToVtkImage,
566
562
  convertVtkToItkImage: convertVtkToItkImage,
@@ -568,4 +564,4 @@ var ITKHelper = {
568
564
  convertVtkToItkPolyData: convertVtkToItkPolyData
569
565
  };
570
566
 
571
- export { ITKHelper as default };
567
+ export { convertItkToVtkImage, convertItkToVtkPolyData, convertVtkToItkImage, convertVtkToItkPolyData, ITKHelper as default };
@@ -633,9 +633,10 @@ function vtkRenderWindowInteractor(publicAPI, model) {
633
633
 
634
634
 
635
635
  if (model.wheelTimeoutID === 0) {
636
- // 0.4 is roughly half-way between a large trackpad first event and small
637
- // mouse wheel first event.
638
- if (Math.abs(callData.spinY) > 0.4) {
636
+ // we attempt to distinguish between trackpads and mice
637
+ // .3 will be larger than the first trackpad event,
638
+ // but small enough to detect some common edge case mice
639
+ if (Math.abs(callData.spinY) >= 0.3) {
639
640
  // Event is coming from mouse wheel
640
641
  wheelCoefficient = Math.abs(callData.spinY);
641
642
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "26.9.1",
3
+ "version": "26.9.3",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",