Skip to content

Commit

Permalink
feat(imjoypluginapi): add a function to the ImJoy plugin to add a poi…
Browse files Browse the repository at this point in the history
…nt set
  • Loading branch information
bnmajor committed Jan 26, 2023
1 parent 3bb92e5 commit 8d1e677
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ImJoyPluginAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class ImJoyPluginAPI {
}
}

addPointSet(pointSet) {
let points = itkVtkViewer.utils.ndarrayToPointSet(pointSet)
this.viewer.addPointSet(points)
}

async captureImage() {
return await this.viewer.captureImage()
}
Expand Down

0 comments on commit 8d1e677

Please sign in to comment.