vitessce 4.0.0-test.1 → 4.0.0-test.2

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 (24) hide show
  1. package/README.temp.md +288 -2
  2. package/dist/{GeometryAndMeshXR-CDuFtV77.js → GeometryAndMeshXR-H3DlWLG2.js} +4 -4
  3. package/dist/{OrbitControls-BrJBuUSe.js → OrbitControls-ZAZ0euXg.js} +1 -1
  4. package/dist/{ReactNeuroglancer-n_mccJEi.js → ReactNeuroglancer-ynqeNj44.js} +1 -1
  5. package/dist/{XREnterButton-s3JNl4Y5.js → XREnterButton-C-Xc92kB.js} +1 -1
  6. package/dist/{XRSceneComponents-BsPxVGaX.js → XRSceneComponents-DknWP-KF.js} +2 -2
  7. package/dist/{XRWrapper-B3mqy7wn.js → XRWrapper-65DDKoxT.js} +2 -2
  8. package/dist/{deflate-BhW_mYsS.js → deflate-DePou18j.js} +1 -1
  9. package/dist/{emulate-Dy4Vqc5l.js → emulate-C56XIxiZ.js} +2 -2
  10. package/dist/{higlass-moXDbnqp.js → higlass-CvGYDZZb.js} +1 -1
  11. package/dist/{index-CRWembQ4.js → index-BJz-iWAr.js} +59 -6
  12. package/dist/{index-WPOnaDjf.js → index-BP1_qbI-.js} +1 -1
  13. package/dist/{index-BLeXhxTK.js → index-DNangxT1.js} +12 -12
  14. package/dist/{index-DWzI2Mwu.js → index-H9tZsNft.js} +370 -366
  15. package/dist/index.min.js +1 -1
  16. package/dist/{jpeg-BT_-26Ph.js → jpeg-BkQmyCqH.js} +1 -1
  17. package/dist/{lerc-CTMmM_q8.js → lerc-Df9qlqYn.js} +1 -1
  18. package/dist/{lzw-Dg9ghyv5.js → lzw-QF6gugJz.js} +1 -1
  19. package/dist/{packbits-CrJ-qt3Y.js → packbits-BITrgxsQ.js} +1 -1
  20. package/dist/{raw-DzihOYOe.js → raw-0egotUxH.js} +1 -1
  21. package/dist/{ray-grab-9OEL2ULp.js → ray-grab-XwMBlpJb.js} +3 -3
  22. package/dist/{webimage-CNPDR7gt.js → webimage-CqycQKfh.js} +1 -1
  23. package/dist/{xrStore-D3c_VFug.js → xrStore-Di4S0hIK.js} +1 -1
  24. package/package.json +7 -7
