@fnndsc/argus 0.38.0 → 0.39.0
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.
- package/dist/assets/{Settings-Ctwn_AZX.js → Settings-5MjiZs3m.js} +1 -1
- package/dist/assets/{Texture-D1v9Xy2I.js → Texture-DOfcDQbS.js} +1 -1
- package/dist/assets/{addVolumesToViewports-DAOdqC8e.js → addVolumesToViewports-Bb0m3THm.js} +1 -1
- package/dist/assets/{cornerstoneEngine-3rInTfmn.js → cornerstoneEngine-C-Ad7wRm.js} +2 -2
- package/dist/assets/{field-B9YUJfqB.js → field-Dry3W437.js} +3 -3
- package/dist/assets/{index-D16XL1_Y.js → index-3-iYk56R.js} +1 -1
- package/dist/assets/{index-C-wTlo8D.js → index-B6eZOqOc.js} +1 -1
- package/dist/assets/{index-Djdu-TKQ.css → index-BGaBRrms.css} +1 -1
- package/dist/assets/{index-j4GB7pgk.js → index-BM66Iqpq.js} +1 -1
- package/dist/assets/{index-DrTSUPZD.js → index-BPtfl54C.js} +1 -1
- package/dist/assets/{index-ByYv-ULM.js → index-BeBkGdY4.js} +1 -1
- package/dist/assets/{index-CdnmV0qh.js → index-C3nSyvq6.js} +1 -1
- package/dist/assets/{index-CqCG-b3T.js → index-CErCsopW.js} +1 -1
- package/dist/assets/{index-Bet-OavM.js → index-CgXV7KHK.js} +1 -1
- package/dist/assets/{index-Cfm-hN8L.js → index-CpqNW11B.js} +1 -1
- package/dist/assets/{index-BzesoZ0G.js → index-CrXkv4Vv.js} +1 -1
- package/dist/assets/{index-CtgxVxiE.js → index-CrjhBgBA.js} +1 -1
- package/dist/assets/{index-SQwtgFa6.js → index-DPfj2TXJ.js} +1 -1
- package/dist/assets/{index-CmT5b0Ou.js → index-DQf3qxtA.js} +1 -1
- package/dist/assets/{index-BrttXGaO.js → index-wXc13Noh.js} +259 -259
- package/dist/assets/niivueEngine-mmgElHY8.js +2 -0
- package/dist/assets/{slabScene-Bg94Bi0e.js → slabScene-Cw83Xw1C.js} +1 -1
- package/dist/build.json +1 -1
- package/dist/index.html +2 -2
- package/dist/notes.json +1 -1
- package/package.json +3 -3
- package/dist/assets/niivueEngine-DbkxQ2GF.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnndsc/argus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "ARGUS: the LCARS web surface for mise — a browser console over a calypso session",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@cornerstonejs/metadata": "^5.8.2",
|
|
31
31
|
"@cornerstonejs/tools": "^5.8.2",
|
|
32
32
|
"@cornerstonejs/utils": "^5.8.2",
|
|
33
|
-
"@fnndsc/menu": "^0.
|
|
33
|
+
"@fnndsc/menu": "^0.30.0",
|
|
34
34
|
"@kitware/vtk.js": "^36.4.1",
|
|
35
35
|
"@lezer/highlight": "^1.2.5",
|
|
36
36
|
"@niivue/niivue": "^0.69.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"three": "^0.185.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@fnndsc/orrery": "0.
|
|
51
|
+
"@fnndsc/orrery": "0.7.0",
|
|
52
52
|
"@types/jest": "^30.0.0",
|
|
53
53
|
"jest": "^30.2.0",
|
|
54
54
|
"jest-environment-jsdom": "^30.2.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BzesoZ0G.js","./_commonjsHelpers-CE1G-McA.js","./index-BrttXGaO.js","./index-Djdu-TKQ.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as u,b as a,I as c}from"./index-BrttXGaO.js";import{r as p}from"./refusal-DOpm8I8L.js";const m={gray:"gray",hot:"hot",jet:"jet",cool:"cool"},d={wl:"contrast",pan:"pan",length:"measurement",angle:"angle"};class g{name="niivue";host;path;nv=null;module=null;layout="mpr";tool="wl";colormap="gray";slice=0;slices=0;refused=0;disposed=!1;constructor(s,t){this.host=s,this.path=t}async open(s){const t=document.createElement("canvas");t.className="image-canvas",s.appendChild(t),this.host.readout_set("LOADING"),this.host.progress_set({label:"READING VOLUME",done:0,total:0});const e=performance.now();if(this.module=await u(()=>import("./index-BzesoZ0G.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),this.disposed)return;const i=new this.module.Niivue({isResizeCanvas:!0,logLevel:"error",dragAndDropEnabled:!1,crosshairWidth:.4,crosshairWidthUnit:"percent"});i.onLocationChange=o=>{const r=o,l=r.vox?.[2];l!==void 0&&(this.slice=l+1),this.host.readout_set(`${this.slices>0?`SLICE ${this.slice} OF ${this.slices} · `:""}${r.string??""}`)},await i.attachToCanvas(t);const n=this.path.split("/").pop()??"volume.nii.gz";try{await i.loadVolumes([{url:a(this.host.source.url_of(this.path),location.href),name:n}])}catch(o){this.refused=1,this.host.progress_set(null),this.host.readout_set("REFUSED 1 OF 1"),this.host.note(`image: ${this.path}: ${o instanceof Error?o.message:String(o)}`);const r=await p(a(this.host.source.url_of(this.path),location.href));this.host.readout_set(`REFUSED 1 OF 1 · ${r}`),this.host.note(`image: ${this.path}: ${r.toLowerCase()}`);return}if(this.host.progress_set(null),this.disposed)return;this.nv=i;const h=i.volumes[0]?.dims;this.slices=h?.[3]??0,i.setSliceType(i.sliceTypeMultiplanar),this.layout="mpr",this.host.readout_set(`${this.slices} SLICES`),this.host.note(`image: ${n} drawn in ${Math.round(performance.now()-e)} ms`),this.host.regard(this.path)}async layout_set(s){return s==="slab"||this.nv===null?!1:(this.nv.setSliceType(s==="single"?this.nv.sliceTypeAxial:s==="mpr"?this.nv.sliceTypeMultiplanar:this.nv.sliceTypeRender),this.layout=s,this.host.readout_set(`${this.slices} SLICES`),!0)}slice_set(s){if(this.nv===null||this.slices===0)return!1;const t=Math.max(1,Math.min(s,this.slices)),e=this.slice>0?this.slice:Math.ceil(this.slices/2);return this.nv.moveCrosshairInVox(0,0,t-e),this.slice=t,!0}wl_set(s,t){const e=this.nv?.volumes[0];return this.nv===null||e===void 0?!1:(e.cal_min=s,e.cal_max=t,this.nv.updateGLVolume(),!0)}colormap_set(s){const t=this.nv?.volumes[0];return this.nv===null||t?.id===void 0?!1:(this.colormap=s,this.nv.setColormap(t.id,m[s]),!0)}toolsOffered_get(){return c}ghost_set(s){return!1}tool_set(s){const t=d[s];return this.nv===null||t===void 0?!1:(this.nv.setDragMode(t),this.tool=s,!0)}annotations_export(){return Promise.resolve(null)}annotations_import(){return Promise.resolve(0)}async slices_fill(){return this.nv!==null}state_get(){return{engine:"niivue",layout:this.layout,slice:this.slice,slices:this.slices,tool:this.tool,primaryTool:this.tool,refused:this.refused,annotations:0,filled:this.nv!==null,colormap:this.colormap}}dispose(){this.disposed=!0,this.nv=null}}export{g as NiivueEngine};
|