@abi-software/map-utilities 1.2.0-beta.8 → 1.2.1-beta.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/dist/map-utilities.js +23804 -7002
- package/dist/map-utilities.umd.cjs +67 -41
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/src/App.vue +37 -2
- package/src/components/ConnectivityGraph/ConnectivityGraph.vue +673 -0
- package/src/components/ConnectivityGraph/graph.js +434 -0
- package/src/components/TreeControls/TreeControls.vue +3 -3
- package/src/components/index.js +11 -1
- package/src/components/utilities.js +9 -0
- package/src/components.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/map-utilities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1-beta.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/*",
|
|
6
6
|
"src/*",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@abi-software/svg-sprite": "^1.0.1",
|
|
33
33
|
"@element-plus/icons-vue": "^2.3.1",
|
|
34
|
+
"cytoscape": "^3.30.2",
|
|
34
35
|
"element-plus": "2.8.4",
|
|
35
36
|
"mitt": "^3.0.1",
|
|
36
37
|
"vue": "^3.4.21"
|
package/src/App.vue
CHANGED
|
@@ -38,6 +38,10 @@ const drawnTypes = [
|
|
|
38
38
|
{ value: "Polygon", label: "Polygon" },
|
|
39
39
|
{ value: "None", label: "None" },
|
|
40
40
|
];
|
|
41
|
+
const showConnectivityGraph = ref(false);
|
|
42
|
+
const connectivityGraphEntry = "ilxtr:neuron-type-aacar-13";
|
|
43
|
+
// const connectivityGraphEntry = "ilxtr:sparc-nlp/kidney/134";
|
|
44
|
+
const mapServer = "https://mapcore-demo.org/curation/flatmap/";
|
|
41
45
|
|
|
42
46
|
onMounted(() => {
|
|
43
47
|
console.log("🚀 ~ onMounted ~ appRef:", appRef.value);
|
|
@@ -452,6 +456,25 @@ function confirmCreate(value) {
|
|
|
452
456
|
</el-button>
|
|
453
457
|
</el-col>
|
|
454
458
|
</el-row>
|
|
459
|
+
<el-row>
|
|
460
|
+
<el-col>
|
|
461
|
+
<h3>Connectivity Graph</h3>
|
|
462
|
+
</el-col>
|
|
463
|
+
<el-col>
|
|
464
|
+
<el-button
|
|
465
|
+
@click="showConnectivityGraph = true"
|
|
466
|
+
size="small"
|
|
467
|
+
>
|
|
468
|
+
Show connectivity graph
|
|
469
|
+
</el-button>
|
|
470
|
+
<el-button
|
|
471
|
+
@click="showConnectivityGraph = false"
|
|
472
|
+
size="small"
|
|
473
|
+
>
|
|
474
|
+
Hide connectivity graph
|
|
475
|
+
</el-button>
|
|
476
|
+
</el-col>
|
|
477
|
+
</el-row>
|
|
455
478
|
|
|
456
479
|
<DrawToolbar
|
|
457
480
|
v-show="isFlatmap"
|
|
@@ -521,7 +544,11 @@ function confirmCreate(value) {
|
|
|
521
544
|
@setColour="setColour"
|
|
522
545
|
@checkChanged="checkChanged"
|
|
523
546
|
/>
|
|
524
|
-
|
|
547
|
+
<ConnectivityGraph
|
|
548
|
+
v-if="showConnectivityGraph"
|
|
549
|
+
:entry="connectivityGraphEntry"
|
|
550
|
+
:map-server="mapServer"
|
|
551
|
+
/>
|
|
525
552
|
</div>
|
|
526
553
|
</template>
|
|
527
554
|
|
|
@@ -545,6 +572,14 @@ function confirmCreate(value) {
|
|
|
545
572
|
border-style: solid;
|
|
546
573
|
border-width: 1px;
|
|
547
574
|
border-color: black;
|
|
548
|
-
|
|
575
|
+
}
|
|
576
|
+
.toolbar-container {
|
|
577
|
+
height: 80px;
|
|
578
|
+
position: relative;
|
|
579
|
+
}
|
|
580
|
+
.connectivity-graph {
|
|
581
|
+
width: 600px;
|
|
582
|
+
height: 600px;
|
|
583
|
+
margin-top: 1rem;
|
|
549
584
|
}
|
|
550
585
|
</style>
|