@abi-software/scaffoldvuer 0.1.52-beta.4 → 0.1.52-beta.5

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/scaffoldvuer",
3
- "version": "0.1.52-beta.4",
3
+ "version": "0.1.52-beta.5",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -672,21 +672,28 @@ export default {
672
672
  cameracontrol.stopAutoTumble();
673
673
  this.isTransitioning = false;
674
674
  },
675
+ findObjectsWithGroupName: function(name) {
676
+ let objects = [];
677
+ if (name && name != "" && this.$module.scene) {
678
+ objects = this.$module.scene.findObjectsWithGroupName(name);
679
+ }
680
+ return objects;
681
+ },
675
682
  /**
676
683
  * Focus on named region
677
684
  */
678
685
  viewRegion: function(name) {
679
- if (name && name != "" && this.$module.scene) {
680
- let objects = this.$module.scene.findObjectsWithGroupName(name);
681
- let box = this.$module.scene.getBoundingBoxOfZincObjects(objects);
682
- if (box) {
683
- if (this.$module.isSyncControl()) {
684
- this.$module.setSyncControlZoomToBox(box);
685
- } else {
686
- this.$module.scene.viewAllWithBoundingBox(box);
687
- }
686
+ let objects = this.findObjectsWithGroupName(name);
687
+ let box = this.$module.scene.getBoundingBoxOfZincObjects(objects);
688
+ if (box) {
689
+ if (this.$module.isSyncControl()) {
690
+ this.$module.setSyncControlZoomToBox(box);
691
+ } else {
692
+ this.$module.scene.viewAllWithBoundingBox(box);
688
693
  }
694
+ return true;
689
695
  }
696
+ return false;
690
697
  },
691
698
  setFocusedRegion: function(name) {
692
699
  if (name) {
@@ -47,7 +47,8 @@ RendererModule.prototype.getIntersectedObject = function(intersects) {
47
47
  if (intersects[i].object &&
48
48
  intersects[i].object.userData &&
49
49
  intersects[i].object.userData.isZincObject &&
50
- (intersects[i].object.name ||
50
+ ((intersects[i].object.name &&
51
+ intersects[i].object.name !== "_Unnamed") ||
51
52
  intersects[i].object.userData.isMarker))
52
53
  return intersects[i];
53
54
  }