@abi-software/flatmapvuer 0.4.0-beta-2 → 0.4.0

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/package-lock.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.4.0-beta-2",
3
+ "version": "0.4.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "@abi-software/flatmap-viewer": {
8
- "version": "2.2.13-b.2",
9
- "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.2.13-b.2.tgz",
10
- "integrity": "sha512-MtictK8ebPLc+EPPcxvA8+gb12KWD68rharo2zTt4s7vZetdKlj+rCN2ByOjfdnTwQ+FaDUuaQot7HGgPpWkmg==",
8
+ "version": "2.2.13",
9
+ "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.2.13.tgz",
10
+ "integrity": "sha512-5t6jlHPHFQyvx53tHY8OM8j8Abs0oii4jXCSCNPOZAh7mRvrN1sWafXt4kVlgFeUV4IcDBan6Ihh7mx+ejHyNw==",
11
11
  "requires": {
12
12
  "@babel/runtime": "^7.10.4",
13
13
  "@turf/area": "^6.0.1",
@@ -2016,44 +2016,6 @@
2016
2016
  "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
2017
2017
  "dev": true
2018
2018
  },
2019
- "ansi-styles": {
2020
- "version": "4.3.0",
2021
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
2022
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
2023
- "dev": true,
2024
- "optional": true,
2025
- "requires": {
2026
- "color-convert": "^2.0.1"
2027
- }
2028
- },
2029
- "chalk": {
2030
- "version": "4.1.2",
2031
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
2032
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
2033
- "dev": true,
2034
- "optional": true,
2035
- "requires": {
2036
- "ansi-styles": "^4.1.0",
2037
- "supports-color": "^7.1.0"
2038
- }
2039
- },
2040
- "color-convert": {
2041
- "version": "2.0.1",
2042
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
2043
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
2044
- "dev": true,
2045
- "optional": true,
2046
- "requires": {
2047
- "color-name": "~1.1.4"
2048
- }
2049
- },
2050
- "color-name": {
2051
- "version": "1.1.4",
2052
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
2053
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
2054
- "dev": true,
2055
- "optional": true
2056
- },
2057
2019
  "file-loader": {
2058
2020
  "version": "4.3.0",
2059
2021
  "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-4.3.0.tgz",
@@ -2064,20 +2026,6 @@
2064
2026
  "schema-utils": "^2.5.0"
2065
2027
  }
2066
2028
  },
2067
- "has-flag": {
2068
- "version": "4.0.0",
2069
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
2070
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
2071
- "dev": true,
2072
- "optional": true
2073
- },
2074
- "json5": {
2075
- "version": "2.2.3",
2076
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
2077
- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
2078
- "dev": true,
2079
- "optional": true
2080
- },
2081
2029
  "ssri": {
2082
2030
  "version": "8.0.1",
2083
2031
  "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
@@ -2086,42 +2034,6 @@
2086
2034
  "requires": {
2087
2035
  "minipass": "^3.1.1"
2088
2036
  }
2089
- },
2090
- "supports-color": {
2091
- "version": "7.2.0",
2092
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
2093
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
2094
- "dev": true,
2095
- "optional": true,
2096
- "requires": {
2097
- "has-flag": "^4.0.0"
2098
- }
2099
- },
2100
- "vue-loader-v16": {
2101
- "version": "npm:vue-loader@16.8.3",
2102
- "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
2103
- "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
2104
- "dev": true,
2105
- "optional": true,
2106
- "requires": {
2107
- "chalk": "^4.1.0",
2108
- "hash-sum": "^2.0.0",
2109
- "loader-utils": "^2.0.0"
2110
- },
2111
- "dependencies": {
2112
- "loader-utils": {
2113
- "version": "2.0.4",
2114
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
2115
- "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
2116
- "dev": true,
2117
- "optional": true,
2118
- "requires": {
2119
- "big.js": "^5.2.2",
2120
- "emojis-list": "^3.0.0",
2121
- "json5": "^2.1.2"
2122
- }
2123
- }
2124
- }
2125
2037
  }
2126
2038
  }
2127
2039
  },
@@ -13280,6 +13192,94 @@
13280
13192
  }
13281
13193
  }
13282
13194
  },
