@abi-software/map-utilities 0.0.0-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/LICENSE +201 -0
- package/README.md +28 -0
- package/index.html +13 -0
- package/jsconfig.json +8 -0
- package/package.json +23 -0
- package/public/favicon.ico +0 -0
- package/src/App.vue +506 -0
- package/src/assets/_variables.scss +43 -0
- package/src/assets/styles.scss +5 -0
- package/src/components/DrawToolbar/ConnectionDialog.vue +118 -0
- package/src/components/DrawToolbar/DrawToolbar.vue +627 -0
- package/src/components/EventBus.js +3 -0
- package/src/components/HelpModeDialog/HelpModeDialog.vue +394 -0
- package/src/components/Tooltip/AnnotationPopup.vue +467 -0
- package/src/components/Tooltip/ExternalResourceCard.vue +104 -0
- package/src/components/Tooltip/ProvenancePopup.vue +516 -0
- package/src/components/Tooltip/Tooltip.vue +45 -0
- package/src/components/TreeControls/TreeControls.vue +345 -0
- package/src/components/index.js +6 -0
- package/src/components.d.ts +42 -0
- package/src/main.js +5 -0
- package/static/FlatmapTreeData.json +4213 -0
- package/static/ScaffoldTreeData.json +89 -0
- package/vite.config.js +56 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"label": "Root",
|
|
4
|
+
"regionPath": "",
|
|
5
|
+
"id": null,
|
|
6
|
+
"children": [
|
|
7
|
+
{
|
|
8
|
+
"label": "epicardium",
|
|
9
|
+
"id": "re1/pr8",
|
|
10
|
+
"isPrimitives": true,
|
|
11
|
+
"regionPath": "",
|
|
12
|
+
"isTextureSlides": false,
|
|
13
|
+
"defaultColour": "#b2b2b2",
|
|
14
|
+
"activeColour": "#b2b2b2"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"label": "ICN",
|
|
18
|
+
"id": "re1/pr4",
|
|
19
|
+
"isPrimitives": true,
|
|
20
|
+
"regionPath": "",
|
|
21
|
+
"isTextureSlides": false,
|
|
22
|
+
"defaultColour": "#ffff00",
|
|
23
|
+
"activeColour": "#ffff00"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "left atrium",
|
|
27
|
+
"id": "re1/pr6",
|
|
28
|
+
"isPrimitives": true,
|
|
29
|
+
"regionPath": "",
|
|
30
|
+
"isTextureSlides": false,
|
|
31
|
+
"defaultColour": "#00cc00",
|
|
32
|
+
"activeColour": "#00cc00"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "left ventricle.mesh2d",
|
|
36
|
+
"id": "re1/pr2",
|
|
37
|
+
"isPrimitives": true,
|
|
38
|
+
"regionPath": "",
|
|
39
|
+
"isTextureSlides": false,
|
|
40
|
+
"defaultColour": "#0000ff",
|
|
41
|
+
"activeColour": "#0000ff"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"label": "right atrium.mesh2d",
|
|
45
|
+
"id": "re1/pr7",
|
|
46
|
+
"isPrimitives": true,
|
|
47
|
+
"regionPath": "",
|
|
48
|
+
"isTextureSlides": false,
|
|
49
|
+
"defaultColour": "#00ffff",
|
|
50
|
+
"activeColour": "#00ffff"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"label": "right ventricle.mesh2d",
|
|
54
|
+
"id": "re1/pr3",
|
|
55
|
+
"isPrimitives": true,
|
|
56
|
+
"regionPath": "",
|
|
57
|
+
"isTextureSlides": false,
|
|
58
|
+
"defaultColour": "#a52dff",
|
|
59
|
+
"activeColour": "#a52dff"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "_helper",
|
|
63
|
+
"id": "re2",
|
|
64
|
+
"children": [
|
|
65
|
+
{
|
|
66
|
+
"label": "boundingBox",
|
|
67
|
+
"id": "re2/pr9",
|
|
68
|
+
"isPrimitives": true,
|
|
69
|
+
"regionPath": "_helper",
|
|
70
|
+
"isTextureSlides": false,
|
|
71
|
+
"defaultColour": "#40e0d0",
|
|
72
|
+
"activeColour": "#40e0d0"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"regionPath": "/_helper",
|
|
76
|
+
"isRegion": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": "_Unnamed",
|
|
80
|
+
"id": "re1/pr5",
|
|
81
|
+
"isPrimitives": true,
|
|
82
|
+
"regionPath": "",
|
|
83
|
+
"isTextureSlides": false,
|
|
84
|
+
"defaultColour": "#ffffff",
|
|
85
|
+
"activeColour": "#ffffff"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
|
|
3
|
+
import { defineConfig } from "vite";
|
|
4
|
+
import vue from "@vitejs/plugin-vue";
|
|
5
|
+
|
|
6
|
+
import Components from "unplugin-vue-components/vite";
|
|
7
|
+
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
|
|
8
|
+
|
|
9
|
+
// https://vitejs.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
server: {
|
|
12
|
+
port: 8081,
|
|
13
|
+
},
|
|
14
|
+
plugins: [
|
|
15
|
+
vue(),
|
|
16
|
+
Components({
|
|
17
|
+
// allow auto load markdown components under `./src/components/`
|
|
18
|
+
extensions: ["vue", "md"],
|
|
19
|
+
// allow auto import and register components used in markdown
|
|
20
|
+
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
|
21
|
+
resolvers: [
|
|
22
|
+
ElementPlusResolver({
|
|
23
|
+
importStyle: "sass",
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
dts: "./src/components.d.ts",
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
resolve: {
|
|
30
|
+
alias: {
|
|
31
|
+
"@": resolve(__dirname, "./src"),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
build: {
|
|
35
|
+
lib: {
|
|
36
|
+
entry: resolve(__dirname, "./src/components/index.js"),
|
|
37
|
+
name: "MapUtilities",
|
|
38
|
+
fileName: "map-utilities",
|
|
39
|
+
},
|
|
40
|
+
rollupOptions: {
|
|
41
|
+
external: ["vue"],
|
|
42
|
+
output: {
|
|
43
|
+
globals: {
|
|
44
|
+
vue: "Vue",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
css: {
|
|
50
|
+
preprocessorOptions: {
|
|
51
|
+
scss: {
|
|
52
|
+
additionalData: `@use './src/assets/styles' as *;`,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
});
|