package/README.temp.md CHANGED
@@ -1,2 +1,288 @@
1
- This package is the main `vitessce` package on NPM.
2
- It exports the `<Vitessce/>` from `@vitessce/all` for backwards compatibility.
1
+ <a href="http://vitessce.io">
2
+ <img src="./img/logo-transparent.png" alt="Vitessce logo" title="Vitessce" />
3
+ </a>
4
+
5
+ Visual Integration Tool for Exploration of Spatial Single-Cell Experiments
6
+
7
+ - [Documentation and demos](http://vitessce.io/)
8
+ - [Online configuration editor](http://vitessce.io/#?edit=true)
9
+ - [Older releases and demos](https://github.com/vitessce/vitessce/releases)
10
+ - [Older releases on NPM](https://www.npmjs.com/package/vitessce?activeTab=versions)
11
+
12
+ <table><tr>
13
+ <td>
14
+ <img src="https://user-images.githubusercontent.com/1216518/93336741-2b60c880-f7f6-11ea-8b82-7e1e0ea45e43.png" width="500" alt="Screenshot of Vitessce with Linnarsson data" />
15
+ </td>
16
+ <td>
17
+ <img src="https://user-images.githubusercontent.com/1216518/93337080-a4f8b680-f7f6-11ea-9e53-2c73cc661b94.png" width="500" alt="Same data, zoomed in to cellular scale" />
18
+ </td>
19
+ </tr></table>
20
+
21
+ ## Why Vitessce
22
+
23
+ ### Interactive
24
+
25
+ Vitessce consists of reusable interactive views including a scatterplot, spatial+imaging plot, genome browser tracks, statistical plots, and control views, built on web technologies such as WebGL.
26
+
27
+ ### Integrative
28
+
29
+ Vitessce enables visual analysis of multi-modal assay types which probe biological systems through techniques such as microscopy, genomics, and transcriptomics.
30
+
31
+ ### Serverless
32
+
33
+ Visualize large datasets stored in static cloud object stores such as AWS S3. No need to manage or pay for expensive compute infrastructure for visualization purposes.
34
+
35
+ ## Usage
36
+
37
+ Vitessce can be used in React projects by installing the package from NPM:
38
+
39
+ ```sh
40
+ npm install vitessce
41
+ ```
42
+
43
+ For more details, please visit the [documentation](http://vitessce.io/docs/js-overview/).
44
+
45
+ ## How to Contribute
46
+
47
+ We welcome contributions! Please check out our [Contributing Guide](CONTRIBUTING.md) for detailed instructions.
48
+
49
+
50
+ ## Development
51
+
52
+ First install [PNPM](https://pnpm.io/installation) v9.5. We develop and test against NodeJS `v18.6.0` and NPM `8.13.2`.
53
+
54
+ > **Note**
55
+ > NodeJS may require the [`max_old_space_size`](https://stackoverflow.com/a/59572966) value to be increased.
56
+ ```sh
57
+ . ./scripts/set-node-options.sh
58
+ ```
59
+
60
+ Checkout the project, `cd`, and then:
61
+
62
+ ```sh
63
+ pnpm install
64
+ pnpm run build
65
+ pnpm run start-demo
66
+ ```
67
+
68
+ The development server will refresh the browser as you edit the code.
69
+
70
+ To get started creating a new view:
71
+
72
+ ```sh
73
+ pnpm run create-view line-plot
74
+ ```
75
+
76
+ Further details for internal developers can be found within [dev-docs](./dev-docs/).
77
+
78
+ ### Changesets
79
+
80
+ We use [changesets](https://github.com/changesets/changesets) to manage the changelog.
81
+ Therefore, when making code changes, do not edit `CHANGELOG.md` directly.
82
+ Instead, run `pnpm changeset`, follow the prompts, and commit the resulting markdown files along with the code changes.
83
+
84
+ ### Branches
85
+
86
+ Please use one of the following naming conventions for new branches:
87
+ - `{github-username}/{feature-name}`
88
+ - `{github-username}/fix-{issue-num}`
89
+
90
+ ### Pull requests
91
+
92
+ We use squash merging for pull requests.
93
+
94
+ ### Monorepo organization
95
+
96
+ See `pnpm-workspace.yaml` for more information.
97
+ We are using PNPM [catalogs](https://pnpm.io/catalogs) which are available from v9.5.0 of PNPM.
98
+
99
+ ### Testing
100
+
101
+ For the end-to-end tests, they depend on
102
+ ```sh
103
+ cd sites/demo && pnpm run build-demo
104
+ ```
105
+
106
+ - To run all the tests, both unit and e2e: `./scripts/test.sh`
107
+ - To run just the unit tests: `pnpm run test`
108
+
109
+ ### Linting
110
+
111
+ ```sh
112
+ pnpm run lint
113
+ ```
114
+
115
+ To allow the linter to perform automated fixes during linting: `pnpm run lint-fix`
116
+
117
+ ### Troubleshooting
118
+
119
+ The following commands can be helpful in case the local environment gets into a broken state:
120
+
121
+ - `pnpm install`
122
+ - `pnpm run clean`: removes build/bundle directories and all `tsconfig.tsbuildinfo` files (used by TypeScript's Project References).
123
+ - `pnpm run build`: need to re-build subpackages after this type of cleanup.
124
+ - `pnpm run clean-deps`: removes all `node_modules` directories, including those nested inside subpackages.
125
+ - `pnpm install`: need to re-install dependencies after this type of cleanup.
126
+
127
+ ## Deployment
128
+
129
+ Before running any of the deployment scripts, confirm that you have installed the AWS CLI and are in the appropriate AWS account:
130
+ ```
131
+ $ aws iam list-account-aliases --query 'AccountAliases[0]'
132
+ "hdv-vitessce"
133
+ ```
134
+
135
+ ### Staging
136
+
137
+ To build the current branch and push the "minimal" demo and docs sites to S3, run this script:
138
+ ```sh
139
+ ./scripts/push-demos.sh
140
+ ```
141
+
142
+ This will build the demo and docs, push both to S3, and finally open the docs deployment in your browser.
143
+
144
+ #### Publish staged development site
145
+
146
+ After doing a [manual test](./dev-docs/manual-testing.md) of the deployment of the dev site,
147
+ if it looks good, copy it to dev.vitessce.io:
148
+
149
+ ```sh
150
+ ./scripts/copy-dev.sh https://{url returned by scripts/deploy-release.sh or scripts/push-demos.sh}
151
+ ```
152
+
153
+ Note: if you need to obtain this URL later:
154
+
155
+ ```
156
+ Copy dev to https://legacy.vitessce.io/demos/$DATE/$HASH/index.html
157
+ ```
158
+
159
+ #### Publish staged docs to vitessce.io
160
+
161
+ After doing a manual test of the deployment of the docs,
162
+ if it looks good, copy it to vitessce.io:
163
+
164
+ ```sh
165
+ ./scripts/copy-docs.sh https://{url returned by scripts/deploy-release.sh or scripts/push-demos.sh}
166
+ ```
167
+
168
+ Note: if you need to obtain this URL later:
169
+
170
+ ```
171
+ Copy docs to https://data-1.vitessce.io/docs-root/$DATE/$HASH/index.html
172
+ ```
173
+
174
+ ## Release
175
+
176
+ Releasing refers to publishing all sub-packages to NPM and creating a corresponding GitHub release.
177
+
178
+ Note: releasing does not currently result in automatic deployment of the documentation or development sites (see the [Deployment](#deployment) section above).
179
+
180
+ Also note: If the release includes a new NPM package (e.g., `@vitessce/new-view`), trusted publishing must first be configured via NPM (see [discussion](https://github.com/orgs/community/discussions/181927)).
181
+
182
+ ### From GitHub Actions
183
+
184
+ When there are changesets on the `main` branch, the [`changesets/action`](https://github.com/changesets/action) bot will run `./scripts/changeset-version.sh --action` and make a pull request titled "Create release".
185
+
186
+ - This pull request remains open until ready to make a release. The bot will update the pull request as new changesets are added to `main`.
187
+
188
+ Once this "Create release" pull request is merged, the next time `release.yml` is executed on GitHub Actions, the following will occur:
189
+ - [`changesets/action`](https://github.com/changesets/action) will run `./scripts/changeset-publish.sh --action`, which:
190
+ - publishes to NPM using [OIDC trusted publishing](https://docs.npmjs.com/trusted-publishers)
191
+ - creates a new git tag for the release
192
+ - [`softprops/action-gh-release`](https://github.com/softprops/action-gh-release) will generate a GitHub release based on the git tag, using the latest changelog entries for the release notes.
193
+
194
+ ### From local machine
195
+
196
+ ```sh
197
+ pnpm run build
198
+ pnpm run bundle
199
+ pnpm run build-json-schema
200
+
201
+ ./scripts/changeset-version.sh
202
+ ./scripts/changeset-publish.sh # runs pnpm publish internally
203
+ ```
204
+
205
+ ## Version bumps
206
+
207
+ In this project we try to follow semantic versioning.
208
+ The following are examples of things that would require a major, minor, or patch type of bump.
209
+
210
+ ### Patch version bumps
211
+
212
+ Bug fixes, minor feature improvements, additional view types, additional coordination types, and additional file type implementations are possible in a patch version bump.
213
+
214
+ When a coordination type is added, it must be reflected by a new view config JSON schema with an incremented `version` property, and a new view config upgrade function to enable previous view config versions to remain compatible.
215
+ The default schema version parameter of the `VitessceConfig` constructor may also change to reflect the new schema version.
216
+
217
+ ### Minor version bumps
218
+
219
+ An exported helper function or React component for plugin views had a change in props or function signature.
220
+ Major feature improvements or additions.
221
+
222
+ ### Major version bumps
223
+
224
+ The exported constant values changed, such as view types and coordination types, such that previous code using these values may no longer run successfully.
225
+ React props of the main `<Vitessce />` component changed.
226
+ Major behavior changes or interface updates.
227
+ Changes to the directory structure or filenames in the `dist/` directory that could result in broken import statements.
228
+
229
+
230
+ ## Related repositories
231
+
232
+ - [Viv](https://github.com/hms-dbmi/viv): A library for multiscale visualization of high-resolution multiplexed tissue data on the web.
233
+ - [HiGlass](https://github.com/higlass/higlass): A library for multiscale visualization of genomic data on the web.
234
+ - [vitessce-python](https://github.com/vitessce/vitessce-python): Python API and Jupyter widget.
235
+ - [vitessce-r](https://github.com/vitessce/vitessce-r): R API and R htmlwidget.
236
+ - [vitessce-data](https://github.com/hms-dbmi/vitessce-data): Scripts to generate sample data
237
+
238
+ ## Old presentations
239
+
240
+ - [May 2022: Mark Keller's lab meeting update](https://docs.google.com/presentation/d/1qfd0rc6bF9nFIvOMp2YacpbJ7F8_UYhSYjLn26AlH7k/edit?usp=sharing)
241
+ - [February 2022: Mark Keller's lab meeting update](https://docs.google.com/presentation/d/1J4lcWxD1GRGLBm0RLkGmEGcuQvXX9yBVBsQo2rXPTVM/edit?usp=sharing)
242
+ - [October 2021: Mark Keller's lab meeting update](https://docs.google.com/presentation/d/1bibMLiR5aW_MgXn6ydhXWJsEN3tG5gJSw9xuYa49x5U/edit?usp=sharing)
243
+ - [September 2021: HuBMAP Consortium Sci-Tech Webinar (Mark)](https://docs.google.com/presentation/d/1iPXSGEGT9HNNSrXT5uu0x_9Jq6L3cnhrpaz1Pge5O50/edit?usp=sharing)
244
+ - [June 2021: Mark Keller's lab meeting update](https://docs.google.com/presentation/d/1P--F_MLeWK2n3JrY21mGn9FBgI2u60nQGN_XZtniSnc/edit?usp=sharing)
245
+ - [April 2021: Spatial Biology Europe (Mark)](https://docs.google.com/presentation/d/1s33dKMCdE3LtC43IWBw48ZDmmtYJarDPtUOhH9T3D6Q/edit?usp=sharing)
246
+ - [January 2021: Ilan Gold's lab meeting update](https://docs.google.com/presentation/d/10kmjLxQh5ji-4TVMq06KRpXek3uje_fQpTXBqjFj0p4/edit?usp=sharing)
247
+ - [December 2020: Mark Keller's lab meeting update](https://docs.google.com/presentation/d/1rG0s5eH_NrFSk3_7lpmc9dsaUPFvnakYD59ff9D-G1M/edit?usp=sharing)
248
+ - [November 2020: Ilan Gold's lab meeting update](https://docs.google.com/presentation/d/1egAwCR8UwdRCWiGYVRelebwNDH9boBX1nJIX5auvf1w/edit?usp=sharing)
249
+ - [October 2020: Mark Keller's lab meeting update](https://docs.google.com/presentation/d/1M8dGbIGA_cfa3uZnGLnk3iMzMNVbxzza33OKBqwwlNQ/edit?usp=sharing)
250
+ - [July 2020: Ilan Gold's lab meeting update](https://docs.google.com/presentation/d/1QzKYP6sXPefBMNfY4PW4H0AMoWVbw9HeNoweLmJg17Y/edit?usp=sharing)
251
+ - [June 2020: NLM Informatics Training Conference (Trevor)](https://docs.google.com/presentation/d/1eYslI4y1LbnEGwj4XHXxqYcRKpYgqc9Y2mZTd5iCzMc/edit?usp=sharing)
252
+ - [May 2020: Trevor Manz's overview of multimodal imaging in Vitessce](https://docs.google.com/presentation/d/1NPYZPduymN7wzgN-NYRQwd15D-nUZYILJTgBR2oNb04/edit?usp=sharing)
253
+ - [January 2020: Ilan Gold's overview of IF Imagery](https://docs.google.com/presentation/d/1BSz2JefN2WSF_RwVpOrIhYD2V8D7ZLc5b21VTy2Xmlo/edit#slide=id.p)
254
+ - [January 2020: Trevor Manz's wrap-up on Arrow, Zarr, and IMS](https://docs.google.com/presentation/d/1H2hff-bW4SZ3KFD5_q0iN-Dv1yew7pVe0MbdMsA2gko/edit)
255
+ - [September 2019: HuBMAP Poster](https://drive.google.com/open?id=1pRiTN99-wZ6QuEMWzorcD4fA2Fi-7eW4)
256
+ - [August 2019: SIBMI Presentations](https://docs.google.com/presentation/d/1IRWDofdvKS3qbLY-s0a1EUijha3m-JopMYgmETOIHq0/edit?usp=sharing)
257
+ - [July 2019: Intern progress reports and HuBMAP collaboration](https://docs.google.com/presentation/d/10zanc_cHh-OcFvBeuJdKBpLnazjVh64pbbdD4kJQ7GY/edit?usp=sharing)
258
+ - [May 2019: Harvard IT Summit](https://docs.google.com/presentation/d/1eYDMedzhQtcClB2cIBo17hlaSSAu_-vzkG4LY_mGGQ8/edit#slide=id.p)
259
+ - [May 2019: Misc. tools](https://docs.google.com/presentation/d/1TaC68-r6bosnwi05BZ5bNh9tzeXsxyqmBo1gFZDxhGM/edit#slide=id.p)
260
+ - [April 2019: Software engineering](https://docs.google.com/presentation/d/1uW3J83LYaa67M9ZKe15AQw_h06QiFJBzpBickbRFcCY/edit#slide=id.p)
261
+
262
+ ## Citation
263
+
264
+ To cite Vitessce in your work, please use:
265
+
266
+ ```bibtex
267
+ @article{keller2024vitessce,
268
+ title = {{Vitessce: integrative visualization of multimodal and spatially resolved single-cell data}},
269
+ author = {Keller, Mark S. and Gold, Ilan and McCallum, Chuck and Manz, Trevor and Kharchenko, Peter V. and Gehlenborg, Nils},
270
+ journal = {Nature Methods},
271
+ year = {2024},
272
+ month = sep,
273
+ doi = {10.1038/s41592-024-02436-x}
274
+ }
275
+ ```
276
+
277
+ If you use the image rendering functionality, please additionally cite Viv:
278
+
279
+ ```bibtex
280
+ @article{manz2022viv,
281
+ title = {{Viv: multiscale visualization of high-resolution multiplexed bioimaging data on the web}},
282
+ author = {Manz, Trevor and Gold, Ilan and Patterson, Nathan Heath and McCallum, Chuck and Keller, Mark S. and Herr, II, Bruce W. and Börner, Kay and Spraggins, Jeffrey M. and Gehlenborg, Nils},
283
+ journal = {Nature Methods},
284
+ year = {2022},
285
+ month = may,
286
+ doi = {10.1038/s41592-022-01482-7}
287
+ }
288
+ ```
@@ -1,9 +1,9 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import { useRef as r, useEffect as Pe, useState as L } from "react";
3
- import { M as Se, s as ie } from "./ray-grab-9OEL2ULp.js";
4
- import { M as xe, V as g, F as oe, a as X } from "./index-BLeXhxTK.js";
5
- import { i as be, M as K, s as se, B as Fe } from "./index-CRWembQ4.js";
6
- import { u as ye, a as Le } from "./OrbitControls-BrJBuUSe.js";
3
+ import { M as Se, s as ie } from "./ray-grab-XwMBlpJb.js";
4
+ import { M as xe, V as g, F as oe, a as X } from "./index-DNangxT1.js";
5
+ import { i as be, M as K, s as se, B as Fe } from "./index-BJz-iWAr.js";
6
+ import { u as ye, a as Le } from "./OrbitControls-ZAZ0euXg.js";
7
7
  function Be(l, o) {
8
8
  return l.get(o);
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import * as te from "react";
2
2
  import xi, { useState as Np, useRef as hc, useEffect as mo, useMemo as Tp } from "react";
3
- import { r as Cp, g as Ac, s as Pp, t as Ip, v as Uc, O as yr, w as Sr, S as Mp, x as ii, y as jp, z as Op, A as Lp, E as Fp, H as Hc, I as Rp, J as Dp, K as gc, Q as Ap, n as Up, U as Hp, V as Je, j as kn, T as Bp, X as Vp, Y as qp, Z as vc, _ as bc, $ as Tl, a0 as Cl, a1 as $p, a2 as Qp, a3 as Yp } from "./index-BLeXhxTK.js";
3
+ import { r as Cp, g as Ac, s as Pp, t as Ip, v as Uc, O as yr, w as Sr, S as Mp, x as ii, y as jp, z as Op, A as Lp, E as Fp, H as Hc, I as Rp, J as Dp, K as gc, Q as Ap, n as Up, U as Hp, V as Je, j as kn, T as Bp, X as Vp, Y as qp, Z as vc, _ as bc, $ as Tl, a0 as Cl, a1 as $p, a2 as Qp, a3 as Yp } from "./index-DNangxT1.js";
4
4
  import { jsx as en, Fragment as Wp } from "react/jsx-runtime";
5
5
  var ui = { exports: {} }, si = {};
6
6
  /**
@@ -3,7 +3,7 @@ var p_ = (i, e, t) => e in i ? f_(i, e, { enumerable: !0, configurable: !0, writ
3
3
  var Qn = (i, e, t) => p_(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as g_, jsxs as m_ } from "react/jsx-runtime";
5
5
  import Hb from "react";
6
- import { g as Qe, bs as v_, bt as Ot, bu as ut, bv as Hv, bw as qv, bx as $k, by as jv, bz as Nr, bA as Jv, bB as aa, bC as Ro, bD as Ao, bE as Gk, bF as oa, bG as qu, bH as Or, bI as ju, bJ as Ju, bK as xs, bL as y_, bM as S_, bN as b_, bO as Ku, bP as w_, bQ as C_, bR as Wk, bS as Yu, bT as x_, bU as E_, bV as k_, bW as T_, bX as L_, bY as Kv, bZ as Hk, b_ as D_, b$ as Yv, c0 as I_, c1 as P_, c2 as R_, c3 as A_, c4 as __, c5 as M_, c6 as N_, c7 as O_, c8 as V_, c9 as B_ } from "./index-BLeXhxTK.js";
6
+ import { g as Qe, bs as v_, bt as Ot, bu as ut, bv as Hv, bw as qv, bx as $k, by as jv, bz as Nr, bA as Jv, bB as aa, bC as Ro, bD as Ao, bE as Gk, bF as oa, bG as qu, bH as Or, bI as ju, bJ as Ju, bK as xs, bL as y_, bM as S_, bN as b_, bO as Ku, bP as w_, bQ as C_, bR as Wk, bS as Yu, bT as x_, bU as E_, bV as k_, bW as T_, bX as L_, bY as Kv, bZ as Hk, b_ as D_, b$ as Yv, c0 as I_, c1 as P_, c2 as R_, c3 as A_, c4 as __, c5 as M_, c6 as N_, c7 as O_, c8 as V_, c9 as B_ } from "./index-DNangxT1.js";
7
7
  var F_ = v_();
8
8
  const H = /* @__PURE__ */ Qe(F_);
9
9
  var qb = {}, Nf, jb;
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { useState as s, useEffect as o } from "react";
3
- import { x as r } from "./xrStore-D3c_VFug.js";
3
+ import { x as r } from "./xrStore-Di4S0hIK.js";
4
4
  function b() {
5
5
  const [i, u] = s(!1), [n, a] = s(!1);
6
6
  return o(() => {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, Fragment as d, jsx as i } from "react/jsx-runtime";
2
2
  import { useRef as f } from "react";
3
- import { s as m, M as x } from "./ray-grab-9OEL2ULp.js";
4
- import { u as h, a as g } from "./OrbitControls-BrJBuUSe.js";
3
+ import { s as m, M as x } from "./ray-grab-XwMBlpJb.js";
4
+ import { u as h, a as g } from "./OrbitControls-ZAZ0euXg.js";
5
5
  function l(n, r) {
6
6
  return n.get(r);
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { K as t } from "./ray-grab-9OEL2ULp.js";
2
+ import { K as t } from "./ray-grab-XwMBlpJb.js";
3
3
  import "react";
4
- import { x as e } from "./xrStore-D3c_VFug.js";
4
+ import { x as e } from "./xrStore-Di4S0hIK.js";
5
5
  function f({ children: r }) {
6
6
  return o(t, { store: e, children: r });
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { i as r } from "./pako.esm-D68R8YXe.js";
2
- import { B as a } from "./index-BLeXhxTK.js";
2
+ import { B as a } from "./index-DNangxT1.js";
3
3
  class s extends a {
4
4
  decodeBlock(e) {
5
5
  return r(new Uint8Array(e)).buffer;
@@ -2,9 +2,9 @@ var tx = Object.defineProperty;
2
2
  var nx = (n, e, t) => e in n ? tx(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var K = (n, e, t) => nx(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsxs as oe, jsx as T, Fragment as Kt } from "react/jsx-runtime";
5
- import { aO as Ke, g as ix, aP as Th, V as ae, M as gr, _ as _t, aM as Et, a2 as Ah, aA as vm, Q as rx, aQ as ym, ax as Sm, aR as Mm, a8 as Em, au as pi, O as sx, ak as _n, p as Ht, aG as to, aC as no, aS as Sl, aT as Rh, az as ax, j as Jr, aU as jt, aV as ox, aW as ea, aX as sn, aY as io, aZ as mo, a_ as wm, a$ as Xl, b0 as Ml, b1 as Li, b2 as wf, b3 as _c, b4 as bm, b5 as lx, b6 as cx, b7 as ux, b8 as Pi, b9 as Xa, ba as vc, bb as hx, bc as fx, bd as dx, be as Tm, bf as El, bg as bf, bh as Tf, bi as Af, bj as px, bk as mx, bl as Rf, bm as gx, bn as Pf, bo as Cf, bp as Nu, bq as Am, br as xx } from "./index-BLeXhxTK.js";
5
+ import { aO as Ke, g as ix, aP as Th, V as ae, M as gr, _ as _t, aM as Et, a2 as Ah, aA as vm, Q as rx, aQ as ym, ax as Sm, aR as Mm, a8 as Em, au as pi, O as sx, ak as _n, p as Ht, aG as to, aC as no, aS as Sl, aT as Rh, az as ax, j as Jr, aU as jt, aV as ox, aW as ea, aX as sn, aY as io, aZ as mo, a_ as wm, a$ as Xl, b0 as Ml, b1 as Li, b2 as wf, b3 as _c, b4 as bm, b5 as lx, b6 as cx, b7 as ux, b8 as Pi, b9 as Xa, ba as vc, bb as hx, bc as fx, bd as dx, be as Tm, bf as El, bg as bf, bh as Tf, bi as Af, bj as px, bk as mx, bl as Rf, bm as gx, bn as Pf, bo as Cf, bp as Nu, bq as Am, br as xx } from "./index-DNangxT1.js";
6
6
  import Ot, { useState as Rt, useMemo as yc, useEffect as mi, useContext as _x, createElement as vx, useRef as Du } from "react";
7
- import { _ as yx, $ as Sx } from "./ray-grab-9OEL2ULp.js";
7
+ import { _ as yx, $ as Sx } from "./ray-grab-XwMBlpJb.js";
8
8
  import { createRoot as Lf } from "react-dom/client";
9
9
  const If = () => {
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import * as KY from "react";
2
2
  import I, { createContext as op, isValidElement as ZY, PureComponent as ap, Component as sp, useMemo as Zt, useState as Ur, useRef as Mt, useEffect as ar, useCallback as zt, memo as QY, useContext as nl, useReducer as JY, useLayoutEffect as eK } from "react";
3
- import { g as PB, a4 as e4, a5 as qO } from "./index-BLeXhxTK.js";
3
+ import { g as PB, a4 as e4, a5 as qO } from "./index-DNangxT1.js";
4
4
  import ga, { unstable_batchedUpdates as Yp, createPortal as tK } from "react-dom";
5
5
  import { jsx as Ic, jsxs as rK } from "react/jsx-runtime";
6
6
  function nK(t) {
@@ -4,8 +4,8 @@ var Ye = (c, n, l) => Ua(c, typeof n != "symbol" ? n + "" : n, l);
4
4
  import { jsxs as _t, jsx as _e, Fragment as Ca } from "react/jsx-runtime";
5
5
  import * as be from "react";
6
6
  import Sr, { useRef as gr, useState as mt, useEffect as hr, Suspense as yr, forwardRef as Ma } from "react";
7
- import { u as Ui, s as Ea, O as Fa, C as Da } from "./OrbitControls-BrJBuUSe.js";
8
- import { a6 as No, a7 as Vo, a8 as no, a9 as fi, aa as tn, ab as Pa, a as je, ac as rn, V as K, o as ka, m as xr, ad as ro, j as ke, p as Dt, k as Pt, ae as gt, M as tt, af as La, Q as Pn, a3 as Dn, ag as Ba, ah as Ra, ai as za, aj as Ia, ak as Wo, al as Oa, am as Ga, d as br, an as jo, ao as Ho, P as Ci, ap as Xo, a2 as Yo, aq as en, q as qo, F as _r, ar as Na, a1 as Va, C as nt, D as Wa, R as ja, as as Ha, at as Xa, S as Ya, au as qa, av as Ja, aw as Ka } from "./index-BLeXhxTK.js";
7
+ import { u as Ui, s as Ea, O as Fa, C as Da } from "./OrbitControls-ZAZ0euXg.js";
8
+ import { a6 as No, a7 as Vo, a8 as no, a9 as fi, aa as tn, ab as Pa, a as je, ac as rn, V as K, o as ka, m as xr, ad as ro, j as ke, p as Dt, k as Pt, ae as gt, M as tt, af as La, Q as Pn, a3 as Dn, ag as Ba, ah as Ra, ai as za, aj as Ia, ak as Wo, al as Oa, am as Ga, d as br, an as jo, ao as Ho, P as Ci, ap as Xo, a2 as Yo, aq as en, q as qo, F as _r, ar as Na, a1 as Va, C as nt, D as Wa, R as ja, as as Ha, at as Xa, S as Ya, au as qa, av as Ja, aw as Ka } from "./index-DNangxT1.js";
9
9
  const Jo = parseInt(No.replace(/\D+/g, "")), Ko = Jo >= 125 ? "uv1" : "uv2", io = /* @__PURE__ */ new je(), Xn = /* @__PURE__ */ new K();
10
10
  class Mi extends Vo {
11
11
  constructor() {
@@ -6755,16 +6755,42 @@ function sc({ currentLine: c, scale: n }) {
6755
6755
  })] });
6756
6756
  }
6757
6757
  class lc {
6758
+ /**
6759
+ * @param {number} xLength Width of the volume
6760
+ * @param {number} yLength Length of the volume
6761
+ * @param {number} zLength Depth of the volume
6762
+ * @param {string} type The type of data (uint8, uint16, ...)
6763
+ * @param {ArrayBuffer} arrayBuffer The buffer with volume data
6764
+ */
6758
6765
  constructor(n, l, u, t, e) {
6759
6766
  Ye(this, "spacing", [1, 1, 1]);
6767
+ // Offset of the volume in the RAS coordinate system
6760
6768
  Ye(this, "offset", [0, 0, 0]);
6769
+ // The IJK to RAS matrix
6761
6770
  Ye(this, "matrix", new jo().identity());
6771
+ // The list of all the slices associated to this volume
6762
6772
  Ye(this, "sliceList", []);
6773
+ /**
6774
+ * The voxels with values under this
6775
+ * threshold won't appear in the slices.
6776
+ * If changed, geometryNeedsUpdate is automatically set to true on all
6777
+ * the slices associated to this volume
6778
+ */
6763
6779
  Ye(this, "lowerThresholdValue", -1 / 0);
6780
+ /**
6781
+ * The voxels with values over this
6782
+ * threshold won't appear in the slices.
6783
+ * If changed, geometryNeedsUpdate is automatically set to true on all
6784
+ * the slices associated to this volume
6785
+ */
6764
6786
  Ye(this, "upperThresholdValue", 1 / 0);
6787
+ // Width of the volume in the IJK coordinate system
6765
6788
  Ye(this, "xLength", 1);
6789
+ // Height of the volume in the IJK coordinate system
6766
6790
  Ye(this, "yLength", 1);
6791
+ // Depth of the volume in the IJK coordinate system
6767
6792
  Ye(this, "zLength", 1);
6793
+ // Data of the volume
6768
6794
  Ye(this, "data");
6769
6795
  Ye(this, "RASDimensions");
6770
6796
  Ye(this, "inverseMatrix");
@@ -6862,16 +6888,31 @@ class lc {
6862
6888
  l.geometryNeedsUpdate = !0;
6863
6889
  });
6864
6890
  }
6891
+ /**
6892
+ * Shortcut for data[access(i,j,k)]
6893
+ */
6865
6894
  getData(n, l, u) {
6866
6895
  return this.data[u * this.xLength * this.yLength + l * this.xLength + n];
6867
6896
  }
6897
+ /**
6898
+ * Compute the index in the data
6899
+ * array corresponding to the given coordinates in IJK system
6900
+ */
6868
6901
  access(n, l, u) {
6869
6902
  return u * this.xLength * this.yLength + l * this.xLength + n;
6870
6903
  }
6904
+ /**
6905
+ * Retrieve the IJK coordinates of the voxel
6906
+ * corresponding of the given index in the data
6907
+ */
6871
6908
  reverseAccess(n) {
6872
6909
  const l = Math.floor(n / (this.yLength * this.xLength)), u = Math.floor((n - l * this.yLength * this.xLength) / this.xLength);
6873
6910
  return [n - l * this.yLength * this.xLength - u * this.xLength, u, l];
6874
6911
  }
6912
+ /**
6913
+ * Apply a function to all the voxels, be careful,
6914
+ * the value will be replaced
6915
+ */
6875
6916
  // eslint-disable-next-line max-len
6876
6917
  map(n, l) {
6877
6918
  const { length: u } = this.data, t = l || this;
@@ -6879,6 +6920,13 @@ class lc {
6879
6920
  this.data[e] = n.call(t, this.data[e], e, this.data);
6880
6921
  return this;
6881
6922
  }
6923
+ /**
6924
+ * Compute the orientation
6925
+ * of the slice and returns all the information relative to the
6926
+ * geometry such as sliceAccess,
6927
+ * the plane matrix (orientation and position in RAS coordinate)
6928
+ * and the dimensions of the plane in both coordinate system.
6929
+ */
6882
6930
  extractPerpendicularPlane(n, l) {
6883
6931
  const u = new tt().identity(), t = this;
6884
6932
  let e, r, o, i;
@@ -6912,6 +6960,11 @@ class lc {
6912
6960
  planeHeight: p
6913
6961
  };
6914
6962
  }
6963
+ /**
6964
+ * Compute the minimum
6965
+ * and the maximum of the data in the volume
6966
+ * @returns {Array} [min,max]
6967
+ */
6915
6968
  computeMinMax() {
6916
6969
  let n = 1 / 0, l = -1 / 0;
6917
6970
  const u = this.data.length;
@@ -7446,7 +7499,7 @@ function Ai(c) {
7446
7499
  o(s.object.name);
7447
7500
  }, onPointerOut: () => o(null) }) })] }) : null, t.uniforms && t.shader && t.meshScale && t.geometrySize ? _e("group", { children: _t("mesh", { scale: t.meshScale, ref: e, children: [_e("boxGeometry", { args: t.geometrySize }), _e("shaderMaterial", { customProgramCacheKey: () => "1", side: _r, uniforms: t.uniforms, needsUpdate: !0, transparent: !0, vertexShader: t.shader.vertexShader, fragmentShader: t.shader.fragmentShader })] }) }) : null] }), _e("group", { name: "lines", children: a.map((s) => _e(sc, { currentLine: s, scale: 1 }, wc(s))) })] });
7448
7501
  }
7449
- const Sc = Sr.lazy(() => import("./GeometryAndMeshXR-CDuFtV77.js").catch(() => ({ default: Ai }))), Tc = Sr.lazy(() => import("./XRSceneComponents-BsPxVGaX.js").catch(() => ({ default: () => null })));
7502
+ const Sc = Sr.lazy(() => import("./GeometryAndMeshXR-H3DlWLG2.js").catch(() => ({ default: Ai }))), Tc = Sr.lazy(() => import("./XRSceneComponents-DknWP-KF.js").catch(() => ({ default: () => null })));
7450
7503
  function ui(c) {
7451
7504
  const n = gr(null), l = gr(null), [u, t] = mt(!1), [e, r] = mt(!1), [o, i] = mt(null), [a, s] = mt([1, 1, 1]), [d, f] = mt({
7452
7505
  uniforms: null,
@@ -7651,18 +7704,18 @@ function ui(c) {
7651
7704
  }
7652
7705
  const Ac = Sr.lazy(
7653
7706
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
7654
- () => import("./XRWrapper-B3mqy7wn.js").catch(() => ({
7707
+ () => import("./XRWrapper-65DDKoxT.js").catch(() => ({
7655
7708
  default: ({ children: c }) => c
7656
7709
  }))
7657
7710
  ), Uc = Sr.lazy(
7658
7711
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
7659
- () => import("./XREnterButton-s3JNl4Y5.js").catch(() => ({
7712
+ () => import("./XREnterButton-C-Xc92kB.js").catch(() => ({
7660
7713
  default: () => null
7661
7714
  }))
7662
7715
  ), Cc = Ma((c, n) => {
7663
7716
  const [l, u] = mt(!1);
7664
7717
  return hr(() => {
7665
- import("./index-WPOnaDjf.js").then(() => u(!0)).catch(() => {
7718
+ import("./index-BP1_qbI-.js").then(() => u(!0)).catch(() => {
7666
7719
  });
7667
7720
  }, []), _t("div", { style: { width: "100%", height: "100%" }, children: [l && _e(yr, { fallback: null, children: _e(Uc, {}) }), _e(Da, { style: { position: "absolute", top: 0, left: 0 }, camera: {
7668
7721
  fov: 50,
@@ -1,4 +1,4 @@
1
- import { C as o, y as r, v as n, B as u, z as i, D as R, x as l, w as X, F as p, E as c, A as S, S as P, Z as d, m as y, P as f, R as m, T as I, K as D, W as b, d as M, e as C, Q as G, X as T, O as H, J as h, G as v, H as x, I as L, i as E, o as O, U as A, b as B, a as F, h as V, Y as k, V as z, k as K, n as g, j, l as q, M as w, c as J, N, s as Q, t as U, f as W, g as Y, r as Z, q as _, p as $, u as ee, L as ae } from "./ray-grab-9OEL2ULp.js";
1
+ import { C as o, y as r, v as n, B as u, z as i, D as R, x as l, w as X, F as p, E as c, A as S, S as P, Z as d, m as y, P as f, R as m, T as I, K as D, W as b, d as M, e as C, Q as G, X as T, O as H, J as h, G as v, H as x, I as L, i as E, o as O, U as A, b as B, a as F, h as V, Y as k, V as z, k as K, n as g, j, l as q, M as w, c as J, N, s as Q, t as U, f as W, g as Y, r as Z, q as _, p as $, u as ee, L as ae } from "./ray-grab-XwMBlpJb.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  export {
@@ -1295,7 +1295,7 @@ const l3t = {
1295
1295
  re.SAMPLE_HIGHLIGHT,
1296
1296
  re.HIERARCHY_LEVELS
1297
1297
  ]
1298
- }, g3t = "3.9.8", c3t = {
1298
+ }, g3t = "4.0.0-test.2", c3t = {
1299
1299
  version: g3t
1300
1300
  }, wY = ["z", "t"], Cct = "Min/Max", I3t = {
1301
1301
  opacity: 1,
@@ -159493,19 +159493,19 @@ async function i0i(t) {
159493
159493
  const n = await e();
159494
159494
  return new n(t);
159495
159495
  }
159496
- GR([void 0, 1], () => import("./raw-DzihOYOe.js").then((t) => t.default));
159497
- GR(5, () => import("./lzw-Dg9ghyv5.js").then((t) => t.default));
159496
+ GR([void 0, 1], () => import("./raw-0egotUxH.js").then((t) => t.default));
159497
+ GR(5, () => import("./lzw-QF6gugJz.js").then((t) => t.default));
159498
159498
  GR(6, () => {
159499
159499
  throw new Error("old style JPEG compression is not supported.");
159500
159500
  });
159501
- GR(7, () => import("./jpeg-BT_-26Ph.js").then((t) => t.default));
159502
- GR([8, 32946], () => import("./deflate-BhW_mYsS.js").then((t) => t.default));
159503
- GR(32773, () => import("./packbits-CrJ-qt3Y.js").then((t) => t.default));
159501
+ GR(7, () => import("./jpeg-BkQmyCqH.js").then((t) => t.default));
159502
+ GR([8, 32946], () => import("./deflate-DePou18j.js").then((t) => t.default));
159503
+ GR(32773, () => import("./packbits-BITrgxsQ.js").then((t) => t.default));
159504
159504
  GR(
159505
159505
  34887,
159506
- () => import("./lerc-CTMmM_q8.js").then(async (t) => (await t.zstd.init(), t)).then((t) => t.default)
159506
+ () => import("./lerc-Df9qlqYn.js").then(async (t) => (await t.zstd.init(), t)).then((t) => t.default)
159507
159507
  );
159508
- GR(50001, () => import("./webimage-CNPDR7gt.js").then((t) => t.default));
159508
+ GR(50001, () => import("./webimage-CqycQKfh.js").then((t) => t.default));
159509
159509
  function fre(t, e, n, i = 1) {
159510
159510
  return new (Object.getPrototypeOf(t)).constructor(e * n * i);
159511
159511
  }
@@ -188451,10 +188451,10 @@ class KZt extends pn.Component {
188451
188451
  }
188452
188452
  }
188453
188453
  const s2i = pn.lazy(async () => {
188454
- const { SpatialWrapper: t } = await import("./index-CRWembQ4.js").then((e) => e.a);
188454
+ const { SpatialWrapper: t } = await import("./index-BJz-iWAr.js").then((e) => e.a);
188455
188455
  return { default: t };
188456
188456
  }), a2i = pn.forwardRef((t, e) => O("div", { ref: e, style: { width: "100%", height: "100%" }, children: O(KZt, { fallback: O("div", { children: "3D spatial view is not available in this environment." }), children: O(vX, { fallback: O("div", { children: "Loading..." }), children: O(s2i, { ...t }) }) }) })), l2i = pn.lazy(async () => {
188457
- const { SpatialWrapper: t } = await import("./index-DWzI2Mwu.js");
188457
+ const { SpatialWrapper: t } = await import("./index-H9tZsNft.js");
188458
188458
  return { default: t };
188459
188459
  }), A2i = pn.forwardRef((t, e) => O("div", { ref: e, style: { width: "100%", height: "100%" }, children: O(KZt, { fallback: O("div", { children: "3D spatial view is not available in this environment." }), children: O(vX, { fallback: O("div", { children: "Loading..." }), children: O(l2i, { ...t }) }) }) })), jZt = "first";
188460
188460
  function g2i({ multiExpressionData: t, layerScopes: e, layerCoordination: n }) {
@@ -197222,7 +197222,7 @@ function YNt(t) {
197222
197222
  }
197223
197223
  Wwi({ dataFetcher: Mpe, config: Mpe.config }, { pluginType: "dataFetcher" });
197224
197224
  const RGi = pn.lazy(async () => {
197225
- const { HiGlassComponent: t } = await import("./higlass-moXDbnqp.js");
197225
+ const { HiGlassComponent: t } = await import("./higlass-CvGYDZZb.js");
197226
197226
  return { default: t };
197227
197227
  }), kK = 800;
197228
197228
  function SGi(t, e) {
@@ -200096,7 +200096,7 @@ function TGi(t) {
200096
200096
  const { classes: e } = t;
200097
200097
  return Ke(Rr, { children: [O(Tbe, { styles: wGi }), O(LT, { styles: GGi, parentClassName: e.neuroglancerWrapper })] });
200098
200098
  }
200099
- const DGi = pn.lazy(() => import("./ReactNeuroglancer-n_mccJEi.js"));
200099
+ const DGi = pn.lazy(() => import("./ReactNeuroglancer-ynqeNj44.js"));
200100
200100
  function kGi() {
200101
200101
  const t = new vGi();
200102
200102
  return t.AsyncComputationWorker = WGi, t;