Kitware/vtk-js

[Bug] Incorrect interface for `insertNextPoint` on `vtkPoints`

ramonemiliani93 opened this issue ยท 1 comments

Bug description

The insertNextPoint calls the parent class insertNextTuple method which returns the idx of the inserted point.

Steps to reproduce

import vtkPoints from "@kitware/vtk.js/Common/Core/Points";

const points = vtkPoints.newInstance();
const idx = points.insertNextPoint(1, 2, 3)  // idx exists but warns void function return value is used

Detailed Behavior

No response

Expected Behavior

Should not warn about returned idx

Environment

  • vtk.js version: latest
  • Browsers: chrome
  • OS: MacOS

๐ŸŽ‰ This issue has been resolved in version 30.5.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€