Skip to content

Commit

Permalink
fix(VtkImageDelivery): Add new endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 21, 2018
1 parent c3531ea commit 6a85e4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/IO/WebSocket/ParaViewWebClient/VtkImageDelivery.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,13 @@ export default function createMethods(session) {
]),
invalidateCache: (viewId) =>
session.call('viewport.image.push.invalidate.cache', [viewId]),
setMaxFrameRate: (fps = 30) =>
session.call('viewport.image.animation.fps.max', [fps]),
getCurrentFrameRate: () =>
session.call('viewport.image.animation.fps.get', []),
startViewAnimation: (viewId = -1) =>
session.call('viewport.image.animation.start', [viewId]),
stopViewAnimation: (viewId = -1) =>
session.call('viewport.image.animation.stop', [viewId]),
};
}

0 comments on commit 6a85e4a

Please sign in to comment.