@abi-software/scaffoldvuer 0.1.58 → 0.1.60
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/README.md +76 -0
- package/dist/scaffoldvuer-wc.common.js +84 -52
- package/dist/scaffoldvuer-wc.umd.js +84 -52
- package/dist/scaffoldvuer-wc.umd.min.js +84 -52
- package/dist/scaffoldvuer.common.js +121 -107
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +121 -107
- package/dist/scaffoldvuer.umd.js.map +1 -1
- package/dist/scaffoldvuer.umd.min.js +1 -1
- package/dist/scaffoldvuer.umd.min.js.map +1 -1
- package/package-lock.json +921 -703
- package/package.json +1 -1
- package/src/App.vue +6 -0
- package/src/components/ScaffoldVuer.vue +7 -3
- package/src/components/TreeControls.vue +3 -3
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -955,6 +955,7 @@ export default {
|
|
|
955
955
|
const instance = this;
|
|
956
956
|
return function() {
|
|
957
957
|
instance.$module.zincRenderer.removePostRenderCallbackFunction(instance.$_regionTooltipCallback);
|
|
958
|
+
instance.$_regionTooltipCallback = undefined;
|
|
958
959
|
instance.showRegionTooltip(name, false);
|
|
959
960
|
}
|
|
960
961
|
},
|
|
@@ -977,12 +978,14 @@ export default {
|
|
|
977
978
|
this.$module.scene.viewAll();
|
|
978
979
|
//Use the post render callback to make sure the scene has been updated
|
|
979
980
|
//before getting the position of the tooltip.
|
|
981
|
+
if (this.$_regionTooltipCallback) {
|
|
982
|
+
this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_regionTooltipCallback);
|
|
983
|
+
}
|
|
980
984
|
this.$_regionTooltipCallback =
|
|
981
985
|
this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
982
986
|
this.showRegionTooltipCallback(name)
|
|
983
987
|
);
|
|
984
988
|
}
|
|
985
|
-
return;
|
|
986
989
|
} else {
|
|
987
990
|
this.tData.external = true;
|
|
988
991
|
this.tData.visible = true;
|
|
@@ -995,11 +998,12 @@ export default {
|
|
|
995
998
|
else
|
|
996
999
|
this.tData.region = "Root";
|
|
997
1000
|
}
|
|
1001
|
+
return true;
|
|
998
1002
|
}
|
|
999
|
-
} else {
|
|
1000
|
-
this.hideRegionTooltip();
|
|
1001
1003
|
}
|
|
1002
1004
|
}
|
|
1005
|
+
this.hideRegionTooltip();
|
|
1006
|
+
return false;
|
|
1003
1007
|
},
|
|
1004
1008
|
hideRegionTooltip: function() {
|
|
1005
1009
|
this.tData.visible = false;
|
|
@@ -14,12 +14,10 @@
|
|
|
14
14
|
<div class="tree-container">
|
|
15
15
|
<el-tree
|
|
16
16
|
ref="regionTree"
|
|
17
|
-
:default-expanded-keys="['__r/']"
|
|
18
17
|
node-key="id"
|
|
19
18
|
show-checkbox
|
|
20
19
|
:check-strictly="false"
|
|
21
|
-
:data="treeData"
|
|
22
|
-
:default-checked-keys="['__r/']"
|
|
20
|
+
:data="treeData[0].children"
|
|
23
21
|
:expand-on-click-node="false"
|
|
24
22
|
:render-after-expand="false"
|
|
25
23
|
@check="checkChanged"
|
|
@@ -309,6 +307,7 @@ export default {
|
|
|
309
307
|
this.hover.group = "";
|
|
310
308
|
this.hover.regionPath = undefined;
|
|
311
309
|
this.$refs.regionTree.updateKeyChildren( "__r/", []);
|
|
310
|
+
this.treeData[0].children.length = 0;
|
|
312
311
|
this.$emit("object-selected", undefined);
|
|
313
312
|
},
|
|
314
313
|
getColour: function (nodeData) {
|
|
@@ -488,6 +487,7 @@ export default {
|
|
|
488
487
|
border-radius: 4px;
|
|
489
488
|
background: #ffffff;
|
|
490
489
|
margin-top: 6px;
|
|
490
|
+
scrollbar-width: thin;
|
|
491
491
|
|
|
492
492
|
::v-deep .el-tree {
|
|
493
493
|
max-height: 240px;
|