@abi-software/scaffoldvuer 1.12.0 → 1.13.0-beta.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 +4075 -4044
- package/dist/scaffoldvuer.umd.cjs +35 -35
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/ScaffoldVuer.vue +33 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-beta.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"*.js"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@abi-software/map-utilities": "^1.7.
|
|
44
|
+
"@abi-software/map-utilities": "^1.7.6",
|
|
45
45
|
"@abi-software/sparc-annotation": "^0.3.2",
|
|
46
46
|
"@abi-software/svg-sprite": "1.0.2",
|
|
47
47
|
"@element-plus/icons-vue": "^2.3.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"unplugin-vue-components": "^0.26.0",
|
|
54
54
|
"vue": "^3.4.21",
|
|
55
55
|
"vue-router": "^4.2.5",
|
|
56
|
-
"zincjs": "1.
|
|
56
|
+
"zincjs": "^1.16.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/eslint-parser": "^7.28.0",
|
|
@@ -1050,6 +1050,9 @@ export default {
|
|
|
1050
1050
|
this.$module.zincRenderer.addPreRenderCallbackFunction(() => {
|
|
1051
1051
|
this.currentTime = this.$module.getCurrentTime();
|
|
1052
1052
|
})
|
|
1053
|
+
this.$module.zincRenderer.addContextRestoredCallbackFunction(() => {
|
|
1054
|
+
this.backgroundChangeCallback(this.currentBackground);
|
|
1055
|
+
})
|
|
1053
1056
|
},
|
|
1054
1057
|
beforeUnmount: function () {
|
|
1055
1058
|
if (this.ro) this.ro.disconnect();
|
|
@@ -1807,34 +1810,32 @@ export default {
|
|
|
1807
1810
|
this.$emit("scaffold-selected", event.identifiers);
|
|
1808
1811
|
}
|
|
1809
1812
|
} else if (event.eventType == 2) {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
if (
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
this.$refs.scaffoldTreeControls.removeHover(true);
|
|
1817
|
-
}
|
|
1813
|
+
this.hideRegionTooltip();
|
|
1814
|
+
if (this.$refs.scaffoldTreeControls) {
|
|
1815
|
+
if (names.length > 0) {
|
|
1816
|
+
this.$refs.scaffoldTreeControls.updateHoverUI(zincObjects);
|
|
1817
|
+
} else {
|
|
1818
|
+
this.$refs.scaffoldTreeControls.removeHover(true);
|
|
1818
1819
|
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
this.tData.label = id;
|
|
1826
|
-
this.tData.region = regionPath;
|
|
1827
|
-
this.tData.x = event.identifiers[0].coords.x;
|
|
1828
|
-
this.tData.y = event.identifiers[0].coords.y;
|
|
1829
|
-
this.createEditTemporaryLines(event.identifiers);
|
|
1820
|
+
}
|
|
1821
|
+
if (event.identifiers.length > 0 && event.identifiers[0]) {
|
|
1822
|
+
if (event.identifiers[0].coords) {
|
|
1823
|
+
this.tData.active = false;
|
|
1824
|
+
if (this.viewingMode !== "Annotation" || !this.annotationSidebar) {
|
|
1825
|
+
this.tData.visible = true;
|
|
1830
1826
|
}
|
|
1827
|
+
this.tData.label = id;
|
|
1828
|
+
this.tData.region = regionPath;
|
|
1829
|
+
this.tData.x = event.identifiers[0].coords.x;
|
|
1830
|
+
this.tData.y = event.identifiers[0].coords.y;
|
|
1831
|
+
this.createEditTemporaryLines(event.identifiers);
|
|
1831
1832
|
}
|
|
1832
|
-
/**
|
|
1833
|
-
* Emit when an object is highlighted
|
|
1834
|
-
* @arg {Object} "Identifier of selected objects"
|
|
1835
|
-
*/
|
|
1836
|
-
this.$emit("scaffold-highlighted", event.identifiers);
|
|
1837
1833
|
}
|
|
1834
|
+
/**
|
|
1835
|
+
* Emit when an object is highlighted
|
|
1836
|
+
* @arg {Object} "Identifier of selected objects"
|
|
1837
|
+
*/
|
|
1838
|
+
this.$emit("scaffold-highlighted", event.identifiers);
|
|
1838
1839
|
} else if (event.eventType == 3) {
|
|
1839
1840
|
//MOVE
|
|
1840
1841
|
if (event.identifiers.length > 0 && event.identifiers[0]) {
|
|
@@ -2282,6 +2283,12 @@ export default {
|
|
|
2282
2283
|
emitOfflineAnnotationUpdate: function () {
|
|
2283
2284
|
this.$emit('update-offline-annotation-enabled', this.offlineAnnotationEnabled);
|
|
2284
2285
|
},
|
|
2286
|
+
forceContextRestore: function() {
|
|
2287
|
+
this.$module.zincRenderer.forceContextRestore();
|
|
2288
|
+
},
|
|
2289
|
+
forceContextLoss: function() {
|
|
2290
|
+
this.$module.zincRenderer.forceContextLoss();
|
|
2291
|
+
},
|
|
2285
2292
|
/**
|
|
2286
2293
|
* @public
|
|
2287
2294
|
* Hide the tooltip
|
|
@@ -2812,9 +2819,11 @@ export default {
|
|
|
2812
2819
|
toggleRendering: function (flag) {
|
|
2813
2820
|
if (this.$module.zincRenderer) {
|
|
2814
2821
|
if (flag) {
|
|
2822
|
+
this.forceContextRestore();
|
|
2815
2823
|
this.$module.zincRenderer.animate();
|
|
2816
2824
|
} else {
|
|
2817
2825
|
this.$module.zincRenderer.stopAnimate();
|
|
2826
|
+
this.forceContextLoss();
|
|
2818
2827
|
}
|
|
2819
2828
|
}
|
|
2820
2829
|
},
|