@abi-software/map-side-bar 1.3.16 → 1.3.17
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/dist/map-side-bar.common.js +4 -179
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.umd.js +4 -179
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/algolia/algolia.js +5 -7
- package/src/algolia/utils.js +0 -1
- package/src/algolia/markerZoomLevels.js +0 -213
package/dist/map-side-bar.umd.js
CHANGED
|
@@ -1360,177 +1360,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
1360
1360
|
var external_algoliasearch_ = __webpack_require__("88eb");
|
|
1361
1361
|
var external_algoliasearch_default = /*#__PURE__*/__webpack_require__.n(external_algoliasearch_);
|
|
1362
1362
|
|
|
1363
|
-
// CONCATENATED MODULE: ./src/algolia/markerZoomLevels.js
|
|
1364
|
-
// Set zoom values for micro and mesoscopic
|
|
1365
|
-
var microscopic = 7;
|
|
1366
|
-
var mesoscopic = 5; // Set what level each uberon shows at
|
|
1367
|
-
|
|
1368
|
-
/* harmony default export */ var markerZoomLevels = ([{
|
|
1369
|
-
"id": "UBERON:0000948",
|
|
1370
|
-
"name": "heart",
|
|
1371
|
-
"showAtZoom": 1
|
|
1372
|
-
}, {
|
|
1373
|
-
"id": "UBERON:0001759",
|
|
1374
|
-
"name": "vagus nerve",
|
|
1375
|
-
"showAtZoom": 1
|
|
1376
|
-
}, {
|
|
1377
|
-
"id": "UBERON:0001155",
|
|
1378
|
-
"name": "colon",
|
|
1379
|
-
"showAtZoom": 1
|
|
1380
|
-
}, {
|
|
1381
|
-
"id": "UBERON:0000945",
|
|
1382
|
-
"name": "stomach",
|
|
1383
|
-
"showAtZoom": 1
|
|
1384
|
-
}, {
|
|
1385
|
-
"id": "UBERON:0001013",
|
|
1386
|
-
"name": "adipose tissue",
|
|
1387
|
-
"showAtZoom": 1
|
|
1388
|
-
}, {
|
|
1389
|
-
"id": "UBERON:0001255",
|
|
1390
|
-
"name": "urinary bladder",
|
|
1391
|
-
"showAtZoom": 1
|
|
1392
|
-
}, {
|
|
1393
|
-
"id": "UBERON:0001348",
|
|
1394
|
-
"name": "brown adipose tissue",
|
|
1395
|
-
"showAtZoom": 6
|
|
1396
|
-
}, {
|
|
1397
|
-
"id": "UBERON:0002008",
|
|
1398
|
-
"name": "cardiac nerve plexus",
|
|
1399
|
-
"showAtZoom": 1
|
|
1400
|
-
}, {
|
|
1401
|
-
"id": "UBERON:0002240",
|
|
1402
|
-
"name": "spinal cord",
|
|
1403
|
-
"showAtZoom": 1
|
|
1404
|
-
}, {
|
|
1405
|
-
"id": "UBERON:0002005",
|
|
1406
|
-
"name": "Enteric Nervous System",
|
|
1407
|
-
"showAtZoom": 4
|
|
1408
|
-
}, {
|
|
1409
|
-
"id": "UBERON:0013702",
|
|
1410
|
-
"name": "body proper",
|
|
1411
|
-
"showAtZoom": 1
|
|
1412
|
-
}, {
|
|
1413
|
-
"id": "UBERON:0002298",
|
|
1414
|
-
"name": "brainstem",
|
|
1415
|
-
"showAtZoom": 1
|
|
1416
|
-
}, {
|
|
1417
|
-
"id": "UBERON:0002439",
|
|
1418
|
-
"name": "myenteric nerve plexus",
|
|
1419
|
-
"showAtZoom": 6
|
|
1420
|
-
}, {
|
|
1421
|
-
"id": "UBERON:0000010",
|
|
1422
|
-
"name": "peripheral nervous system",
|
|
1423
|
-
"showAtZoom": 6
|
|
1424
|
-
}, {
|
|
1425
|
-
"id": "UBERON:0002048",
|
|
1426
|
-
"name": "lung",
|
|
1427
|
-
"showAtZoom": 1
|
|
1428
|
-
}, {
|
|
1429
|
-
"id": "UBERON:0002410",
|
|
1430
|
-
"name": "autonomic nervous system",
|
|
1431
|
-
"showAtZoom": 6
|
|
1432
|
-
}, {
|
|
1433
|
-
"id": "UBERON:0002441",
|
|
1434
|
-
"name": "cervicothoracic ganglion",
|
|
1435
|
-
"showAtZoom": 6
|
|
1436
|
-
}, {
|
|
1437
|
-
"id": "UBERON:0005363",
|
|
1438
|
-
"name": "inferior vagus X ganglion",
|
|
1439
|
-
"showAtZoom": 6
|
|
1440
|
-
}, {
|
|
1441
|
-
"id": "UBERON:0001264",
|
|
1442
|
-
"name": "pancreas",
|
|
1443
|
-
"showAtZoom": 1
|
|
1444
|
-
}, {
|
|
1445
|
-
"id": "UBERON:0001884",
|
|
1446
|
-
"name": "phrenic nerve",
|
|
1447
|
-
"showAtZoom": 6
|
|
1448
|
-
}, {
|
|
1449
|
-
"id": "UBERON:0002059",
|
|
1450
|
-
"name": "submandibular ganglion",
|
|
1451
|
-
"showAtZoom": 7
|
|
1452
|
-
}, {
|
|
1453
|
-
"id": "UBERON:0001347",
|
|
1454
|
-
"name": "white adipose tissue",
|
|
1455
|
-
"showAtZoom": 6
|
|
1456
|
-
}, {
|
|
1457
|
-
"id": "UBERON:0001556",
|
|
1458
|
-
"name": "lower urinary tract",
|
|
1459
|
-
"showAtZoom": 1
|
|
1460
|
-
}, {
|
|
1461
|
-
"id": "UBERON:0002262",
|
|
1462
|
-
"name": "celiac ganglion",
|
|
1463
|
-
"showAtZoom": 5
|
|
1464
|
-
}, {
|
|
1465
|
-
"id": "UBERON:0000955",
|
|
1466
|
-
"name": "Brain",
|
|
1467
|
-
"showAtZoom": 1
|
|
1468
|
-
}, {
|
|
1469
|
-
"id": "UBERON:0000160",
|
|
1470
|
-
"name": "intestine",
|
|
1471
|
-
"showAtZoom": 1
|
|
1472
|
-
}, {
|
|
1473
|
-
"id": "UBERON:0001322",
|
|
1474
|
-
"name": "sciatic nerve",
|
|
1475
|
-
"showAtZoom": 1
|
|
1476
|
-
}, {
|
|
1477
|
-
"id": "UBERON:0001649",
|
|
1478
|
-
"name": "glossopharyngeal nerve",
|
|
1479
|
-
"showAtZoom": 6
|
|
1480
|
-
}, {
|
|
1481
|
-
"id": "UBERON:0002063",
|
|
1482
|
-
"name": "sinus venosus",
|
|
1483
|
-
"showAtZoom": 6
|
|
1484
|
-
}, {
|
|
1485
|
-
"id": "UBERON:0002107",
|
|
1486
|
-
"name": "liver",
|
|
1487
|
-
"showAtZoom": 1
|
|
1488
|
-
}, {
|
|
1489
|
-
"id": "UBERON:0002113",
|
|
1490
|
-
"name": "kidney",
|
|
1491
|
-
"showAtZoom": 1
|
|
1492
|
-
}, {
|
|
1493
|
-
"id": "UBERON:0002481",
|
|
1494
|
-
"name": "bone tissue",
|
|
1495
|
-
"showAtZoom": 1
|
|
1496
|
-
}, {
|
|
1497
|
-
"id": "UBERON:0004907",
|
|
1498
|
-
"name": "lower digestive tract",
|
|
1499
|
-
"showAtZoom": 4
|
|
1500
|
-
}, {
|
|
1501
|
-
"id": "UBERON:0000044",
|
|
1502
|
-
"name": "Dorsal root ganglion",
|
|
1503
|
-
"showAtZoom": 5
|
|
1504
|
-
}, // New levels from Keeran
|
|
1505
|
-
{
|
|
1506
|
-
"id": "UBERON:0001736",
|
|
1507
|
-
"name": "Submandibular gland",
|
|
1508
|
-
"showAtZoom": microscopic
|
|
1509
|
-
}, {
|
|
1510
|
-
"id": "UBERON:0001103",
|
|
1511
|
-
"name": "Diaphragm",
|
|
1512
|
-
"showAtZoom": mesoscopic
|
|
1513
|
-
}, {
|
|
1514
|
-
"id": "UBERON:0001160",
|
|
1515
|
-
"name": "Fundus of stomach",
|
|
1516
|
-
"showAtZoom": mesoscopic
|
|
1517
|
-
}, {
|
|
1518
|
-
"id": "UBERON:0000955",
|
|
1519
|
-
"name": "Brain",
|
|
1520
|
-
"showAtZoom": mesoscopic
|
|
1521
|
-
}, {
|
|
1522
|
-
"id": "UBERON:0003708",
|
|
1523
|
-
"name": "Carotid sinus",
|
|
1524
|
-
"showAtZoom": microscopic
|
|
1525
|
-
}, {
|
|
1526
|
-
"id": "UBERON:0002079",
|
|
1527
|
-
"name": "Left cardiac atrium",
|
|
1528
|
-
"showAtZoom": mesoscopic
|
|
1529
|
-
}, {
|
|
1530
|
-
"id": "ILX:0485722",
|
|
1531
|
-
"name": "Nodose ganglion",
|
|
1532
|
-
"showAtZoom": microscopic
|
|
1533
|
-
}]);
|
|
1534
1363
|
// CONCATENATED MODULE: ./src/algolia/algolia.js
|
|
1535
1364
|
|
|
1536
1365
|
|
|
@@ -1571,7 +1400,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
1571
1400
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1572
1401
|
|
|
1573
1402
|
/* eslint-disable no-alert, no-console */
|
|
1574
|
-
|
|
1575
1403
|
// export `createAlgoliaClient` to use it in page components
|
|
1576
1404
|
|
|
1577
1405
|
var algolia_AlgoliaClient =
|
|
@@ -1723,11 +1551,9 @@ function () {
|
|
|
1723
1551
|
|
|
1724
1552
|
if (hit.anatomy && hit.anatomy.organ) {
|
|
1725
1553
|
hit.anatomy.organ.forEach(function (anatomy) {
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1730
|
-
});
|
|
1554
|
+
if (anatomy.curie) {
|
|
1555
|
+
foundKeyWords.push(anatomy.curie);
|
|
1556
|
+
}
|
|
1731
1557
|
});
|
|
1732
1558
|
}
|
|
1733
1559
|
});
|
|
@@ -1796,7 +1622,7 @@ function () {
|
|
|
1796
1622
|
page: page - 1,
|
|
1797
1623
|
filters: filter,
|
|
1798
1624
|
attributesToHighlight: [],
|
|
1799
|
-
attributesToRetrieve: ['item.keywords.keyword', 'anatomy.organ.name']
|
|
1625
|
+
attributesToRetrieve: ['item.keywords.keyword', 'anatomy.organ.name', 'anatomy.organ.curie']
|
|
1800
1626
|
}).then(function (response) {
|
|
1801
1627
|
var anatomyAsUberons = _this4._processAnatomy(response.hits);
|
|
1802
1628
|
|
|
@@ -1890,7 +1716,6 @@ function getFilters() {
|
|
|
1890
1716
|
|
|
1891
1717
|
filters = filters.split('()AND ').join(''); // Handle case where there where no OR facets
|
|
1892
1718
|
});
|
|
1893
|
-
console.log('filter string: ', filters.substring(0, filters.lastIndexOf(" AND ")));
|
|
1894
1719
|
return filters.substring(0, filters.lastIndexOf(" AND "));
|
|
1895
1720
|
}
|
|
1896
1721
|
|