@abi-software/scaffoldvuer 1.6.0 → 1.6.1
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/scaffoldvuer.js +17 -21
- package/dist/scaffoldvuer.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ScaffoldVuer.vue +16 -12
- package/src/scripts/Search.js +0 -1
package/package.json
CHANGED
|
@@ -1338,7 +1338,7 @@ export default {
|
|
|
1338
1338
|
this.$module.selectObjectOnPick = true;
|
|
1339
1339
|
} else if (type === 'tool') {
|
|
1340
1340
|
this.activeDrawTool = icon;
|
|
1341
|
-
this.createData.shape = this.activeDrawTool;
|
|
1341
|
+
this.createData.shape = this.activeDrawTool ? this.activeDrawTool : '';
|
|
1342
1342
|
this.$module.selectObjectOnPick = false;
|
|
1343
1343
|
}
|
|
1344
1344
|
},
|
|
@@ -1544,6 +1544,16 @@ export default {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
zincObjects = event.zincObjects;
|
|
1546
1546
|
}
|
|
1547
|
+
let id = undefined;
|
|
1548
|
+
let regionPath = undefined;
|
|
1549
|
+
if (event.identifiers.length > 0 && event.identifiers[0]) {
|
|
1550
|
+
id = event.identifiers[0].data.id
|
|
1551
|
+
? event.identifiers[0].data.id
|
|
1552
|
+
: event.identifiers[0].data.group;
|
|
1553
|
+
if (event.identifiers[0].data.region) {
|
|
1554
|
+
regionPath = event.identifiers[0].data.region;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1547
1557
|
/*
|
|
1548
1558
|
* Event Type 1: Selected
|
|
1549
1559
|
* Event Type 2: Highlighted
|
|
@@ -1551,6 +1561,8 @@ export default {
|
|
|
1551
1561
|
*/
|
|
1552
1562
|
if (event.eventType == 1) {
|
|
1553
1563
|
if (this.viewingMode === 'Annotation') {
|
|
1564
|
+
this.tData.label = id;
|
|
1565
|
+
this.tData.region = regionPath;
|
|
1554
1566
|
this.activateAnnotationMode(names, event);
|
|
1555
1567
|
} else {
|
|
1556
1568
|
if (this.$refs.scaffoldTreeControls) {
|
|
@@ -1566,7 +1578,7 @@ export default {
|
|
|
1566
1578
|
//identifiers.
|
|
1567
1579
|
if (event.identifiers.length === 1) {
|
|
1568
1580
|
this.lastSelected.isSearch = false;
|
|
1569
|
-
this.lastSelected.region =
|
|
1581
|
+
this.lastSelected.region = regionPath;
|
|
1570
1582
|
this.lastSelected.group = event.identifiers[0].data.group;
|
|
1571
1583
|
} else if (event.identifiers.length === 0) {
|
|
1572
1584
|
this.lastSelected.isSearch = false;
|
|
@@ -1590,21 +1602,13 @@ export default {
|
|
|
1590
1602
|
}
|
|
1591
1603
|
}
|
|
1592
1604
|
if (event.identifiers.length > 0 && event.identifiers[0]) {
|
|
1593
|
-
let id = event.identifiers[0].data.id
|
|
1594
|
-
? event.identifiers[0].data.id
|
|
1595
|
-
: event.identifiers[0].data.group;
|
|
1596
1605
|
if (event.identifiers[0].coords) {
|
|
1597
1606
|
this.tData.active = false;
|
|
1598
|
-
if (!this.annotationSidebar) {
|
|
1607
|
+
if (!this.viewingMode !== "Annotation" || !this.annotationSidebar) {
|
|
1599
1608
|
this.tData.visible = true;
|
|
1600
1609
|
}
|
|
1601
1610
|
this.tData.label = id;
|
|
1602
|
-
|
|
1603
|
-
this.tData.region = event.identifiers[0].data.region;
|
|
1604
|
-
}
|
|
1605
|
-
else {
|
|
1606
|
-
this.tData.region = undefined;
|
|
1607
|
-
}
|
|
1611
|
+
this.tData.region = regionPath;
|
|
1608
1612
|
this.tData.x = event.identifiers[0].coords.x;
|
|
1609
1613
|
this.tData.y = event.identifiers[0].coords.y;
|
|
1610
1614
|
this.createEditTemporaryLines(event.identifiers);
|
package/src/scripts/Search.js
CHANGED
|
@@ -150,7 +150,6 @@ export class SearchIndex
|
|
|
150
150
|
let results = undefined;
|
|
151
151
|
if (text.length > 2 && ["'", '"'].includes(text.slice(0, 1))) {
|
|
152
152
|
text = text.replaceAll(text.slice(0, 1), '')
|
|
153
|
-
console.log(text)
|
|
154
153
|
results = this._searchEngine.search(text, {prefix: true, combineWith: 'AND'})
|
|
155
154
|
} else if (text.length > 1) {
|
|
156
155
|
results = this._searchEngine.search(text, {prefix: true})
|