Skip to content

Commit

Permalink
Deploy to GitHub Pages 397310e
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 27, 2023
1 parent c864a60 commit 16fb117
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions plugins/bioengine-test-run.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@
self.triton = await server.get_service("triton-client")
self.image = None
self.output = None
self.vtk_viewer = None

def set_image(self, image):
assert isinstance(image, np.ndarray)
Expand All @@ -519,12 +520,17 @@
if image is None:
await api.alert("Please load an image first.")
return
self.vtk_viewer = await api.createWindow(
vtk_viewer = await api.createWindow(
src="https://oeway.github.io/itk-vtk-viewer/",
fullscreen=False,
window_id=window_id,
)
await self.vtk_viewer.setImage(image)
await vtk_viewer.setImage(image)
if self.vtk_viewer:
await self.vtk_viewer.sync(vtk_viewer)
await vtk_viewer.sync(self.vtk_viewer)

self.vtk_viewer = vtk_viewer

async def bioengine_execute(self, model_id, inputs=None, return_rdf=False, weight_format=None):
kwargs = {"model_id": model_id, "inputs": inputs, "return_rdf": return_rdf, "weight_format": weight_format}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/manifest.json"
},
{
"revision": "d43599e8582615ba5486e88daa357d8b",
"revision": "fa8f1ca61cdf5483af2a41e57b58f3c8",
"url": "/plugins/bioengine-test-run.imjoy.html"
},
{
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.93646d6dc790db1a1c31dd22429f898a.js"
"/precache-manifest.344b88d8a712a6e72449cea07243a4c1.js"
);

workbox.core.setCacheNameDetails({prefix: "bioimage"});
Expand Down

0 comments on commit 16fb117

Please sign in to comment.