@abi-software/mapintegratedvuer 0.7.2-vue3.0-alpha.0 → 1.0.1

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 (65) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +150 -150
  3. package/assets/styleguide.css +19 -19
  4. package/cypress.config.js +23 -23
  5. package/dist/index.html +17 -17
  6. package/dist/mapintegratedvuer.js +74289 -73840
  7. package/dist/mapintegratedvuer.umd.cjs +878 -515
  8. package/dist/style.css +1 -1
  9. package/package.json +134 -135
  10. package/public/index.html +17 -17
  11. package/reporter-config.json +9 -9
  12. package/src/App.vue +245 -245
  13. package/src/assets/_variables.scss +43 -43
  14. package/src/assets/fonts/mapicon-species.eot +0 -0
  15. package/src/assets/fonts/mapicon-species.ttf +0 -0
  16. package/src/assets/fonts/mapicon-species.woff +0 -0
  17. package/src/assets/header-icon.scss +67 -67
  18. package/src/assets/mapicon-species-style.css +41 -41
  19. package/src/assets/styles.scss +9 -9
  20. package/src/components/ContentBar.vue +376 -376
  21. package/src/components/ContentVuer.vue +217 -217
  22. package/src/components/ContextCard.vue +385 -385
  23. package/src/components/ContextHelp.vue +73 -73
  24. package/src/components/CustomSplitter.vue +151 -151
  25. package/src/components/DatasetHeader.vue +97 -97
  26. package/src/components/DialogToolbarContent.vue +464 -464
  27. package/src/components/EventBus.js +3 -3
  28. package/src/components/FlatmapContextCard.vue +134 -134
  29. package/src/components/MapContent.vue +328 -333
  30. package/src/components/ResizeSensor.vue +47 -47
  31. package/src/components/SearchControls.vue +115 -115
  32. package/src/components/SimulatedData.js +721 -721
  33. package/src/components/SplitDialog.vue +287 -287
  34. package/src/components/SplitFlow.vue +414 -414
  35. package/src/components/index.js +7 -7
  36. package/src/components/markerZoomLevelsHardCoded.js +255 -255
  37. package/src/components/scripts/utilities.js +173 -173
  38. package/src/components/viewers/Flatmap.vue +145 -145
  39. package/src/components/viewers/Iframe.vue +31 -31
  40. package/src/components/viewers/MultiFlatmap.vue +384 -384
  41. package/src/components/viewers/Plot.vue +23 -23
  42. package/src/components/viewers/Scaffold.vue +198 -198
  43. package/src/components/viewers/Simulation.vue +21 -21
  44. package/src/icons/yellowstar.js +1 -1
  45. package/src/main.js +31 -31
  46. package/src/mixins/ContentMixin.js +438 -438
  47. package/src/mixins/DynamicMarkerMixin.js +88 -88
  48. package/src/mixins/S3Bucket.vue +37 -37
  49. package/src/stores/entries.js +40 -40
  50. package/src/stores/index.js +23 -23
  51. package/src/stores/settings.js +144 -144
  52. package/src/stores/splitFlow.js +523 -523
  53. package/static.json +7 -7
  54. package/vite.config.js +70 -70
  55. package/vite.static-build.js +12 -12
  56. package/vitest.workspace.js +3 -3
  57. package/vuese-generator.js +65 -65
  58. package/assets/gazelle-icons-no-background.css +0 -32
  59. package/dist/matterport.pdf +0 -0
  60. package/dist/test.txt +0 -0
  61. package/public/matterport.pdf +0 -0
  62. package/public/test.txt +0 -0
  63. package/q.json +0 -690
  64. package/src/mixins/RetrieveContextCardMixin.js +0 -82
  65. package/tsconfig.json +0 -19
