@vitessce/launcher 3.8.6
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/LICENSE +21 -0
- package/README.md +34 -0
- package/dist/OrbitControls-BF52POQp.js +18694 -0
- package/dist/ReactNeuroglancer-BzSHY22y.js +65780 -0
- package/dist/blosc-DvQQ1ST0.js +887 -0
- package/dist/chunk-INHXZS53-DHVJiuU3.js +19 -0
- package/dist/deflate-CQwOaSLw.js +10 -0
- package/dist/higlass-C7qBSekP.js +133163 -0
- package/dist/index-B00rYWyD.js +3686 -0
- package/dist/index-BIrF4FKE.js +9854 -0
- package/dist/index-CYL9MBhI.js +384168 -0
- package/dist/index.js +5 -0
- package/dist/jpeg-BFml4vEx.js +856 -0
- package/dist/lerc-BOiupD76.js +2057 -0
- package/dist/lz4-BIbM36RN.js +801 -0
- package/dist/lzw-DjHwit8p.js +125 -0
- package/dist/packbits-io9qfQZa.js +27 -0
- package/dist/pako.esm-SxljTded.js +2216 -0
- package/dist/raw-BzEs_FKC.js +9 -0
- package/dist/troika-three-text.esm-26C0zM6u.js +5685 -0
- package/dist/webimage-CwJqBfRI.js +29 -0
- package/dist/zstd-CO575QiM.js +769 -0
- package/dist-tsc/ControlledLauncher.d.ts +2 -0
- package/dist-tsc/ControlledLauncher.d.ts.map +1 -0
- package/dist-tsc/ControlledLauncher.js +129 -0
- package/dist-tsc/LauncherStart.d.ts +2 -0
- package/dist-tsc/LauncherStart.d.ts.map +1 -0
- package/dist-tsc/LauncherStart.js +142 -0
- package/dist-tsc/UncontrolledLauncher.d.ts +14 -0
- package/dist-tsc/UncontrolledLauncher.d.ts.map +1 -0
- package/dist-tsc/UncontrolledLauncher.js +52 -0
- package/dist-tsc/index.d.ts +3 -0
- package/dist-tsc/index.d.ts.map +1 -0
- package/dist-tsc/index.js +2 -0
- package/dist-tsc/launcher-styles.d.ts +10 -0
- package/dist-tsc/launcher-styles.d.ts.map +1 -0
- package/dist-tsc/launcher-styles.js +69 -0
- package/dist-tsc/use-hash-param.d.ts +3 -0
- package/dist-tsc/use-hash-param.d.ts.map +1 -0
- package/dist-tsc/use-hash-param.js +110 -0
- package/dist-tsc/use-query-or-hash-param.d.ts +2 -0
- package/dist-tsc/use-query-or-hash-param.d.ts.map +1 -0
- package/dist-tsc/use-query-or-hash-param.js +51 -0
- package/package.json +51 -0
- package/src/ControlledLauncher.js +208 -0
- package/src/LauncherStart.js +351 -0
- package/src/UncontrolledLauncher.js +110 -0
- package/src/index.js +2 -0
- package/src/launcher-styles.js +71 -0
- package/src/use-hash-param.js +124 -0
- package/src/use-query-or-hash-param.js +63 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @vitessce/launcher
|
|
2
|
+
|
|
3
|
+
This subpackage provides a React component for launching Vitessce.
|
|
4
|
+
It allows users to load local files via drag-and-drop or file selection, as well as load remote data and configurations from URL.
|
|
5
|
+
|
|
6
|
+
## Goals
|
|
7
|
+
|
|
8
|
+
- Provide data-centric launching options, both in the UI and via URL params.
|
|
9
|
+
- Decouple the launching functionality from the Docusaurus framework.
|
|
10
|
+
- Support both query parameter routing (`/?config={something}`) and hash-based routing (`/#?config={something}`).
|
|
11
|
+
- Make it easy to embed as a React component into vitessce.io, dev.vitessce.io, and a future app.vitessce.io.
|
|
12
|
+
- Uncontrolled component variant should manage state via the URL.
|
|
13
|
+
- Un-spaghetti code equivalent of https://github.com/vitessce/vitessce/blob/53455b86b8fe6fa6444dee2f38a707f40aa0beb0/sites/docs/src/pages/_Index.js#L318
|
|
14
|
+
- Should be modular enough so that it can potentially be used within Vitessce in the future with little modification (i.e., rather than the Launcher wrapping Vitessce, Vitessce could display the (controlled) launcher UI when no config (or a dataset-less config) is provided).
|
|
15
|
+
|
|
16
|
+
## Non-goals
|
|
17
|
+
|
|
18
|
+
- Text editor for config editing. This would eventually be available via the sidebar once a visualization has been launched.
|
|
19
|
+
|
|
20
|
+
## Usage via URL
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
# URL to JSON config file
|
|
24
|
+
https://app.vitessce.io/?config=https://example.com/path/to/config.json
|
|
25
|
+
https://app.vitessce.io/#?config=https://example.com/path/to/config.json
|
|
26
|
+
|
|
27
|
+
# URL to JSON config as data URI
|
|
28
|
+
https://app.vitessce.io/#?config=data:,{"name": "My config", ...}
|
|
29
|
+
https://app.vitessce.io/?config=data:,{"name": "My config", ...}
|
|
30
|
+
|
|
31
|
+
# One or more data sources. No config file; will use generateConfig function internally.
|
|
32
|
+
https://app.vitessce.io/?source=https://example.com/path/to/datafile1
|
|
33
|
+
https://app.vitessce.io/#?source=https://example.com/path/to/datafile1&source=https://example.com/path/to/datafile2
|
|
34
|
+
```
|