@abi-software/flatmapvuer 0.5.9-beta.2 → 0.5.9-beta.3

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
@@ -10,9 +10,9 @@
10
10
  "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA=="
11
11
  },
12
12
  "@abi-software/flatmap-viewer": {
13
- "version": "2.4.2-b.4",
14
- "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.4.2-b.4.tgz",
15
- "integrity": "sha512-6fc+pVcY3mJremZtNC4y9bT3l/CXAhYkXWg7z3zW+IX9qLNLzHWmYU1XH8voJXCpr7zT+0SYVJiKaUDSYk8hZw==",
13
+ "version": "2.4.2-b.5",
14
+ "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.4.2-b.5.tgz",
15
+ "integrity": "sha512-fDKfYqytHPnXZqOvMMG4CULyHaQhpTECfedNDIASabWpPvjluXPSPJXNk8deibMaUz/UbCo7CV0hjeBHoQ67JA==",
16
16
  "requires": {
17
17
  "@babel/runtime": "^7.10.4",
18
18
  "@fortawesome/fontawesome-free": "^6.4.0",
@@ -1347,9 +1347,9 @@
1347
1347
  "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA=="
1348
1348
  },
1349
1349
  "@fortawesome/fontawesome-free": {
1350
- "version": "6.4.2",
1351
- "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.2.tgz",
1352
- "integrity": "sha512-m5cPn3e2+FDCOgi1mz0RexTUvvQibBebOUlUlW0+YrMjDTPkiJ6VTKukA1GRsvRw+12KyJndNjj0O4AgTxm2Pg=="
1350
+ "version": "6.5.1",
1351
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.5.1.tgz",
1352
+ "integrity": "sha512-CNy5vSwN3fsUStPRLX7fUYojyuzoEMSXPl7zSLJ8TgtRfjv24LOnOWKT2zYwaHZCJGkdyRnTmstR0P+Ah503Gw=="
1353
1353
  },
1354
1354
  "@frogcat/ttl2jsonld": {
1355
1355
  "version": "0.0.9",
@@ -1765,9 +1765,9 @@
1765
1765
  }
1766
1766
  },
1767
1767
  "@types/geojson": {
1768
- "version": "7946.0.12",
1769
- "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.12.tgz",
1770
- "integrity": "sha512-uK2z1ZHJyC0nQRbuovXFt4mzXDwf27vQeUWNhfKGwRcWW429GOhP8HxUHlM6TLH4bzmlv/HlEjpvJh3JfmGsAA=="
1768
+ "version": "7946.0.13",
1769
+ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.13.tgz",
1770
+ "integrity": "sha512-bmrNrgKMOhM3WsafmbGmC+6dsF2Z308vLFsQ3a/bT8X8Sv5clVYpPars/UPq+sAaJP+5OoLAYgwbkS5QEJdLUQ=="
1771
1771
  },
1772
1772
  "@types/glob": {
1773
1773
  "version": "7.2.0",
@@ -1804,14 +1804,14 @@
1804
1804
  "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="
1805
1805
  },
1806
1806
  "@types/mapbox__point-geometry": {
1807
- "version": "0.1.3",
1808
- "resolved": "https://registry.npmjs.org/@types/mapbox__point-geometry/-/mapbox__point-geometry-0.1.3.tgz",
1809
- "integrity": "sha512-2W46IOXlu7vC8m3+M5rDqSnuY22GFxxx3xhkoyqyPWrD+eP2iAwNst0A1+umLYjCTJMJTSpiofphn9h9k+Kw+w=="
1807
+ "version": "0.1.4",
1808
+ "resolved": "https://registry.npmjs.org/@types/mapbox__point-geometry/-/mapbox__point-geometry-0.1.4.tgz",
1809
+ "integrity": "sha512-mUWlSxAmYLfwnRBmgYV86tgYmMIICX4kza8YnE/eIlywGe2XoOxlpVnXWwir92xRLjwyarqwpu2EJKD2pk0IUA=="
1810
1810
  },
