@abi-software/flatmapvuer 0.5.7-alpha.2 → 0.5.7

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 (37) hide show
  1. package/CHANGELOG.md +399 -385
  2. package/LICENSE +201 -201
  3. package/README.md +105 -105
  4. package/babel.config.js +14 -14
  5. package/dist/flatmapvuer.common.js +152 -127
  6. package/dist/flatmapvuer.common.js.map +1 -1
  7. package/dist/flatmapvuer.css +1 -1
  8. package/dist/flatmapvuer.umd.js +152 -127
  9. package/dist/flatmapvuer.umd.js.map +1 -1
  10. package/dist/flatmapvuer.umd.min.js +2 -2
  11. package/dist/flatmapvuer.umd.min.js.map +1 -1
  12. package/package-lock.json +14399 -14390
  13. package/package.json +78 -78
  14. package/public/index.html +17 -17
  15. package/src/App.vue +226 -226
  16. package/src/assets/_variables.scss +43 -43
  17. package/src/assets/styles.scss +7 -7
  18. package/src/components/EventBus.js +2 -2
  19. package/src/components/ExternalResourceCard.vue +98 -98
  20. package/src/components/FlatmapVuer.vue +1841 -1837
  21. package/src/components/MultiFlatmapVuer.vue +529 -523
  22. package/src/components/SelectionsGroup.vue +249 -249
  23. package/src/components/Tooltip.vue +417 -417
  24. package/src/components/TreeControls.vue +231 -231
  25. package/src/components/index.js +9 -9
  26. package/src/components/legends/DynamicLegends.vue +112 -112
  27. package/src/components/legends/SvgLegends.vue +66 -66
  28. package/src/icons/fonts/mapicon-species.eot +0 -0
  29. package/src/icons/fonts/mapicon-species.svg +14 -14
  30. package/src/icons/fonts/mapicon-species.ttf +0 -0
  31. package/src/icons/fonts/mapicon-species.woff +0 -0
  32. package/src/icons/mapicon-species-style.css +42 -42
  33. package/src/legends/legend.svg +25 -25
  34. package/src/main.js +8 -8
  35. package/src/services/flatmapQueries.js +415 -415
  36. package/vue.config.js +31 -31
  37. package/src/nerve-map.js +0 -99
