瀏覽代碼

feat(draw): update

gemercheung 1 年之前
父節點
當前提交
6cc6781085
共有 2 個文件被更改,包括 2 次插入2 次删除
  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,