package/README.md CHANGED
@@ -1,150 +1,150 @@
1
- # mapintegratedvuer
2
-
3
- This project aims to provide an application to visually navigate anatomical entities to discover functional and physiological datasets
4
- from organ-specific neural circuitry.
5
-
6
- ## Components in mapintegratedvuer
7
-
8
- Mapintegratedvuer includes multiple components for visualising data, the list of viewers can be found below:
9
-
10
- ### [Flatmapvuer](https://github.com/ABI-Software/flatmapvuer)
11
-
12
- ### [Scaffoldvuer](https://github.com/ABI-Software/scaffoldvuer)
13
-
14
- ### [Simulationvuer](https://github.com/ABI-Software/simulationvuer)
15
-
16
- ### [Plotvuer](https://github.com/ABI-Software/plotvuer)
17
-
18
- ### [Sidebar](https://github.com/ABI-Software/map-sidebar.git)
19
-
20
-
21
- ## mapintegratedvuer on NPM
22
-
23
- mapintegratedvuer is available on npm and can be installed into your project with the following command:
24
- ```bash
25
- npm i @abi-software/mapintegratedvuer
26
- ```
27
-
28
- ## Project setup
29
- ```
30
- npm install
31
- ```
32
-
33
- ### Compiles and minifies for production
34
- ```
35
- npm run build-bundle
36
- ```
37
-
38
- ## How to use
39
- Install the package in your vue app project with the following command "npm i @abi-software/mapintegratedvuer".
40
- Import the package in your script as followed:
41
- ```javascript
42
- import '@abi-software/mapintegratedvuer';
43
- import '@abi-software/mapintegratedvuer/dist/mapintegratedvuer.css';
44
- ```
45
-
46
- The codes above register the MapContent component in the global scope.
47
- You can now use the MapContent in your vue template as followed:
48
- ```html
49
- <MapContent />
50
- ```
51
-
52
- ## Project setup from Github
53
-
54
- The source code is available from Github, it can be found here: https://github.com/ABI-Software/mapintegratedvuer .
55
-
56
- ### Clone the respositroy
57
- ```bash
58
- git clone https://github.com/ABI-Software/mapintegratedvuer
59
- ```
60
-
61
- ### Setup
62
- ```bash
63
- npm install
64
- ```
65
-
66
- ### Create an instance
67
- ```bash
68
- npm run serve
69
- ```
70
-
71
- ### Compiles and minifies for production
72
- ```bash
73
- npm run build-bundle
74
- ```
75
-
76
- ## Example
77
- The following pagedemonstrates the mapintegratedapp in action: https://mapcore-demo.org/current/sparc-app/maps
78
-
79
-
80
- ## Testing mapintegratedvuer dependencies in [sparc-app](https://github.com/nih-sparc/sparc-app/)
81
- We will cover three options for updating nested dependencies.
82
-
83
- ### 1. Copy build files from `npm run build-bundle`
84
- This works by directly changing files in `node-modules/`, where node will look to resolve dependencies.
85
-
86
- ```
87
- cd <your-dependency>
88
- npm run build-bundle
89
- cp /dist <mapintegratedvuer-path>/node_modules/@<your-npmhandle>/<your-dependency>/dist
90
- cd <mapintegratedvuer-path>
91
- npm run build-bundle
92
- cp /dist <sparc-app-path>/node_modules/@abi-software/mapintegratedvuer/dist
93
- yarn dev
94
- ```
95
- *Note: this assumes assets in the static folders shipped with the npm package will remain unchanged*
96
- ### 2. Use `yarn link`
97
- This is a variant of option 1, where we use `yarn link` to create a symbolic link from mapintegratedvuer->spar-app
98
- It reduces the number of copies to 1, but still requires 3 builds
99
- ```
100
- cd <your-dependency>
101
- npm run build-bundle
102
- cp /dist <mapintegratedvuer-path>/node_modules/@<your-npmhandle>/<your-dependency>/dist
103
- cd <mapintegratedvuer-path>
104
- npm run build-bundle
105
- yarn link
106
- cd sparc-app
107
- yarn link @abi-software/mapintegratedvuer
108
- yarn dev
109
- ```
110
- (npm link does not work without disabling es-lint, which we won't go into)
111
-
112
- ### 3. Publish own version of mapintegratedvuer
113
- This method is the most time consuming and has the downside of populating the npm package's version history with builds.
114
- Since it mimics the way `sparc-app` will use it, it's gauranteed to work.
115
-
116
- ```
117
- cd <your-dependency>
118
- npm run build-bundle
119
- npm publish --tag alpha
120
- cd mapintegratedvuer
121
- npm install @<your-npmhandle>/<your-dependency>@alpha
122
- ```
123
-
124
- Edit mapintegratedvuer/package.json:
125
- Change `@abi-software/mapintegratedvuer` to `@<your-npm-handle>/mapintegratedvuer`
126
-
127
- ```
128
- cd mapintegratedvuer
129
- npm run build-bundle
130
- npm publish --tag alpha
131
- ```
132
-
133
- Edit sparc-app/pages/maps/index.vue
134
- Change `@abi-software/mapintegratedvuer` to `@<your-npm-handle>/mapintegratedvuer`
135
-
136
- ```
137
- cd sparc-app
138
- yarn add @<your-npm-handle>/mapintegratedvuer@alpha
139
- yarn dev
140
- ```
141
-
142
- ## Documentation
143
-
144
- The documentation is developed with `vitepress` and `vuese`. Documentation pages are in the `docs` folder.
145
-
146
- ### To run in local development mode
147
- ```bash
148
- npm run docs:watch
149
- ```
150
- This will start the documentation server with `vitepress` on port `:5173` and watch the `FlatmapVuer` and `MultiFlatmapVuer` components changes.
1
+ # mapintegratedvuer
2
+
3
+ This project aims to provide an application to visually navigate anatomical entities to discover functional and physiological datasets
4
+ from organ-specific neural circuitry.
5
+
6
+ ## Components in mapintegratedvuer
7
+
8
+ Mapintegratedvuer includes multiple components for visualising data, the list of viewers can be found below:
9
+
10
+ ### [Flatmapvuer](https://github.com/ABI-Software/flatmapvuer)
11
+
12
+ ### [Scaffoldvuer](https://github.com/ABI-Software/scaffoldvuer)
13
+
14
+ ### [Simulationvuer](https://github.com/ABI-Software/simulationvuer)
15
+
16
+ ### [Plotvuer](https://github.com/ABI-Software/plotvuer)
17
+
18
+ ### [Sidebar](https://github.com/ABI-Software/map-sidebar.git)
19
+
20
+
21
+ ## mapintegratedvuer on NPM
22
+
23
+ mapintegratedvuer is available on npm and can be installed into your project with the following command:
24
+ ```bash
25
+ npm i @abi-software/mapintegratedvuer
26
+ ```
27
+
28
+ ## Project setup
29
+ ```
30
+ npm install
31
+ ```
32
+
33
+ ### Compiles and minifies for production
34
+ ```
35
+ npm run build-bundle
36
+ ```
37
+
38
+ ## How to use
39
+ Install the package in your vue app project with the following command "npm i @abi-software/mapintegratedvuer".
40
+ Import the package in your script as followed:
41
+ ```javascript
42
+ import '@abi-software/mapintegratedvuer';
43
+ import '@abi-software/mapintegratedvuer/dist/mapintegratedvuer.css';
44
+ ```
45
+
46
+ The codes above register the MapContent component in the global scope.
47
+ You can now use the MapContent in your vue template as followed:
48
+ ```html
49
+ <MapContent />
50
+ ```
51
+
52
+ ## Project setup from Github
53
+
54
+ The source code is available from Github, it can be found here: https://github.com/ABI-Software/mapintegratedvuer .
55
+
56
+ ### Clone the respositroy
57
+ ```bash
58
+ git clone https://github.com/ABI-Software/mapintegratedvuer
59
+ ```
60
+
61
+ ### Setup
62
+ ```bash
63
+ npm install
64
+ ```
65
+
66
+ ### Create an instance
67
+ ```bash
68
+ npm run serve
69
+ ```
70
+
71
+ ### Compiles and minifies for production
72
+ ```bash
73
+ npm run build-bundle
74
+ ```
75
+
76
+ ## Example
77
+ The following pagedemonstrates the mapintegratedapp in action: https://mapcore-demo.org/current/sparc-app/maps
78
+
79
+
80
+ ## Testing mapintegratedvuer dependencies in [sparc-app](https://github.com/nih-sparc/sparc-app/)
81
+ We will cover three options for updating nested dependencies.
82
+
83
+ ### 1. Copy build files from `npm run build-bundle`
84
+ This works by directly changing files in `node-modules/`, where node will look to resolve dependencies.
85
+
86
+ ```
87
+ cd <your-dependency>
88
+ npm run build-bundle
89
+ cp /dist <mapintegratedvuer-path>/node_modules/@<your-npmhandle>/<your-dependency>/dist
90
+ cd <mapintegratedvuer-path>
91
+ npm run build-bundle
92
+ cp /dist <sparc-app-path>/node_modules/@abi-software/mapintegratedvuer/dist
93
+ yarn dev
94
+ ```
95
+ *Note: this assumes assets in the static folders shipped with the npm package will remain unchanged*
96
+ ### 2. Use `yarn link`
97
+ This is a variant of option 1, where we use `yarn link` to create a symbolic link from mapintegratedvuer->spar-app
98
+ It reduces the number of copies to 1, but still requires 3 builds
99
+ ```
100
+ cd <your-dependency>
101
+ npm run build-bundle
102
+ cp /dist <mapintegratedvuer-path>/node_modules/@<your-npmhandle>/<your-dependency>/dist
103
+ cd <mapintegratedvuer-path>
104
+ npm run build-bundle
105
+ yarn link
106
+ cd sparc-app
107
+ yarn link @abi-software/mapintegratedvuer
108
+ yarn dev
109
+ ```
110
+ (npm link does not work without disabling es-lint, which we won't go into)
111
+
112
+ ### 3. Publish own version of mapintegratedvuer
113
+ This method is the most time consuming and has the downside of populating the npm package's version history with builds.
114
+ Since it mimics the way `sparc-app` will use it, it's gauranteed to work.
115
+
116
+ ```
117
+ cd <your-dependency>
118
+ npm run build-bundle
119
+ npm publish --tag alpha
120
+ cd mapintegratedvuer
121
+ npm install @<your-npmhandle>/<your-dependency>@alpha
122
+ ```
123
+
124
+ Edit mapintegratedvuer/package.json:
125
+ Change `@abi-software/mapintegratedvuer` to `@<your-npm-handle>/mapintegratedvuer`
126
+
127
+ ```
128
+ cd mapintegratedvuer
129
+ npm run build-bundle
130
+ npm publish --tag alpha
131
+ ```
132
+
133
+ Edit sparc-app/pages/maps/index.vue
134
+ Change `@abi-software/mapintegratedvuer` to `@<your-npm-handle>/mapintegratedvuer`
135
+
136
+ ```
137
+ cd sparc-app
138
+ yarn add @<your-npm-handle>/mapintegratedvuer@alpha
139
+ yarn dev
140
+ ```
141
+
142
+ ## Documentation
143
+
144
+ The documentation is developed with `vitepress` and `vuese`. Documentation pages are in the `docs` folder.
145
+
146
+ ### To run in local development mode
147
+ ```bash
148
+ npm run docs:watch
149
+ ```
150
+ This will start the documentation server with `vitepress` on port `:5173` and watch the `FlatmapVuer` and `MultiFlatmapVuer` components changes.
@@ -1,19 +1,19 @@
1
- :root {
2
- --white: #f4f4f4;
3
- --white: #ffffff;
4
- --black: #333333;
5
- --slate-grey: #606266;
6
- --pale-grey: #e4e7ed;
7
- --warm-purple: #9c2aa0;
8
- --grape: #5e2750;
9
- --very-light-pink: #cccccc;
10
- --black: #000000;
11
- --very-light-pink: #ebebeb;
12
- --brown-grey: #afafaf;
13
- --charcoal-grey: #4a4d4e;
14
- --brownish-grey: #666666;
15
- --brown-grey: #999999;
16
- --deep-sky-blue: #007aff;
17
- --turquoise-blue: #00b0ca;
18
- --vibrant-purple: #8300bf;
19
- }
1
+ :root {
2
+ --white: #f4f4f4;
3
+ --white: #ffffff;
4
+ --black: #333333;
5
+ --slate-grey: #606266;
6
+ --pale-grey: #e4e7ed;
7
+ --warm-purple: #9c2aa0;
8
+ --grape: #5e2750;
9
+ --very-light-pink: #cccccc;
10
+ --black: #000000;
11
+ --very-light-pink: #ebebeb;
12
+ --brown-grey: #afafaf;
13
+ --charcoal-grey: #4a4d4e;
14
+ --brownish-grey: #666666;
15
+ --brown-grey: #999999;
16
+ --deep-sky-blue: #007aff;
17
+ --turquoise-blue: #00b0ca;
18
+ --vibrant-purple: #8300bf;
19
+ }
package/cypress.config.js CHANGED
@@ -1,23 +1,23 @@
1
-
2
- export default {
3
- defaultCommandTimeout: 10000,
4
- reporter: "junit",
5
- experimentalMemoryManagement: true,
6
- numTestsKeptInMemory: 0,
7
- reporter: "cypress-multi-reporters",
8
- reporterOptions: {
9
- configFile: "reporter-config.json",
10
- },
11
- component: {
12
- viewportWidth: 1440,
13
- viewportHeight: 900,
14
- setupNodeEvents(on, config) {},
15
- specPattern: "cypress/component/*.cy.js",
16
- devServer: {
17
- framework: "vue",
18
- bundler: "vite",
19
- },
20
- },
21
- video: true,
22
- videoCompression: true,
23
- };
1
+
2
+ export default {
3
+ defaultCommandTimeout: 10000,
4
+ reporter: "junit",
5
+ experimentalMemoryManagement: true,
6
+ numTestsKeptInMemory: 0,
7
+ reporter: "cypress-multi-reporters",
8
+ reporterOptions: {
9
+ configFile: "reporter-config.json",
10
+ },
11
+ component: {
12
+ viewportWidth: 1440,
13
+ viewportHeight: 900,
14
+ setupNodeEvents(on, config) {},
15
+ specPattern: "cypress/component/*.cy.js",
16
+ devServer: {
17
+ framework: "vue",
18
+ bundler: "vite",
19
+ },
20
+ },
21
+ video: true,
22
+ videoCompression: true,
23
+ };
package/dist/index.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title>Physiome Portal</title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong>We're sorry but Physiome Portal doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
- </noscript>
14
- <div id="app"></div>
15
- <!-- built files will be auto injected -->
16
- </body>
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+ <title>Physiome Portal</title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but Physiome Portal doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <div id="app"></div>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>