1811
1811
  "@types/mapbox__vector-tile": {
1812
- "version": "1.3.3",
1813
- "resolved": "https://registry.npmjs.org/@types/mapbox__vector-tile/-/mapbox__vector-tile-1.3.3.tgz",
1814
- "integrity": "sha512-d263B3KCQtXKVZMHpMJrEW5EeLBsQ8jvAS9nhpUKC5hHIlQaACG9PWkW8qxEeNuceo9120AwPjeS91uNa4ltqA==",
1812
+ "version": "1.3.4",
1813
+ "resolved": "https://registry.npmjs.org/@types/mapbox__vector-tile/-/mapbox__vector-tile-1.3.4.tgz",
1814
+ "integrity": "sha512-bpd8dRn9pr6xKvuEBQup8pwQfD4VUyqO/2deGjfpe6AwC8YRlyEipvefyRJUSiCJTZuCb8Pl1ciVV5ekqJ96Bg==",
1815
1815
  "requires": {
1816
1816
  "@types/geojson": "*",
1817
1817
  "@types/mapbox__point-geometry": "*",
@@ -1849,9 +1849,9 @@
1849
1849
  "dev": true
1850
1850
  },
1851
1851
  "@types/pbf": {
1852
- "version": "3.0.4",
1853
- "resolved": "https://registry.npmjs.org/@types/pbf/-/pbf-3.0.4.tgz",
1854
- "integrity": "sha512-SOFlLGZkLbEXJRwcWCqeP/Koyaf/uAqLXHUsdo/nMfjLsNd8kqauwHe9GBOljSmpcHp/LC6kOjo3SidGjNirVA=="
1852
+ "version": "3.0.5",
1853
+ "resolved": "https://registry.npmjs.org/@types/pbf/-/pbf-3.0.5.tgz",
1854
+ "integrity": "sha512-j3pOPiEcWZ34R6a6mN07mUkM4o4Lwf6hPNt8eilOeZhTFbxFXmKhvXl9Y28jotFPaI1bpPDJsbCprUoNke6OrA=="
1855
1855
  },
1856
1856
  "@types/q": {
1857
1857
  "version": "1.5.5",
@@ -1888,9 +1888,9 @@
1888
1888
  "dev": true
1889
1889
  },
1890
1890
  "@types/supercluster": {
1891
- "version": "7.1.2",
1892
- "resolved": "https://registry.npmjs.org/@types/supercluster/-/supercluster-7.1.2.tgz",
1893
- "integrity": "sha512-qMhofL945Z4njQUuntadexAgPtpiBC014WvVqU70Prj42LC77Xgmz04us7hSMmwjs7KbgAwGBmje+FSOvDbP0Q==",
1891
+ "version": "7.1.3",
1892
+ "resolved": "https://registry.npmjs.org/@types/supercluster/-/supercluster-7.1.3.tgz",
1893
+ "integrity": "sha512-Z0pOY34GDFl3Q6hUFYf3HkTwKEE02e7QgtJppBt+beEAxnyOpJua+voGFvxINBHa06GwLFFym7gRPY2SiKIfIA==",
1894
1894
  "requires": {
1895
1895
  "@types/geojson": "*"
1896
1896
  }
@@ -10404,9 +10404,9 @@
10404
10404
  }
10405
10405
  },
