brainsmatics 1.0.12 → 1.0.14

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.
Files changed (40) hide show
  1. package/dist/basedecoder-0503cc54.js +1 -0
  2. package/dist/deflate-49d982e2.js +1 -0
  3. package/dist/{deflate-47f808e1.mjs → deflate-8236537a.mjs} +2 -1
  4. package/dist/{index-0ba09339.mjs → index-0dd7cdc4.mjs} +54968 -74573
  5. package/dist/index-141446f8.js +4753 -0
  6. package/dist/index.js +1 -0
  7. package/dist/index.mjs +41 -40
  8. package/dist/jpeg-f3c7cefc.js +1 -0
  9. package/dist/{lerc-428646ef.mjs → lerc-18f95676.mjs} +4 -3
  10. package/dist/lerc-f4394c34.js +1 -0
  11. package/dist/lzw-f00e8c8c.js +1 -0
  12. package/dist/packbits-58fd9c05.js +1 -0
  13. package/dist/raw-9c0f4034.js +1 -0
  14. package/dist/webimage-bc81928d.js +1 -0
  15. package/package.json +5 -1
  16. package/tsconfig.json +1 -1
  17. package/vite.config.js +41 -40
  18. package/dist/component/2d/js/index.d.ts +0 -3
  19. package/dist/component/2d/js/index.js +0 -59517
  20. package/dist/component/3d/atlas.d.ts +0 -31
  21. package/dist/component/3d/bottomTabs/index.d.ts +0 -15
  22. package/dist/component/3d/index.d.ts +0 -11
  23. package/dist/component/3d/modal2DLoader/index.d.ts +0 -11
  24. package/dist/component/3d/modalLoader/index.d.ts +0 -13
  25. package/dist/component/3d/pipeline/index.d.ts +0 -78
  26. package/dist/component/3d/section/index.d.ts +0 -53
  27. package/dist/component/3d/showreglions/index.d.ts +0 -7
  28. package/dist/component/3d/sideBar/index.d.ts +0 -63
  29. package/dist/component/3d/stlLoader/index.d.ts +0 -9
  30. package/dist/component/3d/swctree/index.d.ts +0 -3
  31. package/dist/component/STAM.d.ts +0 -4
  32. package/dist/component/common/Button/index.d.ts +0 -45
  33. package/dist/component/common/Header/index.d.ts +0 -19
  34. package/dist/component/common/index.d.ts +0 -2
  35. package/dist/component/types/header.d.ts +0 -9
  36. package/dist/component/types/index.d.ts +0 -1
  37. package/dist/component/util/CommonFunctions.d.ts +0 -23
  38. package/dist/component/util/global.d.ts +0 -17
  39. package/dist/component/util/i18n.d.ts +0 -3
  40. package/dist/component/util/index.d.ts +0 -2
@@ -0,0 +1 @@
1
+ "use strict";function l(o,e){let t=o.length-e,r=0;do{for(let a=e;a>0;a--)o[r+e]+=o[r],r++;t-=e}while(t>0)}function d(o,e,t){let r=0,a=o.length;const i=a/t;for(;a>e;){for(let n=e;n>0;--n)o[r+e]+=o[r],++r;a-=e}const s=o.slice();for(let n=0;n<i;++n)for(let c=0;c<t;++c)o[t*n+c]=s[(t-c-1)*i+n]}function f(o,e,t,r,a,i){if(!e||e===1)return o;for(let c=0;c<a.length;++c){if(a[c]%8!==0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(a[c]!==a[0])throw new Error("When decoding with predictor, all samples must have the same size.")}const s=a[0]/8,n=i===2?1:a.length;for(let c=0;c<r&&!(c*n*t*s>=o.byteLength);++c){let h;if(e===2){switch(a[0]){case 8:h=new Uint8Array(o,c*n*t*s,n*t*s);break;case 16:h=new Uint16Array(o,c*n*t*s,n*t*s/2);break;case 32:h=new Uint32Array(o,c*n*t*s,n*t*s/4);break;default:throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`)}l(h,n)}else e===3&&(h=new Uint8Array(o,c*n*t*s,n*t*s),d(h,n,s))}return o}class g{async decode(e,t){const r=await this.decodeBlock(t),a=e.Predictor||1;if(a!==1){const i=!e.StripOffsets,s=i?e.TileWidth:e.ImageWidth,n=i?e.TileLength:e.RowsPerStrip||e.ImageLength;return f(r,a,s,n,e.BitsPerSample,e.PlanarConfiguration)}return r}}exports.BaseDecoder=g;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-141446f8.js"),t=require("./basedecoder-0503cc54.js");require("react");require("react-dom");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;
@@ -1,6 +1,7 @@
1
- import { i as r } from "./index-0ba09339.mjs";
1
+ import { i as r } from "./index-0dd7cdc4.mjs";
2
2
  import { B as o } from "./basedecoder-11034ec6.mjs";
3
3
  import "react";
4
+ import "react-dom";
4
5
  class d extends o {
5
6
  decodeBlock(e) {
6
7
  return r(new Uint8Array(e)).buffer;