13195
+ "vue-loader-v16": {
13196
+ "version": "npm:vue-loader@16.8.3",
13197
+ "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
13198
+ "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
13199
+ "dev": true,
13200
+ "optional": true,
13201
+ "requires": {
13202
+ "chalk": "^4.1.0",
13203
+ "hash-sum": "^2.0.0",
13204
+ "loader-utils": "^2.0.0"
13205
+ },
13206
+ "dependencies": {
13207
+ "ansi-styles": {
13208
+ "version": "4.3.0",
13209
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
13210
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
13211
+ "dev": true,
13212
+ "optional": true,
13213
+ "requires": {
13214
+ "color-convert": "^2.0.1"
13215
+ }
13216
+ },
13217
+ "chalk": {
13218
+ "version": "4.1.2",
13219
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
13220
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
13221
+ "dev": true,
13222
+ "optional": true,
13223
+ "requires": {
13224
+ "ansi-styles": "^4.1.0",
13225
+ "supports-color": "^7.1.0"
13226
+ }
13227
+ },
13228
+ "color-convert": {
13229
+ "version": "2.0.1",
13230
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
13231
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
13232
+ "dev": true,
13233
+ "optional": true,
13234
+ "requires": {
13235
+ "color-name": "~1.1.4"
13236
+ }
13237
+ },
13238
+ "color-name": {
13239
+ "version": "1.1.4",
13240
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
13241
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
13242
+ "dev": true,
13243
+ "optional": true
13244
+ },
13245
+ "has-flag": {
13246
+ "version": "4.0.0",
13247
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
13248
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
13249
+ "dev": true,
13250
+ "optional": true
13251
+ },
13252
+ "json5": {
13253
+ "version": "2.2.3",
13254
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
13255
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
13256
+ "dev": true,
13257
+ "optional": true
13258
+ },
13259
+ "loader-utils": {
13260
+ "version": "2.0.4",
13261
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
13262
+ "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
13263
+ "dev": true,
13264
+ "optional": true,
13265
+ "requires": {
13266
+ "big.js": "^5.2.2",
13267
+ "emojis-list": "^3.0.0",
13268
+ "json5": "^2.1.2"
13269
+ }
13270
+ },
13271
+ "supports-color": {
13272
+ "version": "7.2.0",
13273
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
13274
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
13275
+ "dev": true,
13276
+ "optional": true,
13277
+ "requires": {
13278
+ "has-flag": "^4.0.0"
13279
+ }
13280
+ }
13281
+ }
13282
+ },
13283
13283
  "vue-style-loader": {
13284
13284
  "version": "4.1.3",
13285
13285
  "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.4.0-beta-2",
3
+ "version": "0.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/flatmapvuer.common.js",
6
6
  "files": [
@@ -22,7 +22,7 @@
22
22
  "lint": "vue-cli-service lint"
23
23
  },
24
24
  "dependencies": {
25
- "@abi-software/flatmap-viewer": "^2.2.13-b.2",
25
+ "@abi-software/flatmap-viewer": "^2.2.13",
26
26
  "@abi-software/svg-sprite": "^0.1.14",
27
27
  "core-js": "^3.3.2",
28
28
  "css-element-queries": "^1.2.2",
package/src/App.vue CHANGED
@@ -92,13 +92,14 @@ export default {
92
92
  position: "absolute"
93
93
  },
94
94
  displayCloseButton: false,
95
- initial: "Functional Connectivity",
95
+ initial: "Rat",
96
96
  helpMode: false,
97
97
  mapSettings: [],
98
98
  //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
99
99
  //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
100
- //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/"
101
- flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v4/"
100
+ flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/"
101
+ //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v4/"
102
+ //flatmapAPI: "https://mapcore-demo.org/staging/flatmap/v1/"
102
103
  // flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/"
103
104
  }
104
105
  },
@@ -158,6 +158,7 @@
158
158
  :lists="systems"
159
159
  key="systemslegends"
160
160
  />
161
+ <!--
161
162
  <selections-group
162
163
  v-if="!isFC && centreLines && centreLines.length > 0"
163
164
  title="Nerves"
@@ -168,6 +169,7 @@
168
169
  ref="centrelinesSelection"
169
170
  key="centrelinesSelection"
170
171
  />
172
+ -->
171
173
  <selections-group
172
174
  v-if="isFC && sckanDisplay && sckanDisplay.length > 0"
173
175
  title="SCKAN"
@@ -396,6 +398,7 @@ export default {
396
398
  },
397
399
  centreLinesSelected: function(payload) {
398
400
  if (this.mapImp) {
401
+ console.log(payload.value)
399
402
  this.mapImp.enableCentrelines(payload.value);
400
403
  }
401
404
  },
@@ -785,8 +788,9 @@ export default {
785
788
  this.mapImp.setBackgroundOpacity(1);
786
789
  this.backgroundChangeCallback(this.currentBackground);
787
790
  this.pathways = this.mapImp.pathTypes();
788
- this.layers = this.mapImp.getLayers();
789
- this.systems = this.mapImp.getSystems();
791
+ this.mapImp.enableCentrelines(false);
792
+ //this.layers = this.mapImp.getLayers();
793
+ //this.systems = this.mapImp.getSystems();
790
794
  this.addResizeButtonToMinimap();
791
795
  this.loading = false;
792
796
  this.computePathControlsMaximumHeight();
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  <div class="content-container scrollbar">
11
11
  {{content.paths}}
12
- <div v-if="this.origins" class="block">
12
+ <div v-if="origins && origins.length > 0" class="block">
13
13
  <div>
14
14
  <span class="attribute-title">Origin</span>
15
15
  <el-popover
@@ -32,14 +32,14 @@
32
32
  Explore origin data
33
33
  </el-button>
34
34
  </div>
35
- <div v-if="this.components" class="block">
35
+ <div v-if="components && components.length > 0" class="block">
36
36
  <div class="attribute-title">Components</div>
37
37
  <div v-for="(component, i) in components" class="attribute-content" :key="component">
38
38
  {{ capitalise(component) }}
39
39
  <div v-if="i != components.length - 1" class="seperator"></div>
40
40
  </div>
41
41
  </div>
42
- <div v-if="this.destinations" class="block">
42
+ <div v-if="destinations && destinations.length > 0" class="block">
43
43
  <div>
44
44
  <span class="attribute-title">Destination</span>
45
45
  <el-popover
@@ -63,7 +63,7 @@
63
63
  </el-button>
64
64
  </div>
65
65
 
66
- <el-button v-show="components.length > 0" class="button" @click="openAll">
66
+ <el-button v-show="componentsWithDatasets.length > 0" class="button" @click="openAll">
67
67
  Search for data on components
68
68
  </el-button>
69
69
 
@@ -191,7 +191,7 @@ export default {
191
191
  window.open(url, '_blank')
192
192
  },
193
193
  openAll: function(){
194
- EventBus.$emit('onActionClick', {type:'Facets', labels: this.components})
194
+ EventBus.$emit('onActionClick', {type:'Facets', labels: this.componentsWithDatasets.map(a=>a.name)})
195
195
  },
196
196
  openAxons: function(){
197
197
  EventBus.$emit('onActionClick', {type:'Facets', labels: this.destinationsWithDatasets.map(a=>a.name)})