@abi-software/map-utilities 1.2.2-beta.0 → 1.2.2-beta.2

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-utilities",
3
- "version": "1.2.2-beta.0",
3
+ "version": "1.2.2-beta.2",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -337,7 +337,7 @@ class CytoscapeGraph extends EventTarget
337
337
  },
338
338
  directed: true,
339
339
  style: GRAPH_STYLE,
340
- minZoom: 0.5,
340
+ minZoom: 0.1,
341
341
  maxZoom: 10,
342
342
  wheelSensitivity: 0.4,
343
343
  }).on('mouseover', 'node', this.overNode.bind(this))
@@ -4,12 +4,18 @@
4
4
  <el-col>
5
5
  <el-row v-if="inDrawing">
6
6
  <span class="dialog-title">Finalise drawing</span>
7
- <el-button type="primary" plain @click="$emit('confirmDrawn', true)">
8
- Confirm
9
- </el-button>
10
- <el-button type="primary" plain @click="$emit('cancelDrawn', true)">
11
- Cancel
12
- </el-button>
7
+ <el-button-group>
8
+ <el-button
9
+ type="primary"
10
+ plain
11
+ @click="$emit('confirmDrawn', true)"
12
+ >
13
+ Confirm
14
+ </el-button>
15
+ <el-button type="primary" plain @click="$emit('cancelDrawn', true)">
16
+ Cancel
17
+ </el-button>
18
+ </el-button-group>
13
19
  </el-row>
14
20
  <el-row v-else>
15
21
  <span class="dialog-title">Visualise connection</span>
@@ -28,18 +34,7 @@
28
34
  <b><span>Related Features</span></b>
29
35
  <el-row v-for="(value, key) in connectionEntry" :key="key">
30
36
  <el-card :shadow="shadowDisplay(key)" @click="handleTooltip(key)">
31
- <el-popover
32
- trigger="hover"
33
- :disabled="value.label.length < 20"
34
- :width="200"
35
- :content="capitalise(value.label)"
36
- >
37
- <template #reference>
38
- <span class="connection-label">{{
39
- capitalise(value.label)
40
- }}</span>
41
- </template>
42
- </el-popover>
37
+ <span>{{ capitalise(value.label) }}</span>
43
38
  </el-card>
44
39
  </el-row>
45
40
  </el-col>
@@ -105,13 +100,13 @@ export default {
105
100
  }
106
101
 
107
102
  .dialog-title {
108
- font-size: 16px;
103
+ font-size: 18px;
109
104
  font-weight: bold;
110
105
  color: rgb(131, 0, 191);
111
106
  }
112
107
 
113
108
  .el-button {
114
- margin: 5px 5px 5px 0;
109
+ margin: 5px 0px;
115
110
  }
116
111
 