package/vue.config.js CHANGED
@@ -1,31 +1,31 @@
1
- const nodeExternals = require('webpack-node-externals');
2
-
3
- module.exports = {
4
- configureWebpack: config => {
5
- if(process.env.NODE_ENV === 'production') {
6
- config.externals = [nodeExternals({allowlist: [/^element-ui/]}) ];
7
- }
8
- },
9
- chainWebpack: config => {
10
- const fontsRule = config.module.rule('fonts')
11
- fontsRule.uses.clear()
12
- config.module
13
- .rule('fonts')
14
- .test(/\.(ttf|otf|eot|woff|woff2)$/)
15
- .use('base64-inline-loader')
16
- .loader('base64-inline-loader')
17
- .tap(options => {
18
- // modify the options...
19
- return options
20
- })
21
- .end()
22
- },
23
- css: {
24
- //Import variables into all stylesheets.
25
- loaderOptions: {
26
- sass: {
27
- prependData: `@import '@/assets/styles';`
28
- }
29
- }
30
- }
31
- }
1
+ const nodeExternals = require('webpack-node-externals');
2
+
3
+ module.exports = {
4
+ configureWebpack: config => {
5
+ if(process.env.NODE_ENV === 'production') {
6
+ config.externals = [nodeExternals({allowlist: [/^element-ui/]}) ];
7
+ }
8
+ },
9
+ chainWebpack: config => {
10
+ const fontsRule = config.module.rule('fonts')
11
+ fontsRule.uses.clear()
12
+ config.module
13
+ .rule('fonts')
14
+ .test(/\.(ttf|otf|eot|woff|woff2)$/)
15
+ .use('base64-inline-loader')
16
+ .loader('base64-inline-loader')
17
+ .tap(options => {
18
+ // modify the options...
19
+ return options
20
+ })
21
+ .end()
22
+ },
23
+ css: {
24
+ //Import variables into all stylesheets.
25
+ loaderOptions: {
26
+ sass: {
27
+ prependData: `@import '@/assets/styles';`
28
+ }
29
+ }
30
+ }
31
+ }
package/src/nerve-map.js DELETED
@@ -1,99 +0,0 @@
1
- // nerve-map.js
2
-
3
- // A temporary hard-coded mapping file used for demonstrating the types of info
4
- // neural paths will show on click
5
-
6
- export default {
7
- 'UBERON:0011390': {
8
- title: 'Pudendal nerve', components: 'sensory (afferent) neuron', start: 'First sacral spinal cord segment, Sixth lumbar spinal cord segment', distribution: 'External urethral sphincter', actions: [{
9
- title: "View source",
10
- resource: "https://www.ncbi.nlm.nih.gov/books/NBK554736/",
11
- type: "URL"
12
- }],
13
- },
14
- 'UBERON:0003715': {
15
- title: 'Splanchnic nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
16
- title: "View source",
17
- resource: "https://doi.org/10.1002/ca.23296",
18
- type: "URL"
19
- }],
20
- },
21
- 'UBERON:0001884': {
22
- title: 'Phrenic nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
23
- title: "View source",
24
- resource: "https://doi.org/10.1002/ca.23296",
25
- type: "URL"
26
- }],
27
- },
28
- 'ILX:0738374': {
29
- title: 'External laryngeal nerve', components: 'visceral efferent', start: undefined, distribution: 'cricothyroid', actions: [{
30
- title: "View source",
31
- resource: "https://doi.org/10.1002/ca.23296",
32
- type: "URL"
33
- }],
34
- },
35
- 'ILX:0738309': {
36
- title: 'Internal laryngeal nerve', components: 'general afferent, general visceral affarent, visceral parasympathetic', start: undefined, distribution: undefined, actions: [{
37
- title: "View source",
38
- resource: "https://doi.org/10.1002/ca.23296",
39
- type: "URL"
40
- }],
41
- },
42
- 'UBERON:0018675': {
43
- title: 'Pelvic splanchnic nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
44
- title: "View source",
45
- resource: "https://doi.org/10.1002/ca.23296",
46
- type: "URL"
47
- }],
48
- },
49
- 'UBERON:0018683': {
50
- title: 'Lumbar splanchnic nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
51
- title: "View source",
52
- resource: "https://doi.org/10.1002/ca.23296",
53
- type: "URL"
54
- }],
55
- },
56
- 'UBERON:0001650': {
57
- title: 'Hypoglossal nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
58
- title: "View source",
59
- resource: "https://doi.org/10.1002/ca.23296",
60
- type: "URL"
61
- }],
62
- },
63
- 'UBERON:0005303': {
64
- title: 'Hypogastric nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
65
- title: "View source",
66
- resource: "https://doi.org/10.1002/ca.23296",
67
- type: "URL"
68
- }],
69
- },
70
- 'UBERON:0001759': {
71
- title: 'Vagus nerve', components: undefined, start: undefined, distribution: undefined, actions: [{
72
- title: "View source",
73
- resource: "https://doi.org/10.1002/ca.23296",
74
- type: "URL"
75
- }, {
76
- title: "Explore data",
77
- label: "Stimulation",
78
- resource: "https://sparc.science/data?type=dataset&q=stimulation",
79
- type: "Search",
80
- nervePath: true,
81
- filter: {
82
- facet: 'Vagus Nerve',
83
- term: 'genotype'
84
- },
85
- },
86
- ],
87
- },
88
- 'http://uri.interlex.org/base/ilx_0738443': {
89
- title: 'Fascicle of Vagus Nerve', components: undefined, start: undefined, distribution: undefined, actions: [ {
90
- title: "View dataset",
91
- label: "Stimulation",
92
- resource: "https://sparc.science/datasets/64?type=dataset",
93
- type: "URL",
94
- nervePath: false,
95
- },
96
- ],
97
- }
98
-
99
- }