10406
10406
  "maplibre-gl": {
10407
- "version": "3.5.2",
10408
- "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-3.5.2.tgz",
10409
- "integrity": "sha512-deqYA/RiEyXMGroZMDbOWNQTLnFsxREC+mDkQnuyCUNdBWm1KHafsXJYZP7rlLa5RLQNq05IAUAizY9aHTpIUw==",
10407
+ "version": "3.6.2",
10408
+ "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-3.6.2.tgz",
10409
+ "integrity": "sha512-krg2KFIdOpLPngONDhP6ixCoWl5kbdMINP0moMSJFVX7wX1Clm2M9hlNKXS8vBGlVWwR5R3ZfI6IPrYz7c+aCQ==",
10410
10410
  "requires": {
10411
10411
  "@mapbox/geojson-rewind": "^0.5.2",
10412
10412
  "@mapbox/jsonlint-lines-primitives": "^2.0.2",
@@ -10416,11 +10416,11 @@
10416
10416
  "@mapbox/vector-tile": "^1.3.1",
10417
10417
  "@mapbox/whoots-js": "^3.1.0",
10418
10418
  "@maplibre/maplibre-gl-style-spec": "^19.3.3",
10419
- "@types/geojson": "^7946.0.12",
10420
- "@types/mapbox__point-geometry": "^0.1.3",
10421
- "@types/mapbox__vector-tile": "^1.3.3",
10422
- "@types/pbf": "^3.0.4",
10423
- "@types/supercluster": "^7.1.2",
10419
+ "@types/geojson": "^7946.0.13",
10420
+ "@types/mapbox__point-geometry": "^0.1.4",
10421
+ "@types/mapbox__vector-tile": "^1.3.4",
10422
+ "@types/pbf": "^3.0.5",
10423
+ "@types/supercluster": "^7.1.3",
10424
10424
  "earcut": "^2.2.4",
10425
10425
  "geojson-vt": "^3.2.1",
10426
10426
  "gl-matrix": "^3.4.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.5.9-beta.2",
3
+ "version": "0.5.9-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/flatmapvuer.common.js",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
28
28
  },
29
29
  "dependencies": {
30
- "@abi-software/flatmap-viewer": "^2.4.2-b.4",
30
+ "@abi-software/flatmap-viewer": "^2.4.2-b.5",
31
31
  "@abi-software/sparc-annotation": "0.0.5",
32
32
  "@abi-software/svg-sprite": "^0.3.0",
33
33
  "core-js": "^3.3.2",
@@ -197,6 +197,19 @@
197
197
  v-popover:checkBoxPopover
198
198
  >
199
199
  <svg-legends v-if="!isFC" class="svg-legends-container" />
200
+ <el-popover
201
+ content="Location of the featured dataset"
202
+ placement="right"
203
+ :appendToBody="false"
204
+ trigger="hover"
205
+ popper-class="flatmap-popper popper-bump-right right-popper"
206
+ v-model="hoverVisibilities[9].value"
207
+ ref="featuredMarkerPopover"
208
+ >
209
+ </el-popover>
210
+ <div v-show="showStarInLegend" v-popover:featuredMarkerPopover class="yellow-star-legend" v-html="yellowstar"></div>
211
+ <!-- The line below places the yellowstar svg on the left, and the text "Featured markers on the right" with css so they are both centered in the div -->
212
+
200
213
  <el-popover
201
214
  content="Find these markers for data"
202
215
  placement="right"
@@ -418,7 +431,6 @@
418
431
  ref="tooltip"
419
432
  class="tooltip"
420
433
  :annotationEntry="annotationEntry"
421
- @onClose="closeTooltip"
422
434
  :entry="tooltipEntry"
423
435
  :annotationDisplay="viewingMode === 'Annotation'"
424
436
  />
@@ -446,10 +458,8 @@ import {
446
458
  import lang from "element-ui/lib/locale/lang/en";
447
459
  import locale from "element-ui/lib/locale";
448
460
  import flatmapMarker from "../icons/flatmap-marker";
449
- import {
450
- FlatmapQueries,
451
- findTaxonomyLabel,
452
- } from "../services/flatmapQueries.js";
461
+ import {FlatmapQueries, findTaxonomyLabel} from "../services/flatmapQueries.js";
462
+ import yellowstar from "../icons/yellowstar";
453
463
 
454
464
  locale.use(lang);
455
465
  Vue.use(Button);
@@ -1220,6 +1230,10 @@ export default {
1220
1230
  ];
1221
1231
  },
1222
1232
  },
1233
+ showStarInLegend: {
1234
+ type: Boolean,
1235
+ default: false
1236
+ },
1223
1237
  isLegacy: {
1224
1238
  type: Boolean,
1225
1239
  default: false,
@@ -1290,7 +1304,9 @@ export default {
1290
1304
  { value: false },
1291
1305
  { value: false },
1292
1306
  { value: false },
1307
+ { value: false },
1293
1308
  ],
1309
+ yellowstar: yellowstar,
1294
1310
  isFC: false,
1295
1311
  inHelp: false,
1296
1312
  currentBackground: "white",
@@ -1605,6 +1621,11 @@ export default {
1605
1621
  padding-left: 8px;
1606
1622
  }
1607
1623
 
1624
+ .yellow-star-legend {
1625
+ width: 130px;
1626
+ cursor: pointer;
1627
+ }
1628
+
1608
1629
  .settings-group {
1609
1630
  bottom: 16px;
1610
1631
  position: absolute;
@@ -53,6 +53,7 @@
53
53
  :helpMode="helpMode"
54
54
  :renderAtMounted="renderAtMounted"
55
55
  :displayMinimap="displayMinimap"
56
+ :showStarInLegend="showStarInLegend"
56
57
  style="height:100%"
57
58
  :flatmapAPI="flatmapAPI"
58
59
  :sparcAPI="sparcAPI"
@@ -386,6 +387,10 @@ export default {
386
387
  type: Boolean,
387
388
  default: false
388
389
  },
390
+ showStarInLegend: {
391
+ type: Boolean,
392
+ default: false
393
+ },
389
394
  /**
390
395
  * Flag to determine rather open map UI should be
391
396
  * presented or not.
@@ -17,6 +17,7 @@
17
17
  <text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space: pre;">Ganglia</text>
18
18
  <text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space: pre;">Ganglionated nerve plexus</text>
19
19
  </svg>
20
+ <svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"></svg>
20
21
  </div>
21
22
  </template>
22
23
 
@@ -0,0 +1,5 @@
1
+ export default '<svg width="160px" height="24px" viewBox="0 0 160 24" fill="yellow">' +
2
+ '<path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/>' +
3
+ // Adjusting the x attribute and adding padding for the text element
4
+ '<text x="42" y="50%" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#000000">Featured marker</text>' +
5
+ '</svg>';