Browse Source

feat(draw): update

gemercheung 1 year ago
parent
commit
6cc6781085
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/box/HorizontalBox.js
  2. 1 1
      src/core/box/VerticalBox.js

+ 1 - 1
src/core/box/HorizontalBox.js

@@ -41,7 +41,7 @@ export default class HorizontalBox extends THREE.Group {
     box.scale.set(this.width, 1, this.height);
 
     this.add(box);
-    this.position.x = (this.width + 0.125) * index - 2.2;
+    this.position.x = (this.width + 0.125) * index - 1.8;
 
 
     const matLine = new LineMaterial({

+ 1 - 1
src/core/box/VerticalBox.js

@@ -32,7 +32,7 @@ export default class VerticalBox extends THREE.Group {
     box.scale.set(this.width, 1, this.height);
 
     this.add(box);
-    this.position.x = (this.width + 0.125) * index;
+    this.position.x = (this.width + 0.125) * index - 1.8;
 
     const matLine = new LineMaterial({
       color: 0xe44d54,