117
112
  :deep(.el-card) {
@@ -120,13 +115,4 @@ export default {
120
115
  border: 0;
121
116
  cursor: pointer;
122
117
  }
123
-
124
- .connection-label {
125
- white-space: nowrap;
126
- display: block;
127
- width: 200px;
128
- overflow: hidden;
129
- text-overflow: ellipsis;
130
- font-size: 14px;
131
- }
132
118
  </style>
@@ -3,7 +3,6 @@
3
3
  <div class="block">
4
4
  <el-row class="info-field">
5
5
  <div class="title">Feature Annotations</div>
6
- <copy-to-clipboard :content="updatedCopyContent" />
7
6
  </el-row>
8
7
  <template v-if="annotationEntry">
9
8
  <el-row
@@ -12,9 +11,7 @@
12
11
  class="dialog-text"
13
12
  :key="key"
14
13
  >
15
- <strong>{{ label }}: </strong>&nbsp;
16
- <span v-if="label !== 'Ontology'">{{ annotationEntry[key] }}</span>
17
- <a v-else :href="ontologyLink" target="_blank">{{ annotationEntry[key] }}</a>
14
+ <strong>{{ label }}: </strong>&nbsp;{{ annotationEntry[key] }}
18
15
  </el-row>
19
16
  <template v-if="prevSubs.length > 0">
20
17
  <div
@@ -161,8 +158,8 @@ export default {
161
158
  return {
162
159
  displayPair: {
163
160
  "Feature ID": "featureId",
164
- Label: "label",
165
- Ontology: "models",
161
+ Tooltip: "label",
162
+ Models: "models",
166
163
  Name: "name",
167
164
  Resource: "resourceId",
168
165
  },
@@ -177,7 +174,6 @@ export default {
177
174
  showSubmissions: true,
178
175
  errorMessage: "",
179
176
  creator: undefined,
180
- copyContent: '',
181
177
  };
182
178
  },
183
179
  computed: {
@@ -199,15 +195,6 @@ export default {
199
195
  this.annotationEntry["type"] === "deleted"
200
196
  );
201
197
  },
202
- ontologyLink: function () {
203
- const models = this.annotationEntry['models'];
204
- if (models && models.startsWith("UBERON")) {
205
- return `http://purl.obolibrary.org/obo/${this.annotationEntry.models.replace(":", "_")}`;
206
- }
207
- },
208
- updatedCopyContent: function () {
209
- return this.getUpdateCopyContent();
210
- },
211
198
  },
212
199
  methods: {
213
200
  evidenceEntered: function (value) {
@@ -329,50 +316,6 @@ export default {
329
316
  this.newFeature = "";
330
317
  this.comment = "";
331
318
  },
332
- getUpdateCopyContent: function () {
333
- if (!this.annotationEntry) {
334
- return '';
335
- }
336
-
337
- const contentArray = [];
338
-
339
- // featureId
340
- if (this.annotationEntry.featureId) {
341
- contentArray.push(`<div><strong>Feature ID:</strong>${this.annotationEntry.featureId}</div>`);
342
- }
343
-
344
- // label
345
- if (this.annotationEntry.label) {
346
- contentArray.push(`<div><strong>Label:</strong>${this.annotationEntry.label}</div>`);
347
- }
348
-
349
- // models
350
- if (this.annotationEntry.models) {
351
- contentArray.push(`<div><strong>Ontology:</strong>${this.annotationEntry.models}</div>`);
352
- if (this.ontologyLink) {
353
- contentArray.push(`<div><strong>Ontology Link:</strong>${this.ontologyLink}</div>`);
354
- }
355
- }
356
-
357
- // resourceId
358
- if (this.annotationEntry.resourceId) {
359
- contentArray.push(`<div><strong>Resource:</strong>${this.annotationEntry.resourceId}</div>`);
360
- }
361
-
362
- if (this.prevSubs.length) {
363
- let annotationContent = '<div><strong>Annotations:</strong></div>\n<br>';
364
- this.prevSubs.map((sub, index) => {
365
- annotationContent += `<div><strong>Created:</strong>${this.formatTime(sub.created)}</div>\n<br>`;
366
- annotationContent += `<div><strong>Creator:</strong>${sub.creator.name}</div>\n<br>`;
367
- annotationContent += `<div><strong>Contact:</strong>${sub.creator.email}</div>\n<br>`;
368
- annotationContent += `<div><strong>Evidence:</strong>${sub.body.evidence.join(', ')}</div>\n<br>`;
369
- annotationContent += `<div><strong>Comment:</strong>${sub.body.comment}</div>\n<br>`;
370
- })
371
- contentArray.push(`<div>${annotationContent}</div>`);
372
- }
373
-
374
- return contentArray.join('\n\n<br>');
375
- },
376
319
  },
377
320
  watch: {
378
321
  annotationEntry: {
@@ -14,6 +14,7 @@ declare module 'vue' {
14
14
  CreateTooltipContent: typeof import('./components/Tooltip/CreateTooltipContent.vue')['default']
15
15
  DrawToolbar: typeof import('./components/DrawToolbar/DrawToolbar.vue')['default']
16
16
  ElButton: typeof import('element-plus/es')['ElButton']
17
+ ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
17
18
  ElCard: typeof import('element-plus/es')['ElCard']
18
19
  ElCol: typeof import('element-plus/es')['ElCol']
19
20
  ElColorPicker: typeof import('element-plus/es')['ElColorPicker']